public class mxVertexHandler extends mxCellHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
constrainedEvent
Workaround for shift-key-state not correct in mouseReleased.
|
static 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 Rectangle[] |
createHandles()
Creates the rectangles that define the handles.
|
protected JComponent |
createPreview()
Creates the preview for this handler.
|
protected Cursor |
getCursor(MouseEvent e,
int index)
Returns the cursor for the given event and handle.
|
Color |
getSelectionColor()
Returns the color used to draw the selection border.
|
Stroke |
getSelectionStroke()
Returns the stroke used to draw the selection border.
|
void |
mouseDragged(MouseEvent e)
Processes the given event.
|
void |
mouseReleased(MouseEvent e)
Processes the given event.
|
protected void |
moveLabel(MouseEvent e) |
void |
paint(Graphics g)
Paints the visible handles of this handler.
|
protected void |
resizeCell(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, startpublic static Cursor[] CURSORS
protected transient boolean gridEnabledEvent
protected transient boolean constrainedEvent
public mxVertexHandler(mxGraphComponent graphComponent, mxCellState state)
graphComponent - state - protected Rectangle[] createHandles()
mxCellHandlercreateHandles in class mxCellHandlerprotected JComponent createPreview()
mxCellHandlercreatePreview in class mxCellHandlerpublic void mouseDragged(MouseEvent e)
mxCellHandlermouseDragged in class mxCellHandlerpublic void mouseReleased(MouseEvent e)
mxCellHandlermouseReleased in class mxCellHandlerprotected void moveLabel(MouseEvent e)
protected void resizeCell(MouseEvent e)
e - protected Cursor getCursor(MouseEvent e, int index)
mxCellHandlergetCursor in class mxCellHandlerprotected mxRectangle union(mxRectangle bounds, double dx, double dy, int index)
bounds - dx - dy - index - public Color getSelectionColor()
mxCellHandlergetSelectionColor in class mxCellHandlerpublic Stroke getSelectionStroke()
mxCellHandlergetSelectionStroke in class mxCellHandlerpublic void paint(Graphics g)
mxCellHandlerpaint in class mxCellHandlerCopyright (c) 2010 Gaudenz Alder. All rights reserved.