|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.graphics.Theme_Impl
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:------------------------------------------------------------------------
| Field Summary | |
private java.util.ArrayList |
displayElements
|
private java.util.List |
eventController
|
private java.util.List |
highlighter
|
private Layer |
layer
|
private java.lang.String |
name
|
private MapView |
parent
the MapView (map) the theme is associated to |
private java.util.List |
selector
this ArrayList contains all DisplayElements (and so the features) that are marked as selected. |
private UserStyle[] |
styles
|
| Constructor Summary | |
(package private) |
Theme_Impl(java.lang.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. |
java.util.ArrayList |
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 layer |
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.ArrayList 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 |
| Field Detail |
private java.lang.String name
private Layer layer
private UserStyle[] styles
private java.util.ArrayList displayElements
private MapView parent
private java.util.List selector
private java.util.List highlighter
private java.util.List eventController
| Constructor Detail |
Theme_Impl(java.lang.String name,
Layer layer,
UserStyle[] styles)
| Method Detail |
public void setParent(MapView parent)
setParent in interface Themepublic java.lang.String getName()
getName in interface Themepublic void paint(java.awt.Graphics g)
paint in interface Theme
public void paint(java.awt.Graphics g,
java.lang.String[] ids)
paint in interface Themepublic void paintSelected(java.awt.Graphics g)
paintSelected in interface Themepublic void paintHighlighted(java.awt.Graphics g)
paintHighlighted in interface Themepublic void addSelector(Selector selector)
addSelector in interface Themepublic void removeSelector(Selector selector)
removeSelector in interface ThemeaddSelector(Selector)public void addHighlighter(Highlighter highlighter)
addHighlighter in interface Themepublic void removeHighlighter(Highlighter highlighter)
removeHighlighter in interface ThemeaddHighlighter(Highlighter)public void addEventController(ThemeEventController controller)
addEventController in interface Themepublic void removeEventController(ThemeEventController controller)
removeEventController in interface ThemeaddEventController(ThemeEventController)public void setStyles(UserStyle[] styles)
setStyles in interface Themepublic UserStyle[] getStyles()
getStyles in interface Themepublic Layer getLayer()
getLayer in interface Themepublic java.util.ArrayList getDisplayElements()
getDisplayElements in interface Themepublic void setDisplayElements(java.util.ArrayList de)
setDisplayElements in interface Theme
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||