org.apache.batik.gvt

Interface Selectable

public interface Selectable

Interface describing object that can be selected or have selections made on it.
Method Summary
ShapegetHighlightShape()
Return a shape in user coords which encloses the current selection.
ObjectgetSelection()
Get the current text selection.
booleanselectAll(double x, double y)
Selects the entire contents of the GraphicsNode at (x, y).
booleanselectAt(double x, double y)
Initializes the current selection to begin with the character at (x, y).
booleanselectTo(double x, double y)
Extends the current selection to the character at (x, y)..

Method Detail

getHighlightShape

public Shape getHighlightShape()
Return a shape in user coords which encloses the current selection.

getSelection

public Object getSelection()
Get the current text selection.

Returns: an object containing the selected content.

selectAll

public boolean selectAll(double x, double y)
Selects the entire contents of the GraphicsNode at (x, y).

Returns: true if action resulted in change of selection.

selectAt

public boolean selectAt(double x, double y)
Initializes the current selection to begin with the character at (x, y).

Returns: true if action resulted in change of selection.

selectTo

public boolean selectTo(double x, double y)
Extends the current selection to the character at (x, y)..

Returns: true if action resulted in change of selection.

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