public class mxVertexHandler extends mxCellHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
constrainedEvent
Workaround for shift-key-state not correct in mouseReleased.
|
static java.awt.Cursor[] |
CURSORS |
protected boolean |
gridEnabledEvent
Workaround for alt-key-state not correct in mouseReleased.
|
bounds, first, graphComponent, handles, handlesVisible, index, preview, state
Constructor and Description |
---|
mxVertexHandler(mxGraphComponent graphComponent,
mxCellState state) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Rectangle[] |
createHandles()
Creates the rectangles that define the handles.
|
protected javax.swing.JComponent |
createPreview()
Creates the preview for this handler.
|
protected java.awt.Cursor |
getCursor(java.awt.event.MouseEvent e,
int index)
Returns the cursor for the given event and handle.
|
java.awt.Color |
getSelectionColor()
Returns the color used to draw the selection border.
|
java.awt.Stroke |
getSelectionStroke()
Returns the stroke used to draw the selection border.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Processes the given event.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Processes the given event.
|
protected void |
moveLabel(java.awt.event.MouseEvent e) |
void |
paint(java.awt.Graphics g)
Paints the visible handles of this handler.
|
protected void |
resizeCell(java.awt.event.MouseEvent e) |
protected mxRectangle |
union(mxRectangle bounds,
double dx,
double dy,
int index) |
destroy, getBounds, getGraphComponent, getHandleBorderColor, getHandleCount, getHandleFillColor, getIndex, getIndexAt, getState, getToolTipText, isActive, isHandleEnabled, isHandlesVisible, isHandleVisible, isIgnoredEvent, isLabel, isLabelMovable, mouseMoved, mousePressed, refresh, reset, setHandlesVisible, start
public static java.awt.Cursor[] CURSORS
protected transient boolean gridEnabledEvent
protected transient boolean constrainedEvent
public mxVertexHandler(mxGraphComponent graphComponent, mxCellState state)
graphComponent
- state
- protected java.awt.Rectangle[] createHandles()
mxCellHandler
createHandles
in class mxCellHandler
protected javax.swing.JComponent createPreview()
mxCellHandler
createPreview
in class mxCellHandler
public void mouseDragged(java.awt.event.MouseEvent e)
mxCellHandler
mouseDragged
in class mxCellHandler
public void mouseReleased(java.awt.event.MouseEvent e)
mxCellHandler
mouseReleased
in class mxCellHandler
protected void moveLabel(java.awt.event.MouseEvent e)
protected void resizeCell(java.awt.event.MouseEvent e)
e
- protected java.awt.Cursor getCursor(java.awt.event.MouseEvent e, int index)
mxCellHandler
getCursor
in class mxCellHandler
protected mxRectangle union(mxRectangle bounds, double dx, double dy, int index)
bounds
- dx
- dy
- index
- public java.awt.Color getSelectionColor()
mxCellHandler
getSelectionColor
in class mxCellHandler
public java.awt.Stroke getSelectionStroke()
mxCellHandler
getSelectionStroke
in class mxCellHandler
public void paint(java.awt.Graphics g)
mxCellHandler
paint
in class mxCellHandler
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.