Package hec.gfx2d

Interface G2dPointerComponent

All Known Implementing Classes:
G2dBarPlot, G2dPanel, G2dSpacer, HotPlotPanel, Viewport, ViewportTextComponent

public interface G2dPointerComponent
Class interface for objects that want to receive pointer events from the G2dPointerAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    objectPopupMenu(LocalPt pt, int modifiers)
    Method to show a popup menu at the given point.
    boolean
    objectSelect(LocalPt pt, int modifiers)
    Method called on left mouse click.
    void
    Method called when the pointer is over a given point
  • Method Details

    • objectPopupMenu

      boolean objectPopupMenu(LocalPt pt, int modifiers)
      Method to show a popup menu at the given point.
      Parameters:
      pt - the point to place the popup menu;
      modifiers - mouse modifiers that were recieved by the mouse adapter that may be usefull here.
      Returns:
      true if the object popup event was accepted and consumed otherwise false.
    • pointerOver

      void pointerOver(LocalPt pt)
      Method called when the pointer is over a given point
      Parameters:
      pt - - the point in which the pointer is over
    • objectSelect

      boolean objectSelect(LocalPt pt, int modifiers)
      Method called on left mouse click.
      Parameters:
      pt - the point to place the popup menu;
      modifiers - mouse modifiers that were recieved by the mouse adapter that may be usefull here.
      Returns:
      true if the object select event was accepted and consumed otherwise false.