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
isRoundableAdds roundable support.
getTitleSizeReturns the title size.
getLabelBoundsReturns the bounding box for the label.
getGradientBoundsReturns the bounding box for the gradient box for this shape.
getSwimlaneArcSizeReturns the arcsize for the swimlane.
isHorizontalPaints the swimlane vertex shape.
paintVertexShapePaints the swimlane vertex shape.
paintSwimlanePaints the swimlane vertex shape.
paintRoundedSwimlanePaints the swimlane vertex shape.
paintDividerPaints the divider between swimlane title and content area.
paintSeparatorPaints the vertical or horizontal separator line between swimlanes.
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

isRoundable

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

Adds roundable support.

getTitleSize

mxSwimlane.prototype.getTitleSize = function()

Returns the title size.

getLabelBounds

mxSwimlane.prototype.getLabelBounds = function(rect)

Returns the bounding box for the label.

getGradientBounds

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

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

getSwimlaneArcSize

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

Returns the arcsize for the swimlane.

isHorizontal

mxSwimlane.prototype.isHorizontal = function()

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.

paintDivider

mxSwimlane.prototype.paintDivider = function(c,
x,
y,
w,
h,
start,
shadow)

Paints the divider between swimlane title and content area.

paintSeparator

mxSwimlane.prototype.paintSeparator = function(c,
x,
y,
w,
h,
start,
color)

Paints the vertical or horizontal separator line between swimlanes.

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.isRoundable = function(c,
x,
y,
w,
h)
Adds roundable support.
mxSwimlane.prototype.getTitleSize = function()
Returns the title size.
mxSwimlane.prototype.getLabelBounds = function(rect)
Returns the bounding box for the label.
mxSwimlane.prototype.getGradientBounds = function(c,
x,
y,
w,
h)
Returns the bounding box for the gradient box for this shape.
mxSwimlane.prototype.getSwimlaneArcSize = function(w,
h,
start)
Returns the arcsize for the swimlane.
mxSwimlane.prototype.isHorizontal = function()
Paints the swimlane vertex shape.
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.paintDivider = function(c,
x,
y,
w,
h,
start,
shadow)
Paints the divider between swimlane title and content area.
mxSwimlane.prototype.paintSeparator = function(c,
x,
y,
w,
h,
start,
color)
Paints the vertical or horizontal separator line between swimlanes.
mxSwimlane.prototype.getImageBounds = function(x,
y,
w,
h)
Paints the swimlane vertex shape.
SHAPE_SWIMLANE: 'swimlane'
Name under which mxSwimlane is registered in mxCellRenderer.
Renders cells into a document object model.
STYLE_SWIMLANE_FILLCOLOR: 'swimlaneFillColor'
Defines the key for the fill color of the swimlane background.
STYLE_SEPARATORCOLOR: 'separatorColor'
Defines the key for the separatorColor style.
STYLE_SWIMLANE_LINE: 'swimlaneLine'
Defines the key for the swimlaneLine style.
STYLE_HORIZONTAL: 'horizontal'
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