Package org.apache.batik.gvt
Interface Selectable
-
- All Known Implementing Classes:
FlowExtTextNode
,FlowTextNode
,TextNode
public interface Selectable
Interface describing object that can be selected or have selections made on it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Shape
getHighlightShape()
Return a shape in user coords which encloses the current selection.java.lang.Object
getSelection()
Get the current text selection.boolean
selectAll(double x, double y)
Selects the entire contents of the GraphicsNode at (x, y).boolean
selectAt(double x, double y)
Initializes the current selection to begin with the character at (x, y).boolean
selectTo(double x, double y)
Extends the current selection to the character at (x, y)..
-
-
-
Method Detail
-
selectAt
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
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.
-
selectAll
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.
-
getSelection
java.lang.Object getSelection()
Get the current text selection.- Returns:
- an object containing the selected content.
-
getHighlightShape
java.awt.Shape getHighlightShape()
Return a shape in user coords which encloses the current selection.
-
-