Package org.apache.batik.gvt
Interface Selectable
-
- All Known Implementing Classes:
FlowExtTextNode,FlowTextNode,TextNode
public interface SelectableInterface describing object that can be selected or have selections made on it.- Version:
- $Id: Selectable.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.ShapegetHighlightShape()Return a shape in user coords which encloses the current selection.java.lang.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
-
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.
-
-