JGraph X 0.15.0.3


com.mxgraph.swing.handler
Class mxVertexHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxCellHandler
      extended by com.mxgraph.swing.handler.mxVertexHandler

public class mxVertexHandler
extends mxCellHandler


Field Summary
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.
 
Fields inherited from class com.mxgraph.swing.handler.mxCellHandler
graphComponent, handles, handlesVisible, index, labelMovable, preview, start, state
 
Constructor Summary
mxVertexHandler(mxGraphComponent graphComponent, mxCellState state)
           
 
Method Summary
protected  Rectangle[] createHandles()
           
protected  JComponent createPreview()
           
protected  Cursor getCursor(MouseEvent e, int index)
           
 void mouseDragged(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
protected  void moveLabel(MouseEvent e)
           
 void paint(Graphics g)
           
protected  void resizeCell(MouseEvent e)
           
protected  mxRectangle union(mxRectangle bounds, double dx, double dy, int index)
           
 
Methods inherited from class com.mxgraph.swing.handler.mxCellHandler
getHandleBorderColor, getHandleCount, getHandleFillColor, getIndexAt, getState, getToolTipText, isHandlesVisible, isHandleVisible, isIgnoredEvent, isLabel, isLabelMovable, mouseMoved, mousePressed, reset, setHandlesVisible, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURSORS

public static Cursor[] CURSORS

gridEnabledEvent

protected transient boolean gridEnabledEvent
Workaround for alt-key-state not correct in mouseReleased.


constrainedEvent

protected transient boolean constrainedEvent
Workaround for shift-key-state not correct in mouseReleased.

Constructor Detail

mxVertexHandler

public mxVertexHandler(mxGraphComponent graphComponent,
                       mxCellState state)
Parameters:
graphComponent -
state -
Method Detail

createHandles

protected Rectangle[] createHandles()
Overrides:
createHandles in class mxCellHandler

createPreview

protected JComponent createPreview()
Overrides:
createPreview in class mxCellHandler

mouseDragged

public void mouseDragged(MouseEvent e)
Overrides:
mouseDragged in class mxCellHandler

mouseReleased

public void mouseReleased(MouseEvent e)
Overrides:
mouseReleased in class mxCellHandler

moveLabel

protected void moveLabel(MouseEvent e)

resizeCell

protected void resizeCell(MouseEvent e)
Parameters:
e -

getCursor

protected Cursor getCursor(MouseEvent e,
                           int index)
Overrides:
getCursor in class mxCellHandler
Returns:
Returns the cursor for the given event and index.

union

protected mxRectangle union(mxRectangle bounds,
                            double dx,
                            double dy,
                            int index)
Parameters:
bounds -
dx -
dy -
index -

paint

public void paint(Graphics g)
Overrides:
paint in class mxCellHandler

JGraph X 0.15.0.3


Copyright (c) 2008 Gaudenz Alder. All rights reserved.