|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String name,
Layer layer,
UserStyle[] styles)
|
Method Summary | |
---|---|
void |
addEventController(ThemeEventController controller)
adds an eventcontroller to the theme that's responsible 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 de-selecting single DisplayElements or groups of DisplayElements. |
java.util.List<DisplayElement> |
getDisplayElements()
Returns all DisplayElements that this Theme contains. |
Layer |
getLayer()
returns the layer that holds the data of the theme |
java.lang.String |
getName()
returns the name of the theme |
UserStyle[] |
getStyles()
returns the styles used for this Theme. |
void |
paint(java.awt.Graphics g)
renders the layer to the submitted graphic context |
void |
paint(java.awt.Graphics g,
java.lang.String[] ids)
renders the display elements matching the submitted ids |
void |
paintHighlighted(java.awt.Graphics g)
renders the highlighted display elements of the layer |
void |
paintSelected(java.awt.Graphics g)
renders the selected display elements of the layer |
void |
removeEventController(ThemeEventController controller)
|
void |
removeHighlighter(Highlighter highlighter)
|
void |
removeSelector(Selector selector)
|
void |
setDisplayElements(java.util.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(java.lang.String name, Layer layer, UserStyle[] styles)
name
- layer
- styles
- Method Detail |
---|
public void setParent(MapView parent)
parent
- of this themepublic java.lang.String getName()
public void paint(java.awt.Graphics g)
g
- to draw uponpublic void paint(java.awt.Graphics g, java.lang.String[] ids)
g
- to draw uponids
- of the id's to renderpublic void paintSelected(java.awt.Graphics g)
g
- to draw uponpublic void paintHighlighted(java.awt.Graphics g)
g
- to draw uponpublic void addSelector(Selector selector)
selector
- to which this theme will be added and vice versapublic void removeSelector(Selector selector)
selector
- to remove this theme from (and viceversa)addSelector(Selector)
public void addHighlighter(Highlighter highlighter)
highlighter
- to add this theme to, and vice-versapublic void removeHighlighter(Highlighter highlighter)
highlighter
- to remove this theme from and vice-versaaddHighlighter(Highlighter)
public void addEventController(ThemeEventController controller)
controller
- to add this theme to, and vice-versapublic void removeEventController(ThemeEventController controller)
controller
- to remove this theme from and vice-versaaddEventController(ThemeEventController)
public void setStyles(UserStyle[] styles)
styles
- the style to set to this themepublic UserStyle[] getStyles()
public Layer getLayer()
public java.util.List<DisplayElement> getDisplayElements()
public void setDisplayElements(java.util.List<DisplayElement> de)
de
- to set to this theme.
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org