|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.graphic.AbstractSelectionHandler
public abstract class AbstractSelectionHandler
Provides some basic implementation of the SelectionHandler interface.
This implementation is based on invokations of Collection's methods.
No storage mechanism is implemented in this abstract class.
Concrete implementation of this mechanism should be based on mutable Java Collection's, otherwise
selection operation will fail.
Finally, the content of the selection-handler is supposed to reflect the z-ordering of the
Drawing
it is
associated with. This abstract implementation does not take care of this.
Constructor Summary | |
---|---|
AbstractSelectionHandler()
|
Method Summary | |
---|---|
Element[] |
asArray()
Return the selected elements wrapped in an array (may be a convenience call to asCollection) |
void |
delete(Drawing d)
Delete all selected Element's from the given Drawing, and remove the reference to them from this SelectionHandler. |
void |
replace(Element e)
Replace the current selection with the given element. |
void |
selectAll(Drawing d)
Select all Element's in the given drawing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jpicedt.graphic.SelectionHandler |
---|
containsClass, createFilteredCollection, getCtrlPtSubset, replace |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
public AbstractSelectionHandler()
Method Detail |
---|
public Element[] asArray()
asArray
in interface SelectionHandler
public void selectAll(Drawing d)
selectAll
in interface SelectionHandler
public void replace(Element e)
replace
in interface SelectionHandler
public void delete(Drawing d)
delete
in interface SelectionHandler
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |