org.jplot2d.interaction
Class MouseCoordinatesTooltipHandler
- java.lang.Object
-
- org.jplot2d.interaction.MouseBehaviorHandler<B>
-
- org.jplot2d.interaction.MouseMoveBehaviorHandler<MouseCoordinatesTooltipBehavior>
-
- org.jplot2d.interaction.MouseCoordinatesTooltipHandler
-
- All Implemented Interfaces:
- VisualFeedbackDrawer
public class MouseCoordinatesTooltipHandler extends MouseMoveBehaviorHandler<MouseCoordinatesTooltipBehavior> implements VisualFeedbackDrawer
This handler shows a tooltip to display the coordinates on where the cursor is.
-
-
Constructor Summary
Constructors Constructor and Description MouseCoordinatesTooltipHandler(MouseCoordinatesTooltipBehavior behavior, InteractionModeHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanbehaviorPerformed(int x, int y)voiddraw(java.lang.Object g)Draws visual feedback on the given graphics.booleanenterModifiersKey()Notify that the registered modifiers key is entered.booleanexitModifiersKey()Notify that the registered modifiers key is exited.-
Methods inherited from class org.jplot2d.interaction.MouseMoveBehaviorHandler
processMouseEvent
-
Methods inherited from class org.jplot2d.interaction.MouseBehaviorHandler
getName
-
-
-
-
Constructor Detail
-
MouseCoordinatesTooltipHandler
public MouseCoordinatesTooltipHandler(MouseCoordinatesTooltipBehavior behavior, InteractionModeHandler handler)
-
-
Method Detail
-
enterModifiersKey
public boolean enterModifiersKey()
Description copied from class:MouseBehaviorHandlerNotify that the registered modifiers key is entered. Returnstrueif the event is processed correctly and should not be passed on to other behaviors. Returnsfalseif this behavior does not process the event. By default, returnsfalse.- Overrides:
enterModifiersKeyin classMouseBehaviorHandler<MouseCoordinatesTooltipBehavior>- Returns:
trueif the event is processed correctly
-
exitModifiersKey
public boolean exitModifiersKey()
Description copied from class:MouseBehaviorHandlerNotify that the registered modifiers key is exited. Returnstrueif the event is processed correctly and should not be passed on to other behaviors. Returnsfalseif this behavior does not process the event. By default, returnsfalse.- Overrides:
exitModifiersKeyin classMouseBehaviorHandler<MouseCoordinatesTooltipBehavior>- Returns:
trueif the event is processed correctly
-
behaviorPerformed
public boolean behaviorPerformed(int x, int y)- Specified by:
behaviorPerformedin classMouseMoveBehaviorHandler<MouseCoordinatesTooltipBehavior>
-
draw
public void draw(java.lang.Object g)
Description copied from interface:VisualFeedbackDrawerDraws visual feedback on the given graphics.- Specified by:
drawin interfaceVisualFeedbackDrawer
-
-
DMelt 3.0 © DataMelt by jWork.ORG