org.jplot2d.interaction
Class MouseBehaviorHandler<B extends MouseBehavior>
- java.lang.Object
-
- org.jplot2d.interaction.MouseBehaviorHandler<B>
-
- Direct Known Subclasses:
- MouseClickBehaviorHandler, MouseDragBehaviorHandler, MouseMoveBehaviorHandler, MouseWheelBehaviorHandler
public abstract class MouseBehaviorHandler<B extends MouseBehavior> extends java.lang.ObjectA high-level abstraction of mouse action. User application only response to mouse command.
-
-
Constructor Summary
Constructors Constructor and Description MouseBehaviorHandler(B behavior, InteractionModeHandler handler)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description booleanenterModifiersKey()Notify that the registered modifiers key is entered.booleanexitModifiersKey()Notify that the registered modifiers key is exited.java.lang.StringgetName()abstract booleanprocessMouseEvent(GenericMouseEvent e)Processes the mouse event.
-
-
-
Constructor Detail
-
MouseBehaviorHandler
public MouseBehaviorHandler(B behavior, InteractionModeHandler handler)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
enterModifiersKey
public boolean enterModifiersKey()
Notify 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.- Returns:
trueif the event is processed correctly
-
exitModifiersKey
public boolean exitModifiersKey()
Notify 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.- Returns:
trueif the event is processed correctly
-
processMouseEvent
public abstract boolean processMouseEvent(GenericMouseEvent e)
Processes the mouse event. Returnstrueif the event is processed correctly and should not be passed on to other behaviors. Returnsfalseif this behavior does not process the event.- Parameters:
e- the mouse event- Returns:
trueif the event is processed correctly
-
-
DMelt 3.0 © DataMelt by jWork.ORG