public abstract class AbstractGraphMousePlugin extends Object implements GraphMousePlugin
Modifier and Type | Field and Description |
---|---|
protected Cursor |
cursor
the special cursor that plugins may display
|
protected 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)
Creates an instance with the specified mouse event modifiers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkModifiers(MouseEvent e)
check the mouse event modifiers against the
instance member modifiers.
|
Cursor |
getCursor() |
int |
getModifiers()
getter for mouse modifiers
|
void |
setCursor(Cursor cursor) |
void |
setModifiers(int modifiers)
setter for mouse modifiers
|
protected int modifiers
protected Point down
protected Cursor cursor
public AbstractGraphMousePlugin(int modifiers)
modifiers
- the mouse event modifiers to usepublic int getModifiers()
getModifiers
in interface GraphMousePlugin
public void setModifiers(int modifiers)
setModifiers
in interface GraphMousePlugin
modifiers
- the mouse event modifiers that will activate this pluginpublic boolean checkModifiers(MouseEvent e)
checkModifiers
in interface GraphMousePlugin
e
- an event to compare topublic Cursor getCursor()
public void setCursor(Cursor cursor)
cursor
- The cursor to set.Copyright © 2015. All rights reserved.