mxVertexHandler

Event handler for resizing cells.  This handler is automatically created in mxGraph.createHandler.

Summary
mxVertexHandlerEvent handler for resizing cells.
Functions
mxVertexHandlerConstructs an event handler that allows to resize vertices and groups.
Variables
graphReference to the enclosing mxGraph.
stateReference to the mxCellState being modified.
singleSizerSpecifies if only one sizer handle at the bottom, right corner should be used.
indexHolds the index of the current handle.
allowHandleBoundsCheckSpecifies if the bounds of handles should be used for hit-detection in IE or if tolerance > 0.
handleImageOptional mxImage to be used as handles.
handlesVisibleIf handles are currently visible.
toleranceOptional tolerance for hit-detection in getHandleForEvent.
rotationEnabledSpecifies if a rotation handle should be visible.
parentHighlightEnabledSpecifies if the parent should be highlighted if a child cell is selected.
rotationRasterSpecifies if rotation steps should be “rasterized” depening on the distance to the handle.
rotationCursorSpecifies the cursor for the rotation handle.
livePreviewSpecifies if resize should change the cell in-place.
movePreviewToFrontSpecifies if the live preview should be moved to the front.
manageSizersSpecifies if sizers should be hidden and spaced if the vertex is small.
constrainGroupByChildrenSpecifies if the size of groups should be constrained by the children.
rotationHandleVSpacingVertical spacing for rotation icon.
horizontalOffsetThe horizontal offset for the handles.
verticalOffsetThe horizontal offset for the handles.
Functions
initInitializes the shapes required for this vertex handler.
isRotationHandleVisibleReturns true if the rotation handle should be showing.
isConstrainedEventReturns true if the aspect ratio if the cell should be maintained.
isCenteredEventReturns true if the center of the vertex should be maintained during the resize.
createCustomHandlesReturns an array of custom handles.
updateMinBoundsInitializes the shapes required for this vertex handler.
getSelectionBoundsReturns the mxRectangle that defines the bounds of the selection border.
createParentHighlightShapeCreates the shape used to draw the selection border.
createSelectionShapeCreates the shape used to draw the selection border.
getSelectionColorReturns mxConstants.VERTEX_SELECTION_COLOR.
getSelectionStrokeWidthReturns mxConstants.VERTEX_SELECTION_STROKEWIDTH.
isSelectionDashedReturns <mxConstants.VERTEX_SELECTION_DASHED>.
createSizerCreates a sizer handle for the specified cursor and index and returns the new mxRectangleShape that represents the handle.
isSizerVisibleReturns true if the sizer for the given index is visible.
createSizerShapeCreates the shape used for the sizer handle for the specified bounds an index.
createBoundsHelper method to create an mxRectangle around the given centerpoint with a width and height of 2*s or 6, if no s is given.
getHandleForEventReturns the index of the handle for the given event.
isCustomHandleEventReturns true if the given event allows custom handles to be changed.
mouseDownHandles the event if a handle has been clicked.
isLivePreviewBorderCalled if livePreview is enabled to check if a border should be painted.
startStarts the handling of the mouse gesture.
createGhostPreviewStarts the handling of the mouse gesture.
hideHandlesShortcut to hideSizers.
hideSizersHides all sizers except.
checkToleranceChecks if the coordinates for the given event are within the mxGraph.tolerance.
updateHintHook for subclassers do show details while the handler is active.
removeHintHooks for subclassers to hide details when the handler gets inactive.
roundAngleHook for rounding the angle.
roundLengthHook for rounding the unscaled width or height.
mouseMoveHandles the event by updating the preview.
isGhostPreviewReturns true if a ghost preview should be used for custom handles.
moveLabelMoves the label.
rotateVertexRotates the vertex.
resizeVertexRisizes the vertex.
updateLivePreviewRepaints the live preview.
moveToFrontHandles the event by applying the changes to the geometry.
mouseUpHandles the event by applying the changes to the geometry.
isRecursiveResizeReturns the recursiveResize of the give state.
rotateClickHook for subclassers to implement a single click on the rotation handle.
rotateCellRotates the given cell and its children by the given angle in degrees.
resetResets the state of this handler.
resizeCellUses the given vector to change the bounds of the given cell in the graph using mxGraph.resizeCell.
moveChildrenMoves the children of the given cell by the given vector.
unionReturns the union of the given bounds and location for the specified handle index.
redrawRedraws the handles and the preview.
getSizerBoundsReturns the bounds used to paint the resize handles.
redrawHandlesRedraws the handles.
isCustomHandleVisibleReturns true if the given custom handle is visible.
getRotationHandlePositionReturns an mxPoint that defines the rotation handle position.
isParentHighlightVisibleReturns true if the parent highlight should be visible.
updateParentHighlightUpdates the highlight of the parent if parentHighlightEnabled is true.
drawPreviewRedraws the preview.
getSelectionBorderBoundsReturns the bounds for the selection border.
isDestroyedReturns true if this handler was destroyed or not initialized.
destroyDestroys the handler and all its resources and DOM nodes.

