org.apache.batik.gvt

Interface Selector

public interface Selector extends GraphicsNodeMouseListener, GraphicsNodeKeyListener, GraphicsNodeChangeListener

Interface which allows selection of GraphicsNodes and their contents.
Method Summary
voidaddSelectionListener(SelectionListener l)
Add a SelectionListener to this Selector's notification list.
ObjectgetSelection()
Get the contents of the current selection buffer.
booleanisEmpty()
Reports whether the current selection contains any objects.
voidremoveSelectionListener(SelectionListener l)
Remove a SelectionListener from this Selector's notification list.

Method Detail

addSelectionListener

public void addSelectionListener(SelectionListener l)
Add a SelectionListener to this Selector's notification list.

Parameters: l the SelectionListener to add.

getSelection

public Object getSelection()
Get the contents of the current selection buffer.

isEmpty

public boolean isEmpty()
Reports whether the current selection contains any objects.

removeSelectionListener

public void removeSelectionListener(SelectionListener l)
Remove a SelectionListener from this Selector's notification list.

Parameters: l the SelectionListener to be removed.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.