Interface Selector
- All Superinterfaces:
EventListener, GraphicsNodeChangeListener, GraphicsNodeKeyListener, GraphicsNodeMouseListener
- All Known Implementing Classes:
ConcreteTextSelector
public interface Selector
extends GraphicsNodeMouseListener, GraphicsNodeKeyListener, GraphicsNodeChangeListener
Interface which allows selection of GraphicsNodes and their contents.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a SelectionListener to this Selector's notification list.Get the contents of the current selection buffer.booleanisEmpty()Reports whether the current selection contains any objects.voidRemove a SelectionListener from this Selector's notification list.Methods inherited from interface GraphicsNodeChangeListener
changeCompleted, changeStartedMethods inherited from interface GraphicsNodeKeyListener
keyPressed, keyReleased, keyTypedMethods inherited from interface GraphicsNodeMouseListener
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
-
Method Details
-
getSelection
Object getSelection()Get the contents of the current selection buffer. -
isEmpty
boolean isEmpty()Reports whether the current selection contains any objects. -
addSelectionListener
Add a SelectionListener to this Selector's notification list.- Parameters:
l- the SelectionListener to add.
-
removeSelectionListener
Remove a SelectionListener from this Selector's notification list.- Parameters:
l- the SelectionListener to be removed.
-