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 | |
imageSize | Default width and height for the image. |
spacing | Default value for image spacing. |
indicatorSize | Default width and height for the indicicator. |
indicatorSpacing | Default spacing between image and indicator. |
Functions | |
init | Initializes the shape and the <indicator>. |
redraw | Reconfigures this shape. |
isHtmlAllowed | Returns true for non-rounded, non-rotated shapes with no glass gradient and no indicator shape. |
paintForeground | Generic background painting implementation. |
paintImage | Generic background painting implementation. |
getImageBounds | Generic background painting implementation. |
paintIndicator | Generic background painting implementation. |
getIndicatorBounds | Generic background painting implementation. |
redrawHtmlShape | Generic background painting implementation. |
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.imageSize
Default width and height for the image. Default is mxConstants.DEFAULT_IMAGESIZE.
Constructs a new label shape.
function mxLabel( bounds, fill, stroke, strokewidth )
Default width and height for the image.
mxLabel.prototype.imageSize
Default value for image spacing.
mxLabel.prototype.spacing
Default width and height for the indicicator.
mxLabel.prototype.indicatorSize
Default spacing between image and indicator.
mxLabel.prototype.indicatorSpacing
Initializes the shape and the indicator.
mxLabel.prototype.init = function( container )
Reconfigures this shape.
mxLabel.prototype.redraw = function()
Returns true for non-rounded, non-rotated shapes with no glass gradient and no indicator shape.
mxLabel.prototype.isHtmlAllowed = function()
Generic background painting implementation.
mxLabel.prototype.paintForeground = function( c, x, y, w, h )
Generic background painting implementation.
mxLabel.prototype.paintImage = function( c, x, y, w, h )
Generic background painting implementation.
mxLabel.prototype.getImageBounds = function( x, y, w, h )
Generic background painting implementation.
mxLabel.prototype.paintIndicator = function( c, x, y, w, h )
Generic background painting implementation.
mxLabel.prototype.getIndicatorBounds = function( x, y, w, h )
Generic background painting implementation.
mxLabel.prototype.redrawHtmlShape = function()
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds