| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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 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.  | 
 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 theme  | 
 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)
parent - of this themepublic String getName()
public void paint(Graphics g)
g - to draw upon
public void paint(Graphics g,
                  String[] ids)
g - to draw uponids - of the id's to renderpublic void paintSelected(Graphics g)
g - to draw uponpublic void paintHighlighted(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 List<DisplayElement> getDisplayElements()
public void setDisplayElements(List<DisplayElement> de)
de - to set to this theme.
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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