JGraph X 0.15.0.3


com.mxgraph.swing.handler
Class mxElbowEdgeHandler

java.lang.Object
  extended by com.mxgraph.swing.handler.mxCellHandler
      extended by com.mxgraph.swing.handler.mxEdgeHandler
          extended by com.mxgraph.swing.handler.mxElbowEdgeHandler

public class mxElbowEdgeHandler
extends mxEdgeHandler


Field Summary
protected  boolean bendable
           
 
Fields inherited from class com.mxgraph.swing.handler.mxEdgeHandler
cloneEnabled, constrainedEvent, error, gridEnabledEvent, marker, p
 
Fields inherited from class com.mxgraph.swing.handler.mxCellHandler
graphComponent, handles, handlesVisible, index, labelMovable, preview, start, state
 
Constructor Summary
mxElbowEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
           
 
Method Summary
protected  Rectangle[] createHandles()
           
 String getToolTipText(MouseEvent e)
          Hook for subclassers to return tooltip texts for certain points on the handle.
protected  boolean isFlipEvent(MouseEvent e)
           
protected  boolean isHandleVisible(int index)
          Hides the middle handle if the edge is not bendable.
 
Methods inherited from class com.mxgraph.swing.handler.mxEdgeHandler
connect, convertPoint, createHandle, createHandle, createPoints, createPreview, getCursor, getHandleFillColor, getIndexAt, getPreviewBounds, isCloneEnabled, isIgnoredEvent, isSource, isTarget, mouseDragged, mousePressed, mouseReleased, moveLabelTo, movePoint, paint, setCloneEnabled, validateConnection
 
Methods inherited from class com.mxgraph.swing.handler.mxCellHandler
getHandleBorderColor, getHandleCount, getState, isHandlesVisible, isLabel, isLabelMovable, mouseMoved, reset, setHandlesVisible, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bendable

protected boolean bendable
Constructor Detail

mxElbowEdgeHandler

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

getToolTipText

public String getToolTipText(MouseEvent e)
Hook for subclassers to return tooltip texts for certain points on the handle.

Overrides:
getToolTipText in class mxCellHandler

isFlipEvent

protected boolean isFlipEvent(MouseEvent e)
Overrides:
isFlipEvent in class mxEdgeHandler

isHandleVisible

protected boolean isHandleVisible(int index)
Hides the middle handle if the edge is not bendable.

Overrides:
isHandleVisible in class mxCellHandler

createHandles

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

JGraph X 0.15.0.3


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