Functions

mxVertexHandler

function mxVertexHandler(state)

Constructs an event handler that allows to resize vertices and groups.

Parameters

statemxCellState of the cell to be resized.

Variables

graph

mxVertexHandler.prototype.graph

Reference to the enclosing mxGraph.

state

mxVertexHandler.prototype.state

Reference to the mxCellState being modified.

singleSizer

mxVertexHandler.prototype.singleSizer

Specifies if only one sizer handle at the bottom, right corner should be used.  Default is false.

index

mxVertexHandler.prototype.index

Holds the index of the current handle.

allowHandleBoundsCheck

mxVertexHandler.prototype.allowHandleBoundsCheck

Specifies if the bounds of handles should be used for hit-detection in IE or if tolerance > 0.  Default is true.

handleImage

mxVertexHandler.prototype.handleImage

Optional mxImage to be used as handles.  Default is null.

handlesVisible

mxVertexHandler.prototype.handlesVisible

If handles are currently visible.

tolerance

mxVertexHandler.prototype.tolerance

Optional tolerance for hit-detection in getHandleForEvent.  Default is 0.

rotationEnabled

mxVertexHandler.prototype.rotationEnabled

Specifies if a rotation handle should be visible.  Default is false.

parentHighlightEnabled

mxVertexHandler.prototype.parentHighlightEnabled

Specifies if the parent should be highlighted if a child cell is selected.  Default is false.

rotationRaster

mxVertexHandler.prototype.rotationRaster

Specifies if rotation steps should be “rasterized” depening on the distance to the handle.  Default is true.

rotationCursor

mxVertexHandler.prototype.rotationCursor

Specifies the cursor for the rotation handle.  Default is ‘crosshair’.

livePreview

mxVertexHandler.prototype.livePreview

Specifies if resize should change the cell in-place.  This is an experimental feature for non-touch devices.  Default is false.

movePreviewToFront

mxVertexHandler.prototype.movePreviewToFront

Specifies if the live preview should be moved to the front.

manageSizers

mxVertexHandler.prototype.manageSizers

Specifies if sizers should be hidden and spaced if the vertex is small.  Default is false.

constrainGroupByChildren

mxVertexHandler.prototype.constrainGroupByChildren

Specifies if the size of groups should be constrained by the children.  Default is false.

rotationHandleVSpacing

mxVertexHandler.prototype.rotationHandleVSpacing

Vertical spacing for rotation icon.  Default is -16.

horizontalOffset

mxVertexHandler.prototype.horizontalOffset

The horizontal offset for the handles.  This is updated in redrawHandles if manageSizers is true and the sizers are offset horizontally.

verticalOffset

mxVertexHandler.prototype.verticalOffset

The horizontal offset for the handles.  This is updated in redrawHandles if manageSizers is true and the sizers are offset vertically.

Functions

init

mxVertexHandler.prototype.init = function()

Initializes the shapes required for this vertex handler.

isRotationHandleVisible

mxVertexHandler.prototype.isRotationHandleVisible = function()

Returns true if the rotation handle should be showing.

isConstrainedEvent

mxVertexHandler.prototype.isConstrainedEvent = function(me)

Returns true if the aspect ratio if the cell should be maintained.

isCenteredEvent

mxVertexHandler.prototype.isCenteredEvent = function(state,
me)

Returns true if the center of the vertex should be maintained during the resize.

createCustomHandles

mxVertexHandler.prototype.createCustomHandles = function()

Returns an array of custom handles.  This implementation returns null.

updateMinBounds

mxVertexHandler.prototype.updateMinBounds = function()

Initializes the shapes required for this vertex handler.

getSelectionBounds

mxVertexHandler.prototype.getSelectionBounds = function(state)

Returns the mxRectangle that defines the bounds of the selection border.

createParentHighlightShape

mxVertexHandler.prototype.createParentHighlightShape = function(bounds)

Creates the shape used to draw the selection border.

createSelectionShape

