org.apache.batik.gvt
Interface Selectable


public interface Selectable

Interface describing object that can be selected or have selections made on it.

Version:
$Id: Selectable.java 1733416 2016-03-03 07:07:13Z gadams $
Author:
Bill Haneman

Method Summary
 Shape getHighlightShape()
          Return a shape in user coords which encloses the current selection.
 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

Object getSelection()
Get the current text selection.

Returns:
an object containing the selected content.

getHighlightShape

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



Copyright © 2000–2017 Apache Software Foundation. All rights reserved.