org.deegree.graphics
Interface Theme

All Known Implementing Classes:
Theme_Impl

public interface Theme

------------------------------------------------------------------------

Version:
$Revision: 1.9 $ $Date: 2004/03/11 08:25:33 $
Author:
Andreas Poth

Method Summary
 void addEventController(ThemeEventController obj)
          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 obj)
           
 void removeHighlighter(Highlighter highlighter)
           
 void removeSelector(Selector selector)
           
 void setDisplayElements(java.util.ArrayList de)
          sets the display elements 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.
 

Method Detail

getDisplayElements

public java.util.ArrayList getDisplayElements()
Returns all DisplayElements that this Theme contains.

Returns:
ArrayList containing DisplayElements

setDisplayElements

public void setDisplayElements(java.util.ArrayList de)
sets the display elements of the theme


setParent

public void setParent(MapView parent)
sets the parent MapView of the Theme.


getName

public java.lang.String getName()
returns the name of the layer


paint

public void paint(java.awt.Graphics g)
renders the layer to the submitted graphic context


paint

public void paint(java.awt.Graphics g,
                  java.lang.String[] ids)
renders the display elements matching the submitted ids


paintSelected

public void paintSelected(java.awt.Graphics g)
renders the selected display elements of the layer


paintHighlighted

public void paintHighlighted(java.awt.Graphics g)
renders the highlighted display elements of the layer


addSelector

public void addSelector(Selector selector)
A selector is a class that offers methods for selecting and deselecting single DisplayElements or groups of DisplayElements. A selector may offers methods like 'select all DisplayElements within a specified bounding box' or 'select all DisplayElements thats area is larger than 120 kmē' etc.


removeSelector

public void removeSelector(Selector selector)
See Also:
addSelector(Selector)

addHighlighter

public void addHighlighter(Highlighter highlighter)
A Highlighter is a class that is responsible for managing the highlight capabilities for one or more Themes.


removeHighlighter

public void removeHighlighter(Highlighter highlighter)
See Also:
addHighlighter(Highlighter)

addEventController

public void addEventController(ThemeEventController obj)
adds an eventcontroller to the Theme that's reponsible for handling events that targets the Theme.


removeEventController

public void removeEventController(ThemeEventController obj)
See Also:
addEventController(ThemeEventController)

setStyles

public void setStyles(UserStyle[] styles)
sets the styles used for this Theme. If this method will be called all DisplayElements will be recreated to consider the new style definitions.


getStyles

public UserStyle[] getStyles()
returns the styles used for this Theme.


getLayer

public Layer getLayer()
returns the layer that holds the data of the theme