|
JGraph X 1.4.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.swing.handler.mxCellHandler
com.mxgraph.swing.handler.mxVertexHandler
public class mxVertexHandler
| Field Summary | |
|---|---|
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. |
| Fields inherited from class com.mxgraph.swing.handler.mxCellHandler |
|---|
bounds, first, graphComponent, handles, handlesVisible, index, preview, state |
| Constructor Summary | |
|---|---|
mxVertexHandler(mxGraphComponent graphComponent,
mxCellState state)
|
|
| Method Summary | |
|---|---|
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. |
protected java.awt.Color |
getSelectionColor()
|
protected java.awt.Stroke |
getSelectionStroke()
|
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)
|
| Methods inherited from class com.mxgraph.swing.handler.mxCellHandler |
|---|
getBounds, getGraphComponent, getHandleBorderColor, getHandleCount, getHandleFillColor, getIndex, getIndexAt, getState, getToolTipText, isActive, isHandleEnabled, isHandlesVisible, isHandleVisible, isIgnoredEvent, isLabel, isLabelMovable, mouseMoved, mousePressed, refresh, reset, setHandlesVisible, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.awt.Cursor[] CURSORS
protected transient boolean gridEnabledEvent
protected transient boolean constrainedEvent
| Constructor Detail |
|---|
public mxVertexHandler(mxGraphComponent graphComponent,
mxCellState state)
graphComponent - state - | Method Detail |
|---|
protected java.awt.Rectangle[] createHandles()
mxCellHandler
createHandles in class mxCellHandlerprotected javax.swing.JComponent createPreview()
mxCellHandler
createPreview in class mxCellHandlerpublic void mouseDragged(java.awt.event.MouseEvent e)
mxCellHandler
mouseDragged in class mxCellHandlerpublic void mouseReleased(java.awt.event.MouseEvent e)
mxCellHandler
mouseReleased in class mxCellHandlerprotected 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 - protected java.awt.Color getSelectionColor()
protected java.awt.Stroke getSelectionStroke()
public void paint(java.awt.Graphics g)
mxCellHandler
paint in class mxCellHandler
|
JGraph X 1.4.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||