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

    Modifier and Type
    Method
    Description
    Return a shape in user coords which encloses the current selection.
    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 Details

    • 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.