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 booleanWorkaround for shift-key-state not correct in mouseReleased.static Cursor[]protected booleanWorkaround 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 JComponentCreates the preview for this handler.protected CursorgetCursor(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.voidProcesses the given event.voidProcesses the given event.protected voidvoidPaints the visible handles of this handler.protected voidprotected mxRectangleunion(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:mxCellHandlerCreates the rectangles that define the handles.- Overrides:
createHandlesin classmxCellHandler
-
createPreview
Description copied from class:mxCellHandlerCreates the preview for this handler.- Overrides:
createPreviewin classmxCellHandler
-
mouseDragged
Description copied from class:mxCellHandlerProcesses the given event.- Overrides:
mouseDraggedin classmxCellHandler
-
mouseReleased
Description copied from class:mxCellHandlerProcesses the given event.- Overrides:
mouseReleasedin classmxCellHandler
-
moveLabel
-
resizeCell
- Parameters:
e-
-
getCursor
Description copied from class:mxCellHandlerReturns the cursor for the given event and handle.- Overrides:
getCursorin classmxCellHandler
-
union
- Parameters:
bounds-dx-dy-index-
-
getSelectionColor
Description copied from class:mxCellHandlerReturns the color used to draw the selection border. This implementation returns null.- Overrides:
getSelectionColorin classmxCellHandler
-
getSelectionStroke
Description copied from class:mxCellHandlerReturns the stroke used to draw the selection border. This implementation returns null.- Overrides:
getSelectionStrokein classmxCellHandler
-
paint
Description copied from class:mxCellHandlerPaints the visible handles of this handler.- Overrides:
paintin classmxCellHandler
-