Class EditorRubberband
java.lang.Object
com.mxgraph.swing.handler.mxRubberband
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.editor.EditorRubberband
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener
public class EditorRubberband
extends com.mxgraph.swing.handler.mxRubberband
Custom
mxRubberband to prevent rubberband-selection with right-mouse-click-dragging- Author:
- osobaa
-
Field Summary
Fields inherited from class com.mxgraph.swing.handler.mxRubberband
borderColor, bounds, enabled, fillColor, first, graphComponent -
Constructor Summary
ConstructorsConstructorDescriptionEditorRubberband(com.mxgraph.swing.mxGraphComponent graphComponent) Constructs a new rubberband selection for the givenmxGraphComponent. -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes standardmxRubberbandbehavior on left-clickvoidEnablemxRubberbandselection only on left-clickvoidDisablesmxRubberbandselection when mouse is releasedMethods inherited from class com.mxgraph.swing.handler.mxRubberband
getBorderColor, getFillColor, isEnabled, isRubberbandTrigger, mouseClicked, mouseEntered, mouseExited, mouseMoved, paintRubberband, reset, select, setBorderColor, setEnabled, setFillColor, start
-
Constructor Details
-
EditorRubberband
public EditorRubberband(com.mxgraph.swing.mxGraphComponent graphComponent) Constructs a new rubberband selection for the givenmxGraphComponent. This Rubberband prevents rubberband selection on right mouse click in only activating it, when left mouse button is used- Parameters:
graphComponent- Component that contains the ative standardmxRubberband.
-
-
Method Details
-
mousePressed
EnablemxRubberbandselection only on left-click- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classcom.mxgraph.swing.handler.mxRubberband- Parameters:
e- StandardMouseEvent
-
mouseDragged
Invokes standardmxRubberbandbehavior on left-click- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classcom.mxgraph.swing.handler.mxRubberband- Parameters:
e- StandardMouseEvent
-
mouseReleased
DisablesmxRubberbandselection when mouse is released- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classcom.mxgraph.swing.handler.mxRubberband- Parameters:
e- StandardMouseEvent
-