|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.graphics.Theme
public class Theme
A Theme is for usual a homogenious collection of Features coupled with a portrayal model for their graphical representation. Considering the OGC Styled Layer Descriptor specification this is not nessecary the case. In confirmation with the SLD a theme can be build from a lot of thematic completly different feature types.
From a theoretical point of view this isn't very satisfying. But it will be supported by the Theme class.
Assigned to the Theme are:
Constructor Summary | |
---|---|
protected |
Theme(String name,
Layer layer,
UserStyle[] styles)
|
Method Summary | |
---|---|
void |
addEventController(ThemeEventController controller)
adds an eventcontroller to the theme that's reponsible for handling events that targets the theme. |
void |
addHighlighter(Highlighter highlighter)
A Highlighter is a class that is responsible for managing the highlight capabilities for one or more Themes. |
void |
addSelector(Selector selector)
A selector is a class that offers methods for selecting and deselecting single DisplayElements or groups of DisplayElements. |
List<DisplayElement> |
getDisplayElements()
Returns all DisplayElements that this Theme contains. |
Layer |
getLayer()
returns the layer that holds the data of the theme |
String |
getName()
returns the name of the layer |
UserStyle[] |
getStyles()
returns the styles used for this Theme. |
void |
paint(Graphics g)
renders the layer to the submitted graphic context |
void |
paint(Graphics g,
String[] ids)
renders the display elements matching the submitted ids |
void |
paintHighlighted(Graphics g)
renders the highlighted display elements of the layer |
void |
paintSelected(Graphics g)
renders the selected display elements of the layer |
void |
removeEventController(ThemeEventController controller)
|
void |
removeHighlighter(Highlighter highlighter)
|
void |
removeSelector(Selector selector)
|
void |
setDisplayElements(List<DisplayElement> de)
returns the DisplayElements of the Theme |
void |
setParent(MapView parent)
sets the parent MapView of the Theme. |
void |
setStyles(UserStyle[] styles)
Sets the styles used for this Theme. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Theme(String name, Layer layer, UserStyle[] styles)
name
- layer
- styles
- Method Detail |
---|
public void setParent(MapView parent)
public String getName()
public void paint(Graphics g)
public void paint(Graphics g, String[] ids)
public void paintSelected(Graphics g)
public void paintHighlighted(Graphics g)
public void addSelector(Selector selector)
public void removeSelector(Selector selector)
addSelector(Selector)
public void addHighlighter(Highlighter highlighter)
public void removeHighlighter(Highlighter highlighter)
addHighlighter(Highlighter)
public void addEventController(ThemeEventController controller)
public void removeEventController(ThemeEventController controller)
addEventController(ThemeEventController)
public void setStyles(UserStyle[] styles)
public UserStyle[] getStyles()
public Layer getLayer()
public List<DisplayElement> getDisplayElements()
public void setDisplayElements(List<DisplayElement> de)
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net