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 TypeMethodDescriptionbooleanobjectPopupMenu(LocalPt pt, int modifiers) Method to show a popup menu at the given point.booleanobjectSelect(LocalPt pt, int modifiers) Method called on left mouse click.voidpointerOver(LocalPt pt) Method called when the pointer is over a given point
-
Method Details
-
objectPopupMenu
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
Method called when the pointer is over a given point- Parameters:
pt- - the point in which the pointer is over
-
objectSelect
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.
-