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)
create an instance with passed values
|
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
- public int getModifiers()
getModifiers
in interface GraphMousePlugin
public void setModifiers(int modifiers)
setModifiers
in interface GraphMousePlugin
public 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 © 2014. All rights reserved.