mxVertexHandler.prototype.createSelectionShape = function(bounds)

Creates the shape used to draw the selection border.

getSelectionColor

mxVertexHandler.prototype.getSelectionColor = function()

Returns mxConstants.VERTEX_SELECTION_COLOR.

getSelectionStrokeWidth

mxVertexHandler.prototype.getSelectionStrokeWidth = function()

Returns mxConstants.VERTEX_SELECTION_STROKEWIDTH.

isSelectionDashed

mxVertexHandler.prototype.isSelectionDashed = function()

Returns <mxConstants.VERTEX_SELECTION_DASHED>.

createSizer

mxVertexHandler.prototype.createSizer = function(cursor,
index,
size,
fillColor)

Creates a sizer handle for the specified cursor and index and returns the new mxRectangleShape that represents the handle.

isSizerVisible

mxVertexHandler.prototype.isSizerVisible = function(index)

Returns true if the sizer for the given index is visible.  This returns true for all given indices.

createSizerShape

mxVertexHandler.prototype.createSizerShape = function(bounds,
index,
fillColor)

Creates the shape used for the sizer handle for the specified bounds an index.  Only images and rectangles should be returned if support for HTML labels with not foreign objects is required.

createBounds

Helper method to create an mxRectangle around the given centerpoint with a width and height of 2*s or 6, if no s is given.

getHandleForEvent

mxVertexHandler.prototype.getHandleForEvent = function(me)

Returns the index of the handle for the given event.  This returns the index of the sizer from where the event originated or <mxEvent.LABEL_INDEX>.

isCustomHandleEvent

mxVertexHandler.prototype.isCustomHandleEvent = function(me)

Returns true if the given event allows custom handles to be changed.  This implementation returns true.

mouseDown

mxVertexHandler.prototype.mouseDown = function(sender,
me)

Handles the event if a handle has been clicked.  By consuming the event all subsequent events of the gesture are redirected to this handler.

isLivePreviewBorder

mxVertexHandler.prototype.isLivePreviewBorder = function()

Called if livePreview is enabled to check if a border should be painted.  This implementation returns true if the shape is transparent.

start

mxVertexHandler.prototype.start = function(x,
y,
index)

Starts the handling of the mouse gesture.

createGhostPreview

mxVertexHandler.prototype.createGhostPreview = function()

Starts the handling of the mouse gesture.

hideHandles

Shortcut to hideSizers.

hideSizers

mxVertexHandler.prototype.hideSizers = function()

Hides all sizers except.

Starts the handling of the mouse gesture.

checkTolerance

mxVertexHandler.prototype.checkTolerance = function(me)

Checks if the coordinates for the given event are within the mxGraph.tolerance.  If the event is a mouse event then the tolerance is ignored.

updateHint

mxVertexHandler.prototype.updateHint = function(me)

Hook for subclassers do show details while the handler is active.

removeHint

mxVertexHandler.prototype.removeHint = function()

Hooks for subclassers to hide details when the handler gets inactive.

roundAngle

mxVertexHandler.prototype.roundAngle = function(angle)

Hook for rounding the angle.  This uses Math.round.

roundLength

mxVertexHandler.prototype.roundLength = function(length)

Hook for rounding the unscaled width or height.  This uses Math.round.

mouseMove

mxVertexHandler.prototype.mouseMove = function(sender,
me)

Handles the event by updating the preview.

isGhostPreview

mxVertexHandler.prototype.isGhostPreview = function()

Returns true if a ghost preview should be used for custom handles.

moveLabel

mxVertexHandler.prototype.moveLabel = function(me)

Moves the label.

rotateVertex

mxVertexHandler.prototype.rotateVertex = function(me)

Rotates the vertex.

resizeVertex

mxVertexHandler.prototype.resizeVertex = function(me)

Risizes the vertex.

updateLivePreview

mxVertexHandler.prototype.updateLivePreview = function(me)

Repaints the live preview.

moveToFront

mxVertexHandler.prototype.moveToFront = function()

Handles the event by applying the changes to the geometry.

mouseUp

mxVertexHandler.prototype.mouseUp = function(sender,
me)

Handles the event by applying the changes to the geometry.

isRecursiveResize

mxVertexHandler.prototype.isRecursiveResize = function(state,
me)

Returns the recursiveResize of the give state.

Parameters

statethe given mxCellState.  This implementation takes the value of this state.
methe mouse event.

rotateClick

mxVertexHandler.prototype.rotateClick = function()

