Class AbstractGraphMousePlugin
- java.lang.Object
-
- org.jungrapht.visualization.control.AbstractGraphMousePlugin
-
- All Implemented Interfaces:
GraphMousePlugin
- Direct Known Subclasses:
AbstractGraphMousePlugin.Selecting,AbstractPopupGraphMousePlugin,AnimatedPickingGraphMousePlugin,AnnotatingGraphMousePlugin,EdgeSelectingGraphMousePlugin,EditingGraphMousePlugin,LabelEditingGraphMousePlugin,LensMagnificationGraphMousePlugin,LensTranslatingGraphMousePlugin,RegionSelectingGraphMousePlugin,RotatingGraphMousePlugin,ScalingGraphMousePlugin,SelectingGraphMousePlugin,ShearingGraphMousePlugin,TranslatingGraphMousePlugin,VertexSelectingGraphMousePlugin,ViewTranslatingGraphMousePlugin
public abstract class AbstractGraphMousePlugin extends Object implements GraphMousePlugin
a base class for GraphMousePlugin instances. Holds some members common to all GraphMousePlugins- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractGraphMousePlugin.SelectingDeprecated.
-
Constructor Summary
Constructors Constructor Description AbstractGraphMousePlugin()AbstractGraphMousePlugin(int modifiers)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancheckModifiers(MouseEvent e)check the mouse event modifiers against the instance member modifiers.CursorgetCursor()intgetModifiersEx()Deprecated.voidsetCursor(Cursor cursor)voidsetModifiers(int modifiers)Deprecated.
-
-
-
Field Detail
-
modifiers
@Deprecated protected int modifiers
Deprecated.modifiers to compare against mouse event modifiers
-
down
protected Point down
the location in the View where the mouse was pressed
-
cursor
protected Cursor cursor
the special cursor that plugins may display
-
-
Constructor Detail
-
AbstractGraphMousePlugin
@Deprecated public AbstractGraphMousePlugin(int modifiers)
Deprecated.Creates an instance with the specified mouse event modifiers.- Parameters:
modifiers- the mouse event modifiers to use
-
AbstractGraphMousePlugin
public AbstractGraphMousePlugin()
-
-
Method Detail
-
getModifiersEx
@Deprecated public int getModifiersEx()
Deprecated.getter for mouse modifiers- Specified by:
getModifiersExin interfaceGraphMousePlugin- Returns:
- the mouse event modifiers that will activate this plugin
-
setModifiers
@Deprecated public void setModifiers(int modifiers)
Deprecated.setter for mouse modifiers- Specified by:
setModifiersin interfaceGraphMousePlugin- Parameters:
modifiers- the mouse event modifiers that will activate this plugin
-
checkModifiers
public boolean checkModifiers(MouseEvent e)
check the mouse event modifiers against the instance member modifiers. Default implementation checks equality. Can be overridden to test with a mask- Specified by:
checkModifiersin interfaceGraphMousePlugin- Parameters:
e- an event to compare to- Returns:
- whether the member modifiers match the event modifiers
-
getCursor
public Cursor getCursor()
- Returns:
- Returns the cursor.
-
setCursor
public void setCursor(Cursor cursor)
- Parameters:
cursor- The cursor to set.
-
-