Event handler for resizing cells. This handler is automatically created in mxGraph.createHandler.
mxVertexHandler | Event handler for resizing cells. |
Functions | |
mxVertexHandler | Constructs an event handler that allows to resize vertices and groups. |
Variables | |
cursor | Specifies the cursor to be used for this handle. |
image | Specifies the mxImage to be used to render the handle. |
image | Specifies the mxImage to be used to render the handle. |
Functions | |
getPosition | Hook for subclassers to return the current position of the handle. |
setPosition | Hooks for subclassers to update the style in the state. |
execute | Hook for subclassers to execute the handle. |
copyStyle | Sets the cell style with the given name to the corresponding value in state. |
processEvent | Processes the given mxMouseEvent and invokes setPosition. |
positionChanged | Called after setPosition has been called in processEvent. |
getRotation | Returns the rotation defined in the style of the cell. |
getTotalRotation | Returns the rotation from the style and the rotation from the direction of the cell. |
init | Creates and initializes the shapes required for this handle. |
createShape | Creates and returns the shape for this handle. |
initShape | Initializes <shape> and sets its cursor. |
redraw | Renders the shape for this handle. |
isHtmlRequired | Returns true if this handle should be rendered in HTML. |
rotatePoint | Rotates the point by the given angle. |
flipPoint | Flips the given point vertically and/or horizontally. |
snapPoint | Snaps the given point to the grid if ignore is false. |
setVisible | Shows or hides this handle. |
reset | Resets the state of this handle by setting its visibility to true. |
destroy | Destroys this handle. |
Constructs an event handler that allows to resize vertices and groups.
state | mxCellState of the cell to be resized. |
mxHandle.prototype.image
Specifies the mxImage to be used to render the handle. Default is null.
Specifies the mxImage to be used to render the handle. Default is null.
mxHandle.prototype.setPosition = function( bounds, pt, me )
Hooks for subclassers to update the style in the state.
mxHandle.prototype.copyStyle = function( key )
Sets the cell style with the given name to the corresponding value in state.
mxHandle.prototype.processEvent = function( me )
Processes the given mxMouseEvent and invokes setPosition.
mxHandle.prototype.positionChanged = function()
Called after setPosition has been called in processEvent. This repaints the state using mxCellRenderer.
Specifies the cursor to be used for this handle.
mxHandle.prototype.cursor
Specifies the mxImage to be used to render the handle.
mxHandle.prototype.image
Hook for subclassers to return the current position of the handle.
mxHandle.prototype.getPosition = function( bounds )
Hooks for subclassers to update the style in the state.
mxHandle.prototype.setPosition = function( bounds, pt, me )
Reference to the mxCellState being modified.
mxVertexHandler.prototype.state
Hook for subclassers to execute the handle.
mxHandle.prototype.execute = function()
Sets the cell style with the given name to the corresponding value in state.
mxHandle.prototype.copyStyle = function( key )
Processes the given mxMouseEvent and invokes setPosition.
mxHandle.prototype.processEvent = function( me )
Called after setPosition has been called in processEvent.
mxHandle.prototype.positionChanged = function()
Returns the rotation defined in the style of the cell.
mxHandle.prototype.getRotation = function()
Returns the rotation from the style and the rotation from the direction of the cell.
mxHandle.prototype.getTotalRotation = function()
Creates and initializes the shapes required for this handle.
mxHandle.prototype.init = function()
Creates and returns the shape for this handle.
mxHandle.prototype.createShape = function( html )
Initializes shape and sets its cursor.
mxHandle.prototype.initShape = function( html )
Renders the shape for this handle.
mxHandle.prototype.redraw = function()
Returns true if this handle should be rendered in HTML.
mxHandle.prototype.isHtmlRequired = function()
Rotates the point by the given angle.
mxHandle.prototype.rotatePoint = function( pt, alpha )
Flips the given point vertically and/or horizontally.
mxHandle.prototype.flipPoint = function( pt )
Snaps the given point to the grid if ignore is false.
mxHandle.prototype.snapPoint = function( pt, ignore )
Shows or hides this handle.
mxHandle.prototype.setVisible = function( visible )
Resets the state of this handle by setting its visibility to true.
mxHandle.prototype.reset = function()
Destroys this handle.
mxHandle.prototype.destroy = function()
Creates a new handler for the given cell state.
mxGraph.prototype.createHandler = function( state )