Hook for subclassers to implement a single click on the rotation handle.  This code is executed as part of the model transaction.  This implementation is empty.

rotateCell

mxVertexHandler.prototype.rotateCell = function(cell,
angle,
parent)

Rotates the given cell and its children by the given angle in degrees.

Parameters

cellmxCell to be rotated.
angleAngle in degrees.

reset

mxVertexHandler.prototype.reset = function()

Resets the state of this handler.

resizeCell

mxVertexHandler.prototype.resizeCell = function(cell,
dx,
dy,
index,
gridEnabled,
constrained,
recurse)

Uses the given vector to change the bounds of the given cell in the graph using mxGraph.resizeCell.

moveChildren

mxVertexHandler.prototype.moveChildren = function(cell,
dx,
dy)

Moves the children of the given cell by the given vector.

union

mxVertexHandler.prototype.union = function(bounds,
dx,
dy,
index,
gridEnabled,
scale,
tr,
constrained,
centered)

Returns the union of the given bounds and location for the specified handle index.

To override this to limit the size of vertex via a minWidth/-Height style, the following code can be used.

var vertexHandlerUnion = mxVertexHandler.prototype.union;
mxVertexHandler.prototype.union = function(bounds, dx, dy, index, gridEnabled, scale, tr, constrained)
{
  var result = vertexHandlerUnion.apply(this, arguments);

  result.width = Math.max(result.width, mxUtils.getNumber(this.state.style, 'minWidth', 0));
  result.height = Math.max(result.height, mxUtils.getNumber(this.state.style, 'minHeight', 0));

  return result;
};

The minWidth/-Height style can then be used as follows

graph.insertVertex(parent, null, 'Hello,', 20, 20, 80, 30, 'minWidth=100;minHeight=100;');

To override this to update the height for a wrapped text if the width of a vertex is changed, the following can be used.

var mxVertexHandlerUnion = mxVertexHandler.prototype.union;
mxVertexHandler.prototype.union = function(bounds, dx, dy, index, gridEnabled, scale, tr, constrained)
{
  var result = mxVertexHandlerUnion.apply(this, arguments);
  var s = this.state;

  if (this.graph.isHtmlLabel(s.cell) && (index == 3 || index == 4) &&
      s.text != null && s.style[mxConstants.STYLE_WHITE_SPACE] == 'wrap')
  {
    var label = this.graph.getLabel(s.cell);
    var fontSize = mxUtils.getNumber(s.style, mxConstants.STYLE_FONTSIZE, mxConstants.DEFAULT_FONTSIZE);
    var ww = result.width / s.view.scale - s.text.spacingRight - s.text.spacingLeft

    result.height = mxUtils.getSizeForString(label, fontSize, s.style[mxConstants.STYLE_FONTFAMILY], ww).height;
  }

  return result;
};

redraw

mxVertexHandler.prototype.redraw = function(ignoreHandles)

Redraws the handles and the preview.

getSizerBounds

mxVertexHandler.prototype.getSizerBounds = function()

Returns the bounds used to paint the resize handles.

redrawHandles

mxVertexHandler.prototype.redrawHandles = function()

Redraws the handles.  To hide certain handles the following code can be used.

mxVertexHandler.prototype.redrawHandles = function()
{
  mxVertexHandlerRedrawHandles.apply(this, arguments);

  if (this.sizers != null && this.sizers.length > 7)
  {
    this.sizers[1].node.style.display = 'none';
    this.sizers[6].node.style.display = 'none';
  }
};

isCustomHandleVisible

mxVertexHandler.prototype.isCustomHandleVisible = function(handle)

Returns true if the given custom handle is visible.

getRotationHandlePosition

mxVertexHandler.prototype.getRotationHandlePosition = function()

Returns an mxPoint that defines the rotation handle position.

isParentHighlightVisible

mxVertexHandler.prototype.isParentHighlightVisible = function()

Returns true if the parent highlight should be visible.  This implementation always returns true.

updateParentHighlight

mxVertexHandler.prototype.updateParentHighlight = function()

Updates the highlight of the parent if parentHighlightEnabled is true.

drawPreview

mxVertexHandler.prototype.drawPreview = function()

Redraws the preview.

getSelectionBorderBounds

mxVertexHandler.prototype.getSelectionBorderBounds = function()

Returns the bounds for the selection border.

isDestroyed

mxVertexHandler.prototype.isDestroyed = function()

Returns true if this handler was destroyed or not initialized.

destroy

mxVertexHandler.prototype.destroy = function()

Destroys the handler and all its resources and DOM nodes.

