org.jplot2d.interaction
Class InteractionModeHandler
- java.lang.Object
-
- org.jplot2d.interaction.InteractionModeHandler
-
public class InteractionModeHandler extends java.lang.ObjectAn operation mode contains a list of available commands and configuration of how to trigger them.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringMODE_ENTERED_KEY
-
Constructor Summary
Constructors Constructor and Description InteractionModeHandler(InteractionHandler ihandler, InteractionMode imode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(java.lang.Object graphics)InteractionModegetInteractionMode()Returns the mode name.java.lang.ObjectgetValue(java.lang.String key)Gets theObjectassociated with the specified key.voidkeyPressed(int modifiers, int modifierKey)voidkeyReleased(int modifiers, int modifierKey)voidmodeEntered()voidmodeExited()voidmouseClicked(GenericMouseEvent e)voidmouseDragged(GenericMouseEvent e)voidmouseEntered(GenericMouseEvent e)voidmouseExited(GenericMouseEvent e)voidmouseMoved(GenericMouseEvent e)voidmousePressed(GenericMouseEvent e)voidmouseReleased(GenericMouseEvent e)voidmouseWheelMoved(GenericMouseEvent e)voidputValue(java.lang.String key, java.lang.Object newValue)Sets theValueassociated with the specified key.java.lang.StringtoString()
-
-
-
Field Detail
-
MODE_ENTERED_KEY
public static final java.lang.String MODE_ENTERED_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InteractionModeHandler
public InteractionModeHandler(InteractionHandler ihandler, InteractionMode imode)
-
-
Method Detail
-
getInteractionMode
public final InteractionMode getInteractionMode()
Returns the mode name.- Returns:
- the mode name
-
keyPressed
public void keyPressed(int modifiers, int modifierKey)
-
keyReleased
public void keyReleased(int modifiers, int modifierKey)
-
mouseEntered
public void mouseEntered(GenericMouseEvent e)
-
mouseExited
public void mouseExited(GenericMouseEvent e)
-
mouseClicked
public void mouseClicked(GenericMouseEvent e)
-
mousePressed
public void mousePressed(GenericMouseEvent e)
-
mouseReleased
public void mouseReleased(GenericMouseEvent e)
-
mouseMoved
public void mouseMoved(GenericMouseEvent e)
-
mouseDragged
public void mouseDragged(GenericMouseEvent e)
-
mouseWheelMoved
public void mouseWheelMoved(GenericMouseEvent e)
-
draw
public void draw(java.lang.Object graphics)
-
getValue
public java.lang.Object getValue(java.lang.String key)
Gets theObjectassociated with the specified key.- Parameters:
key- a string containing the specifiedkey- Returns:
- the binding
Objectstored with this key; if there are no keys, it will returnnull
-
putValue
public void putValue(java.lang.String key, java.lang.Object newValue)Sets theValueassociated with the specified key.- Parameters:
key- theStringthat identifies the stored objectnewValue- theObjectto store using this key
-
modeEntered
public void modeEntered()
-
modeExited
public void modeExited()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG