public abstract class AbstractGraphMousePlugin extends java.lang.Object implements GraphMousePlugin
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Cursor |
cursor
the special cursor that plugins may display
|
protected java.awt.Point |
down
the location in the View where the mouse was pressed
|
protected int |
modifiers
modifiers to compare against mouse event modifiers
|
| Constructor and Description |
|---|
AbstractGraphMousePlugin(int modifiers)
create an instance with passed values
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkModifiers(java.awt.event.MouseEvent e)
check the mouse event modifiers against the
instance member modifiers.
|
java.awt.Cursor |
getCursor() |
int |
getModifiers()
getter for mouse modifiers
|
void |
setCursor(java.awt.Cursor cursor) |
void |
setModifiers(int modifiers)
setter for mouse modifiers
|
protected int modifiers
protected java.awt.Point down
protected java.awt.Cursor cursor
public AbstractGraphMousePlugin(int modifiers)
modifiers - public int getModifiers()
getModifiers in interface GraphMousePluginpublic void setModifiers(int modifiers)
setModifiers in interface GraphMousePluginpublic boolean checkModifiers(java.awt.event.MouseEvent e)
checkModifiers in interface GraphMousePlugine - an event to compare topublic java.awt.Cursor getCursor()
public void setCursor(java.awt.Cursor cursor)
cursor - The cursor to set.