Extends mxShape to implement an image shape with a label. This shape is registered under mxConstants.SHAPE_LABEL in mxCellRenderer.
mxLabel | Extends mxShape to implement an image shape with a label. |
Functions | |
mxLabel | Constructs a new label shape. |
Variables | |
vmlNodes | Adds local references to mxShape.vmlNodes. |
imageSize | Default width and height for the image. |
spacing | Default value for spacing. |
indicatorSize | Default width and height for the indicicator. |
indicatorSpacing | Default spacing between image and indicator. |
opaqueVmlImages | Specifies if all VML images should be rendered without transparency, that is, if the current opacity should be ignored for images. |
Functions | |
init | Initializes the shape and adds it to the container. |
reconfigure | Reconfigures this shape. |
createHtml | Creates and returns the HTML node to represent this shape. |
createVml | Creates and returns the VML node to represent this shape. |
createVmlImage | Creates an image node for the given image src and opacity to be used in VML. |
createSvg | Creates and returns the SVG node to represent this shape. |
redraw | Overrides redraw to define a unified implementation for redrawing all supported dialects. |
function mxLabel( bounds, fill, stroke, strokewidth )
Constructs a new label shape.
bounds | mxRectangle that defines the bounds. This is stored in mxShape.bounds. |
fill | String that defines the fill color. This is stored in <fill>. |
stroke | String that defines the stroke color. This is stored in <stroke>. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
mxLabel.prototype.vmlNodes
Adds local references to mxShape.vmlNodes.
mxLabel.prototype.imageSize
Default width and height for the image. Default is mxConstants.DEFAULT_IMAGESIZE.
Constructs a new label shape.
function mxLabel( bounds, fill, stroke, strokewidth )
Adds local references to mxShape.vmlNodes.
mxLabel.prototype.vmlNodes
Array if VML node names to fix in IE8 standards mode.
mxShape.prototype.vmlNodes
Default width and height for the image.
mxLabel.prototype.imageSize
Default value for spacing.
mxLabel.prototype.spacing
Default width and height for the indicicator.
mxLabel.prototype.indicatorSize
Default spacing between image and indicator.
mxLabel.prototype.indicatorSpacing
Specifies if all VML images should be rendered without transparency, that is, if the current opacity should be ignored for images.
mxLabel.prototype.opaqueVmlImages
Initializes the shape and adds it to the container.
mxLabel.prototype.init = function( container )
Reconfigures this shape.
mxLabel.prototype.reconfigure = function()
Creates and returns the HTML node to represent this shape.
mxLabel.prototype.createHtml = function()
Creates and returns the VML node to represent this shape.
mxLabel.prototype.createVml = function()
Creates an image node for the given image src and opacity to be used in VML.
mxLabel.prototype.createVmlImage = function( src, opacity )
Creates and returns the SVG node to represent this shape.
mxLabel.prototype.createSvg = function()
Overrides redraw to define a unified implementation for redrawing all supported dialects.
mxLabel.prototype.redraw = function()
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds