Class SelectionEvent

java.lang.Object
org.apache.batik.gvt.event.SelectionEvent

public class SelectionEvent extends Object
An event which indicates that a selection is being made or has been made.
  • Field Details

    • SELECTION_CHANGED

      public static final int SELECTION_CHANGED
      The id for the "selection changing" event. (Selection process is under way)
      See Also:
    • SELECTION_CLEARED

      public static final int SELECTION_CLEARED
      The id for the "selection cleared" event.
      See Also:
    • SELECTION_STARTED

      public static final int SELECTION_STARTED
      The id for the "selection started" event.
      See Also:
    • SELECTION_DONE

      public static final int SELECTION_DONE
      The id for the "selection completed" event. (Selection process is complete).
      See Also:
    • highlightShape

      protected Shape highlightShape
      The shape enclosing the selection
    • selection

      protected Object selection
      The object which composes the selection
    • id

      protected int id
      The event type of the current selection event
  • Constructor Details

    • SelectionEvent

      public SelectionEvent(Object selection, int id, Shape highlightShape)
      Constructs a new graphics node paint event.
      Parameters:
      selection - the selection
      id - the id of this event
      highlightShape - a user-space shape enclosing the selection.
  • Method Details

    • getHighlightShape

      public Shape getHighlightShape()
      Returns a shape in user space that encloses the current selection.
    • getSelection

      public Object getSelection()
      Returns the selection associated with this event. Only guaranteed current for events of type SELECTION_DONE.
    • getID

      public int getID()
      Returns the event's selection event type.
      See Also: