mxSwimlane

Extends mxShape to implement a swimlane shape.  This shape is registered under mxConstants.SHAPE_SWIMLANE in mxCellRenderer.  Use the <mxConstants.STYLE_STYLE_STARTSIZE> to define the size of the title region, mxConstants.STYLE_SWIMLANE_FILLCOLOR for the content area fill, mxConstants.STYLE_SEPARATORCOLOR to draw an additional vertical separator and mxConstants.STYLE_SWIMLANE_LINE to hide the line between the title region and the content area.  The mxConstants.STYLE_HORIZONTAL affects the orientation of this shape, not only its label.

Summary
mxSwimlaneExtends mxShape to implement a swimlane shape.
Functions
mxSwimlaneConstructs a new swimlane shape.
Variables
imageSizeDefault imagewidth and imageheight if an image but no imagewidth and imageheight are defined in the style.
Functions
getGradientBoundsReturns the bounding box for the gradient box for this shape.
getGradientBoundsReturns the bounding box for the gradient box for this shape.
getGradientBoundsReturns the bounding box for the gradient box for this shape.
getArcSizeReturns the arcsize for the swimlane.
paintVertexShapePaints the swimlane vertex shape.
paintVertexShapePaints the swimlane vertex shape.
paintSwimlanePaints the swimlane vertex shape.
paintRoundedSwimlanePaints the swimlane vertex shape.
paintSwimlanePaints the swimlane vertex shape.
getImageBoundsPaints the swimlane vertex shape.

Functions

mxSwimlane

function mxSwimlane(bounds,
fill,
stroke,
strokewidth)

Constructs a new swimlane shape.

Parameters

boundsmxRectangle that defines the bounds.  This is stored in mxShape.bounds.
fillString that defines the fill color.  This is stored in <fill>.
strokeString that defines the stroke color.  This is stored in <stroke>.
strokewidthOptional integer that defines the stroke width.  Default is 1.  This is stored in <strokewidth>.

Variables

imageSize

mxSwimlane.prototype.imageSize

Default imagewidth and imageheight if an image but no imagewidth and imageheight are defined in the style.  Value is 16.

Functions

getGradientBounds

Returns the bounding box for the gradient box for this shape.

getGradientBounds

Returns the bounding box for the gradient box for this shape.

getGradientBounds

mxSwimlane.prototype.getGradientBounds = function(c,
x,
y,
w,
h)

Returns the bounding box for the gradient box for this shape.

getArcSize

mxSwimlane.prototype.getArcSize = function(w,
h,
start)

Returns the arcsize for the swimlane.

paintVertexShape

Paints the swimlane vertex shape.

paintVertexShape

mxSwimlane.prototype.paintVertexShape = function(c,
x,
y,
w,
h)

Paints the swimlane vertex shape.

paintSwimlane

mxSwimlane.prototype.paintSwimlane = function(c,
x,
y,
w,
h,
start,
fill,
swimlaneLine)

Paints the swimlane vertex shape.

paintRoundedSwimlane

mxSwimlane.prototype.paintRoundedSwimlane = function(c,
x,
y,
w,
h,
start,
r,
fill,
swimlaneLine)

Paints the swimlane vertex shape.

paintSwimlane

Paints the swimlane vertex shape.

getImageBounds

mxSwimlane.prototype.getImageBounds = function(x,
y,
w,
h)

Paints the swimlane vertex shape.

Base class for all shapes.
function mxSwimlane(bounds,
fill,
stroke,
strokewidth)
Constructs a new swimlane shape.
mxSwimlane.prototype.imageSize
Default imagewidth and imageheight if an image but no imagewidth and imageheight are defined in the style.
mxSwimlane.prototype.getGradientBounds = function(c,
x,
y,
w,
h)
Returns the bounding box for the gradient box for this shape.
mxSwimlane.prototype.getArcSize = function(w,
h,
start)
Returns the arcsize for the swimlane.
mxSwimlane.prototype.paintVertexShape = function(c,
x,
y,
w,
h)
Paints the swimlane vertex shape.
mxSwimlane.prototype.paintSwimlane = function(c,
x,
y,
w,
h,
start,
fill,
swimlaneLine)
Paints the swimlane vertex shape.
mxSwimlane.prototype.paintRoundedSwimlane = function(c,
x,
y,
w,
h,
start,
r,
fill,
swimlaneLine)
Paints the swimlane vertex shape.
mxSwimlane.prototype.getImageBounds = function(x,
y,
w,
h)
Paints the swimlane vertex shape.
Name under which mxSwimlane is registered in mxCellRenderer.
Renders cells into a document object model.
Defines the key for the fill color of the swimlane background.
Defines the key for the separatorColor style.
Defines the key for the swimlaneLine style.
Defines the key for the horizontal style.
Extends mxPoint to implement a 2-dimensional rectangle with double precision coordinates.
mxShape.prototype.bounds
Holds the mxRectangle that specifies the bounds of this shape.
Close