org.deegree.graphics
Interface Selector


public interface Selector

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

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

Method Summary
 void addTheme(Theme theme)
          adds a Theme to the Selector that shall be notified if something happens.
 java.lang.String[] invertSelection()
          invertes the current selection.
 void removeTheme(Theme theme)
           
 void reset()
          marks all features as unselected
 java.lang.String[] select(GM_Envelope boundingbox)
          selects all features (display elements) that are located within the submitted bounding box.
 java.lang.String[] select(GM_Position position)
          selects all features (display elements) that intersects the submitted point. if a feature is already selected it remains selected.
 java.lang.String[] select(GM_Position position, double radius)
          selects all features (display elements) that are located within the circle described by the position and the radius. if a feature is already selected it remains selected.
 java.lang.String[] select(java.lang.String[] ids)
          selects all features (display elements) that are specified by the submitted ids. if a feature is already selected it remains selected.
 

Method Detail

addTheme

public void addTheme(Theme theme)
adds a Theme to the Selector that shall be notified if something happens.


removeTheme

public void removeTheme(Theme theme)
See Also:
addTheme(Theme)

select

public java.lang.String[] select(GM_Envelope boundingbox)
selects all features (display elements) that are located within the submitted bounding box.

Returns:
ids of the selected features (display elements)

select

public java.lang.String[] select(GM_Position position)
selects all features (display elements) that intersects the submitted point. if a feature is already selected it remains selected.

Returns:
ids of the selected features (display elements)

select

public java.lang.String[] select(GM_Position position,
                                 double radius)
selects all features (display elements) that are located within the circle described by the position and the radius. if a feature is already selected it remains selected.

Returns:
ids of the selected features (display elements)

select

public java.lang.String[] select(java.lang.String[] ids)
selects all features (display elements) that are specified by the submitted ids. if a feature is already selected it remains selected.

Returns:
ids of the selected features (display elements)

invertSelection

public java.lang.String[] invertSelection()
invertes the current selection.


reset

public void reset()
marks all features as unselected