Package com.mxgraph.swing.handler
Class mxVertexHandler
java.lang.Object
com.mxgraph.swing.handler.mxCellHandler
com.mxgraph.swing.handler.mxVertexHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Workaround for shift-key-state not correct in mouseReleased.static Cursor[]
protected boolean
Workaround for alt-key-state not correct in mouseReleased.Fields inherited from class com.mxgraph.swing.handler.mxCellHandler
bounds, first, graphComponent, handles, handlesVisible, index, preview, state
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle[]
Creates the rectangles that define the handles.protected JComponent
Creates the preview for this handler.protected Cursor
getCursor
(MouseEvent e, int index) Returns the cursor for the given event and handle.Returns the color used to draw the selection border.Returns the stroke used to draw the selection border.void
Processes the given event.void
Processes the given event.protected void
void
Paints the visible handles of this handler.protected void
protected mxRectangle
union
(mxRectangle bounds, double dx, double dy, int index) Methods inherited from class com.mxgraph.swing.handler.mxCellHandler
destroy, getBounds, getGraphComponent, getHandleBorderColor, getHandleCount, getHandleFillColor, getIndex, getIndexAt, getState, getToolTipText, isActive, isHandleEnabled, isHandlesVisible, isHandleVisible, isIgnoredEvent, isLabel, isLabelMovable, mouseMoved, mousePressed, refresh, reset, setHandlesVisible, start
-
Field Details
-
CURSORS
-
gridEnabledEvent
protected transient boolean gridEnabledEventWorkaround for alt-key-state not correct in mouseReleased. -
constrainedEvent
protected transient boolean constrainedEventWorkaround for shift-key-state not correct in mouseReleased.
-
-
Constructor Details
-
mxVertexHandler
- Parameters:
graphComponent
-state
-
-
-
Method Details
-
createHandles
Description copied from class:mxCellHandler
Creates the rectangles that define the handles.- Overrides:
createHandles
in classmxCellHandler
-
createPreview
Description copied from class:mxCellHandler
Creates the preview for this handler.- Overrides:
createPreview
in classmxCellHandler
-
mouseDragged
Description copied from class:mxCellHandler
Processes the given event.- Overrides:
mouseDragged
in classmxCellHandler
-
mouseReleased
Description copied from class:mxCellHandler
Processes the given event.- Overrides:
mouseReleased
in classmxCellHandler
-
moveLabel
-
resizeCell
- Parameters:
e
-
-
getCursor
Description copied from class:mxCellHandler
Returns the cursor for the given event and handle.- Overrides:
getCursor
in classmxCellHandler
-
union
- Parameters:
bounds
-dx
-dy
-index
-
-
getSelectionColor
Description copied from class:mxCellHandler
Returns the color used to draw the selection border. This implementation returns null.- Overrides:
getSelectionColor
in classmxCellHandler
-
getSelectionStroke
Description copied from class:mxCellHandler
Returns the stroke used to draw the selection border. This implementation returns null.- Overrides:
getSelectionStroke
in classmxCellHandler
-
paint
Description copied from class:mxCellHandler
Paints the visible handles of this handler.- Overrides:
paint
in classmxCellHandler
-