org.apache.batik.gvt
Interface Selectable

All Known Implementing Classes:
ConcreteTextNode

public interface Selectable

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


Method Summary
 java.awt.Shape getHighlightShape(GraphicsNodeRenderContext rc)
          Return a shape in user coords which encloses the current selection.
 java.lang.Object getSelection(GraphicsNodeRenderContext rc)
          Get the current text selection.
 void selectAll(double x, double y, GraphicsNodeRenderContext rc)
          Selects the entire contents of the GraphicsNode at (x, y)..
 void selectAt(double x, double y, GraphicsNodeRenderContext rc)
          Initializes the current selection to begin with the character at (x, y).
 void selectTo(double x, double y, GraphicsNodeRenderContext rc)
          Extends the current selection to the character at (x, y)..
 

Method Detail

selectAt

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

selectTo

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

selectAll

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

getSelection

public java.lang.Object getSelection(GraphicsNodeRenderContext rc)
Get the current text selection.
Returns:
an object containing the selected content.

getHighlightShape

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


Copyright © 2000 Apache Software Foundation. All Rights Reserved.