Constructor and Description |
---|
DefaultSelectionManager(Layer parent)
Crates a new instance associated to the given layer
|
Modifier and Type | Method and Description |
---|---|
void |
addSelectionListener(SelectionListener l)
Adds a selection listener
|
boolean |
clear()
Clears the selection
|
void |
fireSelectionChanged(SelectionEvent evt)
Notifies the given SelectionEvent to all the registered selection listeners
|
java.util.List<V> |
getSelection()
Gets a list of selected objects
|
java.util.List<V> |
getSelection(V obj)
Returns selected objects that are children of the provided objects GeoObject's isSubElementOf() determines if an object is children of another object
|
boolean |
isSelected(V obj)
True if the object is selected
|
void |
removeSelectionListener(SelectionListener l)
Removes the given selection listener
|
boolean |
select(java.util.List<V> objs)
Sets the objects in the list as selected without clearing the previous selections
|
boolean |
setSelection(java.util.List<V> objs)
Sets all the objects in the list as selected.
|
int |
size()
Returns the number of selected objects
|
boolean |
unselect(java.util.List<V> objs)
Marks the given objects as not selected
|
public DefaultSelectionManager(Layer parent)
parent
-public boolean isSelected(V obj)
obj
-public boolean clear()
public int size()
public java.util.List<V> getSelection()
public java.util.List<V> getSelection(V obj)
obj
-public boolean setSelection(java.util.List<V> objs)
objs
-public boolean select(java.util.List<V> objs)
objs
-public boolean unselect(java.util.List<V> objs)
objs
-public void addSelectionListener(SelectionListener l)
l
-public void removeSelectionListener(SelectionListener l)
l
-public void fireSelectionChanged(SelectionEvent evt)
evt
-