function mxVertexHandler(state)
Constructs an event handler that allows to resize vertices and groups.
mxVertexHandler.prototype.graph
Reference to the enclosing mxGraph.
Extends mxEventSource to implement a graph component for the browser.
mxVertexHandler.prototype.state
Reference to the mxCellState being modified.
Represents the current state of a cell in a given mxGraphView.
mxVertexHandler.prototype.singleSizer
Specifies if only one sizer handle at the bottom, right corner should be used.
mxVertexHandler.prototype.index
Holds the index of the current handle.
mxVertexHandler.prototype.allowHandleBoundsCheck
Specifies if the bounds of handles should be used for hit-detection in IE or if tolerance > 0.
mxVertexHandler.prototype.tolerance
Optional tolerance for hit-detection in getHandleForEvent.
mxVertexHandler.prototype.handleImage
Optional mxImage to be used as handles.
Encapsulates the URL, width and height of an image.
mxVertexHandler.prototype.handlesVisible
If handles are currently visible.
mxVertexHandler.prototype.getHandleForEvent = function(me)
Returns the index of the handle for the given event.
mxVertexHandler.prototype.rotationEnabled
Specifies if a rotation handle should be visible.
mxVertexHandler.prototype.parentHighlightEnabled
Specifies if the parent should be highlighted if a child cell is selected.
mxVertexHandler.prototype.rotationRaster
Specifies if rotation steps should be “rasterized” depening on the distance to the handle.
mxVertexHandler.prototype.rotationCursor
Specifies the cursor for the rotation handle.
mxVertexHandler.prototype.livePreview
Specifies if resize should change the cell in-place.
mxVertexHandler.prototype.movePreviewToFront
Specifies if the live preview should be moved to the front.
mxVertexHandler.prototype.manageSizers
Specifies if sizers should be hidden and spaced if the vertex is small.
mxVertexHandler.prototype.constrainGroupByChildren
Specifies if the size of groups should be constrained by the children.
mxVertexHandler.prototype.rotationHandleVSpacing
Vertical spacing for rotation icon.
mxVertexHandler.prototype.horizontalOffset
The horizontal offset for the handles.
mxVertexHandler.prototype.verticalOffset
The horizontal offset for the handles.
mxVertexHandler.prototype.init = function()
Initializes the shapes required for this vertex handler.
mxVertexHandler.prototype.isRotationHandleVisible = function()
Returns true if the rotation handle should be showing.
mxVertexHandler.prototype.isConstrainedEvent = function(me)
Returns true if the aspect ratio if the cell should be maintained.
mxVertexHandler.prototype.isCenteredEvent = function(state,
me)
Returns true if the center of the vertex should be maintained during the resize.
mxVertexHandler.prototype.createCustomHandles = function()
Returns an array of custom handles.
mxVertexHandler.prototype.updateMinBounds = function()
Initializes the shapes required for this vertex handler.
mxVertexHandler.prototype.getSelectionBounds = function(state)
Returns the mxRectangle that defines the bounds of the selection border.
mxVertexHandler.prototype.createParentHighlightShape = function(bounds)
Creates the shape used to draw the selection border.
mxVertexHandler.prototype.createSelectionShape = function(bounds)
Creates the shape used to draw the selection border.
mxVertexHandler.prototype.getSelectionColor = function()
Returns mxConstants.VERTEX_SELECTION_COLOR.
VERTEX_SELECTION_COLOR: '#00FF00'
Defines the color to be used for the selection border of vertices.
mxVertexHandler.prototype.getSelectionStrokeWidth = function()
Returns mxConstants.VERTEX_SELECTION_STROKEWIDTH.
VERTEX_SELECTION_STROKEWIDTH: 1
Defines the strokewidth to be used for vertex selections.
mxVertexHandler.prototype.isSelectionDashed = function()
Returns mxConstants.VERTEX_SELECTION_DASHED.
mxVertexHandler.prototype.createSizer = function(cursor,
index,
size,
fillColor)
Creates a sizer handle for the specified cursor and index and returns the new mxRectangleShape that represents the handle.
Extends mxShape to implement a rectangle shape.
mxVertexHandler.prototype.isSizerVisible = function(index)
Returns true if the sizer for the given index is visible.
mxVertexHandler.prototype.createSizerShape = function(bounds,
index,
fillColor)
Creates the shape used for the sizer handle for the specified bounds an index.
Extends mxPoint to implement a 2-dimensional rectangle with double precision coordinates.
mxVertexHandler.prototype.isCustomHandleEvent = function(me)
Returns true if the given event allows custom handles to be changed.
mxVertexHandler.prototype.mouseDown = function(sender,
me)
Handles the event if a handle has been clicked.
mxVertexHandler.prototype.isLivePreviewBorder = function()
Called if livePreview is enabled to check if a border should be painted.
mxVertexHandler.prototype.start = function(x,
y,
index)
Starts the handling of the mouse gesture.
mxVertexHandler.prototype.createGhostPreview = function()
Starts the handling of the mouse gesture.
mxVertexHandler.prototype.hideSizers = function()
Hides all sizers except.
mxVertexHandler.prototype.checkTolerance = function(me)
Checks if the coordinates for the given event are within the mxGraph.tolerance.
mxGraph.prototype.tolerance
Tolerance for a move to be handled as a single click.
mxVertexHandler.prototype.updateHint = function(me)
Hook for subclassers do show details while the handler is active.
mxVertexHandler.prototype.removeHint = function()
Hooks for subclassers to hide details when the handler gets inactive.
mxVertexHandler.prototype.roundAngle = function(angle)
Hook for rounding the angle.
mxVertexHandler.prototype.roundLength = function(length)
Hook for rounding the unscaled width or height.
mxVertexHandler.prototype.mouseMove = function(sender,
me)
Handles the event by updating the preview.
mxVertexHandler.prototype.isGhostPreview = function()
Returns true if a ghost preview should be used for custom handles.
mxVertexHandler.prototype.moveLabel = function(me)
Moves the label.
mxVertexHandler.prototype.rotateVertex = function(me)
Rotates the vertex.
mxVertexHandler.prototype.resizeVertex = function(me)
Risizes the vertex.
mxVertexHandler.prototype.updateLivePreview = function(me)
Repaints the live preview.
mxVertexHandler.prototype.moveToFront = function()
Handles the event by applying the changes to the geometry.
mxVertexHandler.prototype.mouseUp = function(sender,
me)
Handles the event by applying the changes to the geometry.
mxVertexHandler.prototype.isRecursiveResize = function(state,
me)
Returns the recursiveResize of the give state.
mxVertexHandler.prototype.rotateClick = function()
Hook for subclassers to implement a single click on the rotation handle.
mxVertexHandler.prototype.rotateCell = function(cell,
angle,
parent)
Rotates the given cell and its children by the given angle in degrees.
mxVertexHandler.prototype.reset = function()
Resets the state of this handler.
mxVertexHandler.prototype.resizeCell = function(cell,
dx,
dy,
index,
gridEnabled,
constrained,
recurse)
Uses the given vector to change the bounds of the given cell in the graph using mxGraph.resizeCell.
mxGraph.prototype.resizeCell = function(cell,
bounds,
recurse)
Sets the bounds of the given cell using resizeCells.
mxVertexHandler.prototype.moveChildren = function(cell,
dx,
dy)
Moves the children of the given cell by the given vector.
mxVertexHandler.prototype.union = function(bounds,
dx,
dy,
index,
gridEnabled,
scale,
tr,
constrained,
centered)
Returns the union of the given bounds and location for the specified handle index.
mxVertexHandler.prototype.redraw = function(ignoreHandles)
Redraws the handles and the preview.
mxVertexHandler.prototype.getSizerBounds = function()
Returns the bounds used to paint the resize handles.
mxVertexHandler.prototype.redrawHandles = function()
Redraws the handles.
mxVertexHandler.prototype.isCustomHandleVisible = function(handle)
Returns true if the given custom handle is visible.
mxVertexHandler.prototype.getRotationHandlePosition = function()
Returns an mxPoint that defines the rotation handle position.
Implements a 2-dimensional vector with double precision coordinates.
mxVertexHandler.prototype.isParentHighlightVisible = function()
Returns true if the parent highlight should be visible.
mxVertexHandler.prototype.updateParentHighlight = function()
Updates the highlight of the parent if parentHighlightEnabled is true.
mxVertexHandler.prototype.drawPreview = function()
Redraws the preview.
mxVertexHandler.prototype.getSelectionBorderBounds = function()
Returns the bounds for the selection border.
mxVertexHandler.prototype.isDestroyed = function()
Returns true if this handler was destroyed or not initialized.
mxVertexHandler.prototype.destroy = function()
Destroys the handler and all its resources and DOM nodes.
mxGraph.prototype.createHandler = function(state)
Creates a new handler for the given cell state.
Cells are the elements of the graph model.
Close