|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes the data modell of the map it self. It is build from themes containing DisplayElements to be rendered. Themes can be added and removed. Existing themes can be re-arragned by changing their order.
------------------------------------------------------------------------
Method Summary | |
void |
activateTheme(Theme theme)
activates a theme. |
void |
addEventController(MapEventController obj)
adds an eventcontroller to the MapView that's reponsible for handling events that targets the map. |
void |
addHighlighter(Highlighter highlighter)
A Highlighter is a class that is responsible for managing the highlight capabilities for one or more Themes. |
void |
addOptimizer(Optimizer optimizer)
Adds an Optimizer. |
void |
addSelector(Selector obj)
A selector is a class that offers methods for selecting and deselecting single DisplayElements or groups of DisplayElements. |
void |
addTheme(Theme theme)
adds a theme to the MapView |
void |
clear()
removes all themes from the MapView. |
void |
enableTheme(Theme theme,
boolean enable)
enables or disables a theme that is part of the MapView. |
Theme[] |
getAllThemes()
returns the Themes in correct order. |
GM_Envelope |
getBoundingBox()
returns the BoundingBox (Envelope) of the MapView. |
CS_CoordinateSystem |
getCoordinatesSystem()
returns the coordinate reference system of the MapView |
java.lang.String |
getName()
returns the name of the |
Optimizer[] |
getOptimizers()
Returns the Optimizers. |
GeoTransform |
getProjection()
Returns the GeoTransform that is associated to this MapView. |
double |
getScale()
Returns the current scale of the MapView. |
double |
getScale(java.awt.Graphics g)
Returns the current scale of the MapView. |
int |
getSize()
returns the amount of themes within the MapView. |
Theme |
getTheme(int index)
returns the Theme that matches the submitted index |
Theme |
getTheme(java.lang.String name)
returns the Theme that matches the submitted name |
boolean |
isThemeActivated(Theme theme)
returns true if the passed theme is the one that is set to be activated |
boolean |
isThemeEnabled(Theme theme)
returns true if the passed theme is set to be enabled |
void |
moveDown(Theme theme)
move a theme down for one index position (index = oldindex - 1) |
void |
moveUp(Theme theme)
move a theme up for one index position (index = oldindex + 1) |
void |
paint(java.awt.Graphics g)
renders the map to the submitted graphic context |
void |
paintHighlighted(java.awt.Graphics g)
renders the features marked as highlighted of all themes contained within the MapView |
void |
paintSelected(java.awt.Graphics g)
renders the features marked as selected of all themes contained within the MapView |
void |
removeEventController(MapEventController obj)
|
void |
removeHighlighter(Highlighter highlighter)
|
void |
removeSelector(Selector obj)
|
void |
removeTheme(int index)
removes the theme that matches the submitted index from the MapView |
void |
removeTheme(java.lang.String name)
removes the theme that matches the submitted name from the MapView |
void |
removeTheme(Theme theme)
removes a theme from the MapView |
void |
setBoundingBox(GM_Envelope boundingbox)
|
void |
setCoordinateSystem(CS_CoordinateSystem crs)
sets the coordinate reference system of the map; |
void |
setOptimizers(Optimizer[] optimizers)
Sets the Optimizers. |
void |
swapThemes(Theme first,
Theme second)
swaps the positions of the submitted themes |
Method Detail |
public java.lang.String getName()
public Theme getTheme(java.lang.String name)
public Theme getTheme(int index)
public Theme[] getAllThemes()
public double getScale()
public double getScale(java.awt.Graphics g)
public void addTheme(Theme theme) throws java.lang.Exception
java.lang.Exception
public void removeTheme(Theme theme)
public void removeTheme(java.lang.String name)
public void removeTheme(int index)
public void clear()
public void swapThemes(Theme first, Theme second)
public void moveUp(Theme theme)
public void moveDown(Theme theme)
public void enableTheme(Theme theme, boolean enable)
public boolean isThemeEnabled(Theme theme)
public void activateTheme(Theme theme)
public boolean isThemeActivated(Theme theme)
public int getSize()
public void addEventController(MapEventController obj)
public void removeEventController(MapEventController obj)
addEventController(MapEventController)
public void addSelector(Selector obj)
public void removeSelector(Selector obj)
addSelector(Selector)
public GM_Envelope getBoundingBox()
public void setBoundingBox(GM_Envelope boundingbox)
getBoundingBox()
public CS_CoordinateSystem getCoordinatesSystem()
public void setCoordinateSystem(CS_CoordinateSystem crs) throws java.lang.Exception
java.lang.Exception
public void paint(java.awt.Graphics g) throws RenderException
RenderException
public void paintSelected(java.awt.Graphics g) throws RenderException
RenderException
public void paintHighlighted(java.awt.Graphics g) throws RenderException
RenderException
public void addHighlighter(Highlighter highlighter)
public void removeHighlighter(Highlighter highlighter)
addHighlighter(Highlighter)
public GeoTransform getProjection()
public void addOptimizer(Optimizer optimizer)
optimizer
- public Optimizer[] getOptimizers()
public void setOptimizers(Optimizer[] optimizers)
optimizers
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |