mxConstants

Defines global constants.

Summary
mxConstantsDefines global constants.
Variables
RAD_PER_DEGDefines the number of radiants per degree.
DEG_PER_RADDefines the number of degrees per radiant.
ACTIVE_REGIONDefines the portion of the cell which is to be used as a connectable region.
MIN_ACTIVE_REGIONDefines the minimum size in pixels of the portion of the cell cell which is to be used as a connectable region.
NS_SVGDefines the SVG namespace.
NS_XHTMLDefines the XHTML namespace.
NS_XLINKDefined the XLink namespace.
W3C_SHADOWCOLORDefines the color to be used to draw shadows in DOM documents.
SHADOW_OFFSETXDefines the x-offset to be used for shadows.
SHADOW_OFFSETYDefines the y-offset to be used for shadows.
W3C_DEFAULT_FONTFAMILYDefines the default family for HTML markup.
TTF_ENABLEDWhether TrueType fonts should be enabled in the mxGdCanvas by default.
TTF_SIZEFACTORDefines the factor which wich the font sizes are to be multiplied when used in truetype fonts.
DEFAULT_FONTFAMILYDefines the default family for all truetype fonts.
DEFAULT_FONTSIZEDefines the default size for all fonts in points.
DEFAULT_STARTSIZEDefines the default start size for swimlanes.
DEFAULT_LINESPACINGDefines the default linespacing.
LABEL_INSETDefines the inset in absolute pixels between the label bounding box and the label text.
DEFAULT_MARKERSIZEDefines the default size for all markers.
DEFAULT_IMAGESIZEDefines the default width and height for images used in the label shape.
ENTITY_SEGMENTDefines the length of the horizontal segment of an Entity Relation.
ARROW_SPACINGDefines the spacing between the arrow shape and its terminals.
ARROW_WIDTHDefines the width of the arrow shape.
ARROW_SIZEDefines the size of the arrowhead in the arrow shape.
NONEDefines the value for none.
STYLE_PERIMETERDefines the key for the perimeter style.
STYLE_OPACITYDefines the key for the opacity style.
STYLE_TEXT_OPACITYDefines the key for the text opacity style.
STYLE_OVERFLOWDefines the key for the overflow style.
STYLE_ORTHOGONALDefines if the connection points on either end of the edge should be computed so that the edge is vertical or horizontal if possible and if the point is not at a fixed location.
STYLE_EXIT_XDefines the key for the horizontal relative coordinate connection point of an edge with its source terminal.
STYLE_EXIT_YDefines the key for the vertical relative coordinate connection point of an edge with its source terminal.
STYLE_EXIT_PERIMETERDefines if the perimeter should be used to find the exact entry point along the perimeter of the source.
STYLE_ENTRY_XDefines the key for the horizontal relative coordinate connection point of an edge with its target terminal.
STYLE_ENTRY_YDefines the key for the vertical relative coordinate connection point of an edge with its target terminal.
sSTYLE_ENTRY_PERIMETERDefines if the perimeter should be used to find the exact entry point along the perimeter of the target.
STYLE_WHITE_SPACEDefines the key for the white-space style.
STYLE_ROTATIONDefines the key for the rotation style.
STYLE_FILLCOLORDefines the key for the fill color.
STYLE_SWIMLANE_FILLCOLORDefines the key for the fill color of the swimlane background.
STYLE_GRADIENTCOLORDefines the key for the gradient color.
STYLE_GRADIENT_DIRECTIONDefines the key for the gradient direction.
STYLE_STROKECOLORDefines the key for the strokeColor style.
STYLE_SEPARATORCOLORDefines the key for the separatorColor style.
STYLE_STROKEWIDTHDefines the key for the strokeWidth style.
STYLE_ALIGNDefines the key for the align style.
STYLE_VERTICAL_ALIGNDefines the key for the verticalAlign style.
STYLE_LABEL_POSITIONDefines the key for the horizontal label position of vertices.
STYLE_VERTICAL_LABEL_POSITIONDefines the key for the vertical label position of vertices.
STYLE_IMAGE_ALIGNDefines the key for the align style.
STYLE_IMAGE_VERTICALALIGNDefines the key for the verticalAlign style.
STYLE_IMAGEDefines the key for the image style.
STYLE_IMAGE_WIDTHDefines the key for the imageWidth style.
STYLE_IMAGE_HEIGHTDefines the key for the imageHeight style.
STYLE_IMAGE_BACKGROUNDDefines the key for the image background color.
STYLE_IMAGE_BORDERDefines the key for the image border color.
STYLE_IMAGE_FLIPHDefines the key for the horizontal image flip.
STYLE_IMAGE_FLIPVDefines the key for the vertical image flip.
STYLE_NOLABELDefines the key for the noLabel style.
STYLE_NOEDGESTYLEDefines the key for the noEdgeStyle style.
STYLE_LABEL_BACKGROUNDCOLORDefines the key for the label background color.
STYLE_LABEL_BORDERCOLORDefines the key for the label border color.
STYLE_INDICATOR_SHAPEDefines the key for the indicatorShape style.
STYLE_INDICATOR_IMAGEDefines the key for the indicatorImage style.
STYLE_INDICATOR_COLORDefines the key for the indicatorColor style.
STYLE_INDICATOR_GRADIENTCOLORDefines the key for the indicatorGradientColor style.
STYLE_INDICATOR_SPACINGDefines the key for the indicatorSpacing style (in px).
STYLE_INDICATOR_WIDTHDefines the key for the indicatorWidth style (in px).
STYLE_INDICATOR_HEIGHTDefines the key for the indicatorHeight style (in px).
STYLE_SHADOWDefines the key for the shadow style.
STYLE_SEGMENTDefines the key for the segment style.
STYLE_ENDARROWDefines the key for the endArrow style.
STYLE_STARTARROWDefines the key for the startArrow style.
STYLE_ENDSIZEDefines the key for the endSize style.
STYLE_STARTSIZEDefines the key for the startSize style.
STYLE_SWIMLANE_LINEDefines the key for the swimlaneLine style.
STYLE_DASHEDDefines the key for the endSize style.
STYLE_ROUNDEDDefines the key for the rounded style.
STYLE_SOURCE_PERIMETER_SPACINGDefines the key for the source perimeter spacing.
STYLE_TARGET_PERIMETER_SPACINGDefines the key for the source perimeter spacing.
STYLE_PERIMETER_SPACINGDefines the key for the perimeter spacing.
STYLE_SPACINGDefines the key for the spacing.
STYLE_SPACING_TOPDefines the key for the spacingTop style.
STYLE_SPACING_LEFTDefines the key for the spacingLeft style.
STYLE_SPACING_BOTTOMDefines the key for the spacingBottom style The value represents the spacing, in pixels, added to the bottom side of a label in a vertex (style applies to vertices only).
STYLE_SPACING_RIGHTDefines the key for the spacingRight style The value represents the spacing, in pixels, added to the right side of a label in a vertex (style applies to vertices only).
STYLE_HORIZONTALDefines the key for the horizontal style.
STYLE_DIRECTIONDefines the key for the direction style.
STYLE_ELBOWDefines the key for the elbow style.
STYLE_FONTCOLORDefines the key for the fontColor style.
STYLE_FONTFAMILYDefines the key for the fontFamily style.
STYLE_FONTSIZEDefines the key for the fontSize style (in points).
STYLE_FONTSTYLEDefines the key for the fontStyle style.
STYLE_SHAPEDefines the key for the shape.
STYLE_EDGEDefines the key for the edge style.
STYLE_LOOPDefines the key for the loop style.
STYLE_ROUTING_CENTER_XDefines the key for the horizontal routing center.
STYLE_ROUTING_CENTER_YDefines the key for the vertical routing center.
FONT_BOLD
FONT_ITALIC
FONT_UNDERLINE
SHAPE_RECTANGLE
SHAPE_ELLIPSE
SHAPE_DOUBLE_ELLIPSE
SHAPE_RHOMBUS
SHAPE_LINE
SHAPE_IMAGE
SHAPE_ARROW
SHAPE_LABEL
SHAPE_CYLINDER
SHAPE_SWIMLANE
SHAPE_CONNECTOR
SHAPE_ACTOR
SHAPE_CLOUD
SHAPE_TRIANGLE
SHAPE_HEXAGON
ARROW_CLASSIC
ARROW_BLOCK
ARROW_OPEN
ARROW_OVAL
ARROW_DIAMOND
ALIGN_LEFT
ALIGN_CENTER
ALIGN_RIGHT
ALIGN_TOP
ALIGN_MIDDLE
ALIGN_BOTTOM
DIRECTION_NORTH
DIRECTION_SOUTH
DIRECTION_EAST
DIRECTION_WEST
ELBOW_VERTICAL
ELBOW_HORIZONTAL
EDGESTYLE_ENTITY_RELATIONName of the entity relation edge style.
EDGESTYLE_LOOPName of the loop edge style.
EDGESTYLE_SIDETOSIDEName of the side to side edge style.
EDGESTYLE_TOPTOBOTTOMName of the top to bottom edge style.
PERIMETER_ELLIPSEName of the ellipse perimeter.
PERIMETER_RECTANGLEName of the rectangle perimeter.
PERIMETER_RHOMBUSName of the rhombus perimeter.
PERIMETER_TRIANGLEName of the triangle perimeter.

Variables

RAD_PER_DEG

public static $RAD_PER_DEG

Defines the number of radiants per degree.

DEG_PER_RAD

public static $DEG_PER_RAD

Defines the number of degrees per radiant.

ACTIVE_REGION

public static $ACTIVE_REGION

Defines the portion of the cell which is to be used as a connectable region.

MIN_ACTIVE_REGION

public static $MIN_ACTIVE_REGION

Defines the minimum size in pixels of the portion of the cell cell which is to be used as a connectable region.

NS_SVG

public static $NS_SVG

Defines the SVG namespace.

NS_XHTML

public static $NS_XHTML

Defines the XHTML namespace.

NS_XLINK

public static $NS_XLINK

Defined the XLink namespace.

W3C_SHADOWCOLOR

public static $W3C_SHADOWCOLOR

Defines the color to be used to draw shadows in DOM documents.

SHADOW_OFFSETX

public static $SHADOW_OFFSETX

Defines the x-offset to be used for shadows.  Default is 2.

SHADOW_OFFSETY

public static $SHADOW_OFFSETY

Defines the y-offset to be used for shadows.  Default is 3.

W3C_DEFAULT_FONTFAMILY

public static $W3C_DEFAULT_FONTFAMILY

Defines the default family for HTML markup.  Default is times, serif.

TTF_ENABLED

public static $TTF_ENABLED

Whether TrueType fonts should be enabled in the mxGdCanvas by default.  Default is true.

TTF_SIZEFACTOR

public static $TTF_SIZEFACTOR

Defines the factor which wich the font sizes are to be multiplied when used in truetype fonts.  Default is 0.66.

DEFAULT_FONTFAMILY

public static $DEFAULT_FONTFAMILY

Defines the default family for all truetype fonts.  Default is vera.

DEFAULT_FONTSIZE

public static $DEFAULT_FONTSIZE

Defines the default size for all fonts in points.  Default is 11.

DEFAULT_STARTSIZE

public static $DEFAULT_STARTSIZE

Defines the default start size for swimlanes.  Default is 40.

DEFAULT_LINESPACING

public static $DEFAULT_LINESPACING

Defines the default linespacing.  Default is 7.

LABEL_INSET

public static $LABEL_INSET

Defines the inset in absolute pixels between the label bounding box and the label text.  Default is 3.

DEFAULT_MARKERSIZE

public static $DEFAULT_MARKERSIZE

Defines the default size for all markers.  Default is 6.

DEFAULT_IMAGESIZE

public static $DEFAULT_IMAGESIZE

Defines the default width and height for images used in the label shape.  Default is 24.

ENTITY_SEGMENT

public static $ENTITY_SEGMENT

Defines the length of the horizontal segment of an Entity Relation.  This can be overridden using mxConstants.STYLE_SEGMENT style.  Default is 30.

ARROW_SPACING

public static $ARROW_SPACING

Defines the spacing between the arrow shape and its terminals.  Default is 10.

ARROW_WIDTH

public static $ARROW_WIDTH

Defines the width of the arrow shape.  Default is 30.

ARROW_SIZE

public static $ARROW_SIZE

Defines the size of the arrowhead in the arrow shape.  Default is 30.

NONE

public static $NONE

Defines the value for none.  Default is “none”.

STYLE_PERIMETER

public static $STYLE_PERIMETER

Defines the key for the perimeter style.  This is a function that defines the perimeter around a particular shape.  Possible values are the functions defined in mxPerimeter.  Alternatively, the constants in this class that start with <code>PERIMETER_</code> may be used to access perimeter styles in mxStyleRegistry.

STYLE_OPACITY

public static $STYLE_OPACITY

Defines the key for the opacity style.  The type of the value is numeric and the possible range is 0-100.

STYLE_TEXT_OPACITY

public static $STYLE_TEXT_OPACITY

Defines the key for the text opacity style.  The type of the value is numeric and the possible range is 0-100.

STYLE_OVERFLOW

public static $STYLE_OVERFLOW

Defines the key for the overflow style.  Possible values are “visible”, “hidden” and “fill”.  The default value is “visible”.  This value specifies how overlapping vertex labels are handles.  A value of “visible” will show the complete label.  A value of “hidden” will clip the label so that it does not overlap the vertex bounds.  A value of “fill” will use the vertex bounds for the label.

This style is ignored in PHP.

STYLE_ORTHOGONAL

public static $STYLE_ORTHOGONAL

Defines if the connection points on either end of the edge should be computed so that the edge is vertical or horizontal if possible and if the point is not at a fixed location.  Default is false.  This is used in mxGraph.isOrthogonal, which also returns true if the edgeStyle of the edge is an elbow or entity.

STYLE_EXIT_X

public static $STYLE_EXIT_X

Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal.

STYLE_EXIT_Y

public static $STYLE_EXIT_Y

Defines the key for the vertical relative coordinate connection point of an edge with its source terminal.

STYLE_EXIT_PERIMETER

public static $STYLE_EXIT_PERIMETER

Defines if the perimeter should be used to find the exact entry point along the perimeter of the source.  Possible values are 0 (false) and 1 (true).  Default is 1 (true).

STYLE_ENTRY_X

public static $STYLE_ENTRY_X

Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal.

STYLE_ENTRY_Y

public static $STYLE_ENTRY_Y

Defines the key for the vertical relative coordinate connection point of an edge with its target terminal.

sSTYLE_ENTRY_PERIMETER

Defines if the perimeter should be used to find the exact entry point along the perimeter of the target.  Possible values are 0 (false) and 1 (true).  Default is 1 (true).

STYLE_WHITE_SPACE

public static $STYLE_WHITE_SPACE

Defines the key for the white-space style.  Possible values are “nowrap” and “wrap”.  The default value is “nowrap”.  This value specifies how white-space inside a HTML vertex label should be handled.  A value of “nowrap” means the text will never wrap to the next line until a linefeed is encountered.  A value of “wrap” means text will wrap when necessary.  This style is only used for HTML labels.

This style is ignored in PHP.

STYLE_ROTATION

public static $STYLE_ROTATION

Defines the key for the rotation style.  The type of the value is numeric and the possible range is 0-360.

STYLE_FILLCOLOR

public static $STYLE_FILLCOLOR

Defines the key for the fill color.  Possible values are all HTML color names or HEX codes, as well as special keywords such as ‘swimlane, ‘inherit’ or ‘indicated’ to use the color code of a related cell or the indicator shape.

STYLE_SWIMLANE_FILLCOLOR

public static $STYLE_SWIMLANE_FILLCOLOR

Defines the key for the fill color of the swimlane background.  Possible values are all HTML color names or HEX codes.  Default is no background.  Value is “swimlaneFillColor”.

STYLE_GRADIENTCOLOR

public static $STYLE_GRADIENTCOLOR

Defines the key for the gradient color.  Possible values are all HTML color names or HEX codes, as well as special keywords such as ‘swimlane, ‘inherit’ or ‘indicated’ to use the color code of a related cell or the indicator shape.  This is ignored if no fill color is defined.

STYLE_GRADIENT_DIRECTION

public static $STYLE_GRADIENT_DIRECTION

Defines the key for the gradient direction.  Possible values are DIRECTION_EAST, DIRECTION_WEST, DIRECTION_NORTH and DIRECTION_SOUTH.  Default is DIRECTION_SOUTH.  Generally, and by default in mxGraph, gradient painting is done from the value of STYLE_FILLCOLOR to the value of STYLE_GRADIENTCOLOR.  Taking the example of DIRECTION_NORTH, this means STYLE_FILLCOLOR color at the bottom of paint pattern and STYLE_GRADIENTCOLOR at top, with a gradient in-between.

STYLE_STROKECOLOR

public static $STYLE_STROKECOLOR

Defines the key for the strokeColor style.  Possible values are all HTML color names or HEX codes, as well as special keywords such as ‘swimlane, ‘inherit’ or ‘indicated’ to use the color code of a related cell or the indicator shape.

STYLE_SEPARATORCOLOR

public static $STYLE_SEPARATORCOLOR

Defines the key for the separatorColor style.  Possible values are all HTML color names or HEX codes.  This style is only used for SHAPE_SWIMLANE shapes.

STYLE_STROKEWIDTH

public static $STYLE_STROKEWIDTH

Defines the key for the strokeWidth style.  The type of the value is numeric and the possible range is any non-negative value.  The value the stroke width in pixels.

STYLE_ALIGN

public static $STYLE_ALIGN

Defines the key for the align style.  Possible values are ALIGN_LEFT, ALIGN_CENTER and ALIGN_RIGHT.  This value defines how the lines of the label are horizontally aligned.  ALIGN_LEFT mean label text lines are aligned to left of the label bounds, ALIGN_RIGHT to the right of the label bounds and ALIGN_CENTER means the center of the text lines are aligned in the center of the label bounds.  Note this value doesn’t affect the positioning of the overall label bounds relative to the vertex, to move the label bounds horizontally, use STYLE_LABEL_POSITION.

STYLE_VERTICAL_ALIGN

public static $STYLE_VERTICAL_ALIGN

Defines the key for the verticalAlign style.  Possible values are ALIGN_TOP, ALIGN_MIDDLE and ALIGN_BOTTOM.  This value defines how the lines of the label are vertically aligned.  ALIGN_TOP means the topmost label text line is aligned against the top of the label bounds, ALIGN_BOTTOM means the bottom-most label text line is aligned against the bottom of the label bounds and ALIGN_MIDDLE means there is equal spacing between the topmost text label line and the top of the label bounds and the bottom-most text label line and the bottom of the label bounds.  Note this value doesn’t affect the positioning of the overall label bounds relative to the vertex, to move the label bounds vertically, use STYLE_VERTICAL_LABEL_POSITION.

STYLE_LABEL_POSITION

public static $STYLE_LABEL_POSITION

Defines the key for the horizontal label position of vertices.  Possible values are ALIGN_LEFT, ALIGN_CENTER and ALIGN_RIGHT.  Default is ALIGN_CENTER.  The label align defines the position of the label relative to the cell.  ALIGN_LEFT means the entire label bounds is placed completely just to the left of the vertex, ALIGN_RIGHT means adjust to the right and ALIGN_CENTER means the label bounds are vertically aligned with the bounds of the vertex.  Note this value doesn’t affect the positioning of label within the label bounds, to move the label horizontally within the label bounds, use STYLE_ALIGN.

STYLE_VERTICAL_LABEL_POSITION

public static $STYLE_VERTICAL_LABEL_POSITION

Defines the key for the vertical label position of vertices.  Possible values are ALIGN_TOP, ALIGN_BOTTOM and ALIGN_MIDDLE.  Default is ALIGN_MIDDLE.  The label align defines the position of the label relative to the cell.  ALIGN_TOP means the entire label bounds is placed completely just on the top of the vertex, ALIGN_BOTTOM means adjust on the bottom and ALIGN_MIDDLE means the label bounds are horizontally aligned with the bounds of the vertex.  Note this value doesn’t affect the positioning of label within the label bounds, to move the label vertically within the label bounds, use STYLE_VERTICAL_ALIGN.

STYLE_IMAGE_ALIGN

public static $STYLE_IMAGE_ALIGN

Defines the key for the align style.  Possible values are ALIGN_LEFT, ALIGN_CENTER and ALIGN_RIGHT.  The value defines how any image in the vertex label is aligned horizontally within the label bounds of a SHAPE_LABEL shape.

STYLE_IMAGE_VERTICALALIGN

Defines the key for the verticalAlign style.  Possible values are ALIGN_TOP, ALIGN_MIDDLE and ALIGN_BOTTOM.  The value defines how any image in the vertex label is aligned vertically within the label bounds of a SHAPE_LABEL shape.

STYLE_IMAGE

public static $STYLE_IMAGE

Defines the key for the image style.  Possible values are any image URL, registered key in <mxImageResources> or short data URI as defined in mxImageBundle.  The type of the value is String.  This is the path to the image to image that is to be displayed within the label of a vertex.  Finally, mxUtils.loadImage is used for loading the image for a given value.

STYLE_IMAGE_WIDTH

public static $STYLE_IMAGE_WIDTH

Defines the key for the imageWidth style.  The type of this value is int, the value is the image width in pixels and must be greater than 0.

STYLE_IMAGE_HEIGHT

public static $STYLE_IMAGE_HEIGHT

Defines the key for the imageHeight style.  The type of this value is int, the value is the image height in pixels and must be greater than 0.

STYLE_IMAGE_BACKGROUND

public static $STYLE_IMAGE_BACKGROUND

Defines the key for the image background color.  This style is only used in <mxImageShape>.  Possible values are all HTML color names or HEX codes.

STYLE_IMAGE_BORDER

public static $STYLE_IMAGE_BORDER

Defines the key for the image border color.  This style is only used in <mxImageShape>.  Possible values are all HTML color names or HEX codes.

STYLE_IMAGE_FLIPH

public static $STYLE_IMAGE_FLIPH

Defines the key for the horizontal image flip.  This style is only used for painting images.  Possible values are 0 and 1.  Default is 0.

STYLE_IMAGE_FLIPV

public static $STYLE_IMAGE_FLIPV

Defines the key for the vertical image flip.  This style is only used for painting images.  Possible values are 0 and 1.  Default is 0.

STYLE_NOLABEL

public static $STYLE_NOLABEL

Defines the key for the noLabel style.  If this is true then no label is visible for a given cell.  Possible values are true or false (1 or 0).  Default is false.

STYLE_NOEDGESTYLE

public static $STYLE_NOEDGESTYLE

Defines the key for the noEdgeStyle style.  If this is true then no edge style is applied for a given edge.  Possible values are true or false (1 or 0).  Default is false.

STYLE_LABEL_BACKGROUNDCOLOR

public static $STYLE_LABEL_BACKGROUNDCOLOR

Defines the key for the label background color.  Possible values are all HTML color names or HEX codes.

STYLE_LABEL_BORDERCOLOR

public static $STYLE_LABEL_BORDERCOLOR

Defines the key for the label border color.  Possible values are all HTML color names or HEX codes.

STYLE_INDICATOR_SHAPE

public static $STYLE_INDICATOR_SHAPE

Defines the key for the indicatorShape style.  Possible values are any of the SHAPE_* constants.

STYLE_INDICATOR_IMAGE

public static $STYLE_INDICATOR_IMAGE

Defines the key for the indicatorImage style.  Possible values are any image URL.

STYLE_INDICATOR_COLOR

public static $STYLE_INDICATOR_COLOR

Defines the key for the indicatorColor style.  Possible values are all HTML color names or HEX codes, as well as the special ‘swimlane’ keyword to refer to the color of the parent swimlane if one exists.

STYLE_INDICATOR_GRADIENTCOLOR

public static $STYLE_INDICATOR_GRADIENTCOLOR

Defines the key for the indicatorGradientColor style.  Possible values are all HTML color names or HEX codes.  This style is only supported in SHAPE_LABEL shapes.

STYLE_INDICATOR_SPACING

public static $STYLE_INDICATOR_SPACING

Defines the key for the indicatorSpacing style (in px).

STYLE_INDICATOR_WIDTH

public static $STYLE_INDICATOR_WIDTH

Defines the key for the indicatorWidth style (in px).

STYLE_INDICATOR_HEIGHT

public static $STYLE_INDICATOR_HEIGHT

Defines the key for the indicatorHeight style (in px).

STYLE_SHADOW

public static $STYLE_SHADOW

Defines the key for the shadow style.  The type of the value is Boolean.

STYLE_SEGMENT

public static $STYLE_SEGMENT

Defines the key for the segment style.  The type of this value is float and the value represents the size of the horizontal segment of the entity relation style.  Default is ENTITY_SEGMENT.

STYLE_ENDARROW

public static $STYLE_ENDARROW

Defines the key for the endArrow style.  Possible values are all constants in this class that start with ARROW_.  This style is supported in the <mxConnector> shape.

Example

style[mxConstants.public static $STYLE_ENDARROW] = mxConstants.ARROW_CLASSIC;

STYLE_STARTARROW

public static $STYLE_STARTARROW

Defines the key for the startArrow style.  Possible values are all constants in this class that start with ARROW_.  See <public static $STYLE_ENDARROW>.  This style is supported in the <mxConnector> shape.

STYLE_ENDSIZE

public static $STYLE_ENDSIZE

Defines the key for the endSize style.  The type of this value is numeric and the value represents the size of the end marker in pixels.

STYLE_STARTSIZE

public static $STYLE_STARTSIZE

Defines the key for the startSize style.  The type of this value is numeric and the value represents the size of the start marker or the size of the swimlane title region depending on the shape it is used for.

STYLE_SWIMLANE_LINE

public static $STYLE_SWIMLANE_LINE

Defines the key for the swimlaneLine style.  This style specifies whether the line between the title regio of a swimlane should be visible.  Use 0 for hidden or 1 (default) for visible.  Value is “swimlaneLine”.

STYLE_DASHED

public static $STYLE_DASHED

Defines the key for the endSize style.  The type of this value is numeric and the value represents the size of the end marker in pixels.

STYLE_ROUNDED

public static $STYLE_ROUNDED

Defines the key for the rounded style.  The type of this value is Boolean.  For edges this determines whether or not joins between edges segments are smoothed to a rounded finish.  For vertices that have the rectangle shape, this determines whether or not the rectangle is rounded.

STYLE_SOURCE_PERIMETER_SPACING

public static $STYLE_SOURCE_PERIMETER_SPACING

Defines the key for the source perimeter spacing.  The type of this value is numeric.  This is the distance between the source connection point of an edge and the perimeter of the source vertex in pixels.  This style only applies to edges.

STYLE_TARGET_PERIMETER_SPACING

public static $STYLE_TARGET_PERIMETER_SPACING

Defines the key for the source perimeter spacing.  The type of this value is numeric.  This is the distance between the target connection point of an edge and the perimeter of the target vertex in pixels.

STYLE_PERIMETER_SPACING

public static $STYLE_PERIMETER_SPACING

Defines the key for the perimeter spacing.  This is the distance between the connection point and the perimeter in pixels.  When used in a vertex style, this applies to all incoming edges to floating ports (edges that terminate on the perimeter of the vertex).  When used in an edge style, this spacing applies to the source and target separately, if they terminate in floating ports (on the perimeter of the vertex).

STYLE_SPACING

public static $STYLE_SPACING

Defines the key for the spacing.  The value represents the spacing, in pixels, added to each side of a label in a vertex (style applies to vertices only).

STYLE_SPACING_TOP

public static $STYLE_SPACING_TOP

Defines the key for the spacingTop style.  The value represents the spacing, in pixels, added to the top side of a label in a vertex (style applies to vertices only).

STYLE_SPACING_LEFT

public static $STYLE_SPACING_LEFT

Defines the key for the spacingLeft style.  The value represents the spacing, in pixels, added to the left side of a label in a vertex (style applies to vertices only).

STYLE_SPACING_BOTTOM

public static $STYLE_SPACING_BOTTOM

Defines the key for the spacingBottom style The value represents the spacing, in pixels, added to the bottom side of a label in a vertex (style applies to vertices only).

STYLE_SPACING_RIGHT

public static $STYLE_SPACING_RIGHT

Defines the key for the spacingRight style The value represents the spacing, in pixels, added to the right side of a label in a vertex (style applies to vertices only).

STYLE_HORIZONTAL

public static $STYLE_HORIZONTAL

Defines the key for the horizontal style.  Possible values are true or false.  This value only applies to vertices.  If the STYLE_SHAPE is <code>SHAPE_SWIMLANE</code> a value of false indicates that the swimlane should be drawn vertically, true indicates to draw it horizontally.  If the shape style does not indicate that this vertex is a swimlane, this value affects only whether the label is drawn horizontally or vertically.

STYLE_DIRECTION

public static $STYLE_DIRECTION

Defines the key for the direction style.  The direction style is used to specify the direction of certain shapes (eg.  <mxTriangle>).  Possible values are DIRECTION_EAST (default), DIRECTION_WEST, DIRECTION_NORTH and DIRECTION_SOUTH.

STYLE_ELBOW

public static $STYLE_ELBOW

Defines the key for the elbow style.  Possible values are ELBOW_HORIZONTAL and ELBOW_VERTICAL.  Default is ELBOW_HORIZONTAL.  This defines how the three segment orthogonal edge style leaves its terminal vertices.  The vertical style leaves the terminal vertices at the top and bottom sides.

STYLE_FONTCOLOR

public static $STYLE_FONTCOLOR

Defines the key for the fontColor style.  Possible values are all HTML color names or HEX codes.

STYLE_FONTFAMILY

public static $STYLE_FONTFAMILY

Defines the key for the fontFamily style.  Possible values are names such as Arial; Dialog; Verdana; Times New Roman.  The value is of type String.

STYLE_FONTSIZE

public static $STYLE_FONTSIZE

Defines the key for the fontSize style (in points).  The type of the value is int.

STYLE_FONTSTYLE

public static $STYLE_FONTSTYLE

Defines the key for the fontStyle style.  Values may be any logical AND (sum) of FONT_BOLD, FONT_ITALIC and FONT_UNDERLINE.  The type of the value is int.

STYLE_SHAPE

public static $STYLE_SHAPE

Defines the key for the shape.  Possible values are all constants with a SHAPE-prefix or any newly defined shape names.

STYLE_EDGE

public static $STYLE_EDGE

Defines the key for the edge style.  Possible values are the functions defined in mxEdgeStyle.

STYLE_LOOP

public static $STYLE_LOOP

Defines the key for the loop style.  Possible values are the functions defined in mxEdgeStyle.

STYLE_ROUTING_CENTER_X

public static $STYLE_ROUTING_CENTER_X

Defines the key for the horizontal routing center.  Possible values are between -0.5 and 0.5.  This is the relative offset from the center used for connecting edges.  The type of this value is numeric.

STYLE_ROUTING_CENTER_Y

public static $STYLE_ROUTING_CENTER_Y

Defines the key for the vertical routing center.  Possible values are between -0.5 and 0.5.  This is the relative offset from the center used for connecting edges.  The type of this value is numeric.

FONT_BOLD

public static $FONT_BOLD

FONT_ITALIC

public static $FONT_ITALIC

FONT_UNDERLINE

public static $FONT_UNDERLINE

SHAPE_RECTANGLE

public static $SHAPE_RECTANGLE

SHAPE_ELLIPSE

public static $SHAPE_ELLIPSE

SHAPE_DOUBLE_ELLIPSE

public static $SHAPE_DOUBLE_ELLIPSE

SHAPE_RHOMBUS

public static $SHAPE_RHOMBUS

SHAPE_LINE

public static $SHAPE_LINE

SHAPE_IMAGE

public static $SHAPE_IMAGE

SHAPE_ARROW

public static $SHAPE_ARROW

SHAPE_LABEL

public static $SHAPE_LABEL

SHAPE_CYLINDER

public static $SHAPE_CYLINDER

SHAPE_SWIMLANE

public static $SHAPE_SWIMLANE

SHAPE_CONNECTOR

public static $SHAPE_CONNECTOR

SHAPE_ACTOR

public static $SHAPE_ACTOR

SHAPE_CLOUD

public static $SHAPE_CLOUD

SHAPE_TRIANGLE

public static $SHAPE_TRIANGLE

SHAPE_HEXAGON

public static $SHAPE_HEXAGON

ARROW_CLASSIC

public static $ARROW_CLASSIC

ARROW_BLOCK

public static $ARROW_BLOCK

ARROW_OPEN

public static $ARROW_OPEN

ARROW_OVAL

public static $ARROW_OVAL

ARROW_DIAMOND

public static $ARROW_DIAMOND

ALIGN_LEFT

public static $ALIGN_LEFT

ALIGN_CENTER

public static $ALIGN_CENTER

ALIGN_RIGHT

public static $ALIGN_RIGHT

ALIGN_TOP

public static $ALIGN_TOP

ALIGN_MIDDLE

public static $ALIGN_MIDDLE

ALIGN_BOTTOM

public static $ALIGN_BOTTOM

DIRECTION_NORTH

public static $DIRECTION_NORTH

DIRECTION_SOUTH

public static $DIRECTION_SOUTH

DIRECTION_EAST

public static $DIRECTION_EAST

DIRECTION_WEST

public static $DIRECTION_WEST

ELBOW_VERTICAL

public static $ELBOW_VERTICAL

ELBOW_HORIZONTAL

public static $ELBOW_HORIZONTAL

EDGESTYLE_ENTITY_RELATION

public static $EDGESTYLE_ENTITY_RELATION

Name of the entity relation edge style.  Can be used as a string value for the STYLE_EDGE style.

EDGESTYLE_LOOP

public static $EDGESTYLE_LOOP

Name of the loop edge style.  Can be used as a string value for the STYLE_EDGE style.

EDGESTYLE_SIDETOSIDE

public static $EDGESTYLE_SIDETOSIDE

Name of the side to side edge style.  Can be used as a string value for the STYLE_EDGE style.

EDGESTYLE_TOPTOBOTTOM

public static $EDGESTYLE_TOPTOBOTTOM

Name of the top to bottom edge style.  Can be used as a string value for the STYLE_EDGE style.

PERIMETER_ELLIPSE

public static $PERIMETER_ELLIPSE

Name of the ellipse perimeter.  Can be used as a string value for the STYLE_PERIMETER style.

PERIMETER_RECTANGLE

public static $PERIMETER_RECTANGLE

Name of the rectangle perimeter.  Can be used as a string value for the STYLE_PERIMETER style.

PERIMETER_RHOMBUS

public static $PERIMETER_RHOMBUS

Name of the rhombus perimeter.  Can be used as a string value for the STYLE_PERIMETER style.

PERIMETER_TRIANGLE

public static $PERIMETER_TRIANGLE

Name of the triangle perimeter.  Can be used as a string value for the STYLE_PERIMETER style.

public static $RAD_PER_DEG
Defines the number of radiants per degree.
public static $DEG_PER_RAD
Defines the number of degrees per radiant.
public static $ACTIVE_REGION
Defines the portion of the cell which is to be used as a connectable region.
public static $MIN_ACTIVE_REGION
Defines the minimum size in pixels of the portion of the cell cell which is to be used as a connectable region.
public static $NS_SVG
Defines the SVG namespace.
public static $NS_XHTML
Defines the XHTML namespace.
public static $NS_XLINK
Defined the XLink namespace.
public static $W3C_SHADOWCOLOR
Defines the color to be used to draw shadows in DOM documents.
public static $SHADOW_OFFSETX
Defines the x-offset to be used for shadows.
public static $SHADOW_OFFSETY
Defines the y-offset to be used for shadows.
public static $W3C_DEFAULT_FONTFAMILY
Defines the default family for HTML markup.
public static $TTF_ENABLED
Whether TrueType fonts should be enabled in the mxGdCanvas by default.
public static $TTF_SIZEFACTOR
Defines the factor which wich the font sizes are to be multiplied when used in truetype fonts.
public static $DEFAULT_FONTFAMILY
Defines the default family for all truetype fonts.
public static $DEFAULT_FONTSIZE
Defines the default size for all fonts in points.
public static $DEFAULT_STARTSIZE
Defines the default start size for swimlanes.
public static $DEFAULT_LINESPACING
Defines the default linespacing.
public static $LABEL_INSET
Defines the inset in absolute pixels between the label bounding box and the label text.
public static $DEFAULT_MARKERSIZE
Defines the default size for all markers.
public static $DEFAULT_IMAGESIZE
Defines the default width and height for images used in the label shape.
public static $ENTITY_SEGMENT
Defines the length of the horizontal segment of an Entity Relation.
public static $ARROW_SPACING
Defines the spacing between the arrow shape and its terminals.
public static $ARROW_WIDTH
Defines the width of the arrow shape.
public static $ARROW_SIZE
Defines the size of the arrowhead in the arrow shape.
public static $NONE
Defines the value for none.
public static $STYLE_PERIMETER
Defines the key for the perimeter style.
public static $STYLE_OPACITY
Defines the key for the opacity style.
public static $STYLE_TEXT_OPACITY
Defines the key for the text opacity style.
public static $STYLE_OVERFLOW
Defines the key for the overflow style.
public static $STYLE_ORTHOGONAL
Defines if the connection points on either end of the edge should be computed so that the edge is vertical or horizontal if possible and if the point is not at a fixed location.
public static $STYLE_EXIT_X
Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal.
public static $STYLE_EXIT_Y
Defines the key for the vertical relative coordinate connection point of an edge with its source terminal.
public static $STYLE_EXIT_PERIMETER
Defines if the perimeter should be used to find the exact entry point along the perimeter of the source.
public static $STYLE_ENTRY_X
Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal.
public static $STYLE_ENTRY_Y
Defines the key for the vertical relative coordinate connection point of an edge with its target terminal.
public static $STYLE_WHITE_SPACE
Defines the key for the white-space style.
public static $STYLE_ROTATION
Defines the key for the rotation style.
public static $STYLE_FILLCOLOR
Defines the key for the fill color.
public static $STYLE_SWIMLANE_FILLCOLOR
Defines the key for the fill color of the swimlane background.
public static $STYLE_GRADIENTCOLOR
Defines the key for the gradient color.
public static $STYLE_GRADIENT_DIRECTION
Defines the key for the gradient direction.
public static $STYLE_STROKECOLOR
Defines the key for the strokeColor style.
public static $STYLE_SEPARATORCOLOR
Defines the key for the separatorColor style.
public static $STYLE_STROKEWIDTH
Defines the key for the strokeWidth style.
public static $STYLE_ALIGN
Defines the key for the align style.
public static $STYLE_VERTICAL_ALIGN
Defines the key for the verticalAlign style.
public static $STYLE_LABEL_POSITION
Defines the key for the horizontal label position of vertices.
public static $STYLE_VERTICAL_LABEL_POSITION
Defines the key for the vertical label position of vertices.
public static $STYLE_IMAGE_ALIGN
Defines the key for the align style.
public static $STYLE_IMAGE
Defines the key for the image style.
public static $STYLE_IMAGE_WIDTH
Defines the key for the imageWidth style.
public static $STYLE_IMAGE_HEIGHT
Defines the key for the imageHeight style.
public static $STYLE_IMAGE_BACKGROUND
Defines the key for the image background color.
public static $STYLE_IMAGE_BORDER
Defines the key for the image border color.
public static $STYLE_IMAGE_FLIPH
Defines the key for the horizontal image flip.
public static $STYLE_IMAGE_FLIPV
Defines the key for the vertical image flip.
public static $STYLE_NOLABEL
Defines the key for the noLabel style.
public static $STYLE_NOEDGESTYLE
Defines the key for the noEdgeStyle style.
public static $STYLE_LABEL_BACKGROUNDCOLOR
Defines the key for the label background color.
public static $STYLE_LABEL_BORDERCOLOR
Defines the key for the label border color.
public static $STYLE_INDICATOR_SHAPE
Defines the key for the indicatorShape style.
public static $STYLE_INDICATOR_IMAGE
Defines the key for the indicatorImage style.
public static $STYLE_INDICATOR_COLOR
Defines the key for the indicatorColor style.
public static $STYLE_INDICATOR_GRADIENTCOLOR
Defines the key for the indicatorGradientColor style.
public static $STYLE_INDICATOR_SPACING
Defines the key for the indicatorSpacing style (in px).
public static $STYLE_INDICATOR_WIDTH
Defines the key for the indicatorWidth style (in px).
public static $STYLE_INDICATOR_HEIGHT
Defines the key for the indicatorHeight style (in px).
public static $STYLE_SHADOW
Defines the key for the shadow style.
public static $STYLE_SEGMENT
Defines the key for the segment style.
public static $STYLE_ENDARROW
Defines the key for the endArrow style.
public static $STYLE_STARTARROW
Defines the key for the startArrow style.
public static $STYLE_ENDSIZE
Defines the key for the endSize style.
public static $STYLE_STARTSIZE
Defines the key for the startSize style.
public static $STYLE_SWIMLANE_LINE
Defines the key for the swimlaneLine style.
public static $STYLE_DASHED
Defines the key for the endSize style.
public static $STYLE_ROUNDED
Defines the key for the rounded style.
public static $STYLE_SOURCE_PERIMETER_SPACING
Defines the key for the source perimeter spacing.
public static $STYLE_TARGET_PERIMETER_SPACING
Defines the key for the source perimeter spacing.
public static $STYLE_PERIMETER_SPACING
Defines the key for the perimeter spacing.
public static $STYLE_SPACING
Defines the key for the spacing.
public static $STYLE_SPACING_TOP
Defines the key for the spacingTop style.
public static $STYLE_SPACING_LEFT
Defines the key for the spacingLeft style.
public static $STYLE_SPACING_BOTTOM
Defines the key for the spacingBottom style The value represents the spacing, in pixels, added to the bottom side of a label in a vertex (style applies to vertices only).
public static $STYLE_SPACING_RIGHT
Defines the key for the spacingRight style The value represents the spacing, in pixels, added to the right side of a label in a vertex (style applies to vertices only).
public static $STYLE_HORIZONTAL
Defines the key for the horizontal style.
public static $STYLE_DIRECTION
Defines the key for the direction style.
public static $STYLE_ELBOW
Defines the key for the elbow style.
public static $STYLE_FONTCOLOR
Defines the key for the fontColor style.
public static $STYLE_FONTFAMILY
Defines the key for the fontFamily style.
public static $STYLE_FONTSIZE
Defines the key for the fontSize style (in points).
public static $STYLE_FONTSTYLE
Defines the key for the fontStyle style.
public static $STYLE_SHAPE
Defines the key for the shape.
public static $STYLE_EDGE
Defines the key for the edge style.
public static $STYLE_LOOP
Defines the key for the loop style.
public static $STYLE_ROUTING_CENTER_X
Defines the key for the horizontal routing center.
public static $STYLE_ROUTING_CENTER_Y
Defines the key for the vertical routing center.
public static $FONT_BOLD
public static $FONT_ITALIC
public static $FONT_UNDERLINE
public static $SHAPE_RECTANGLE
public static $SHAPE_ELLIPSE
public static $SHAPE_DOUBLE_ELLIPSE
public static $SHAPE_RHOMBUS
public static $SHAPE_LINE
public static $SHAPE_IMAGE
public static $SHAPE_ARROW
public static $SHAPE_LABEL
public static $SHAPE_CYLINDER
public static $SHAPE_SWIMLANE
public static $SHAPE_CONNECTOR
public static $SHAPE_ACTOR
public static $SHAPE_CLOUD
public static $SHAPE_TRIANGLE
public static $SHAPE_HEXAGON
public static $ARROW_CLASSIC
public static $ARROW_BLOCK
public static $ARROW_OPEN
public static $ARROW_OVAL
public static $ARROW_DIAMOND
public static $ALIGN_LEFT
public static $ALIGN_CENTER
public static $ALIGN_RIGHT
public static $ALIGN_TOP
public static $ALIGN_MIDDLE
public static $ALIGN_BOTTOM
public static $DIRECTION_NORTH
public static $DIRECTION_SOUTH
public static $DIRECTION_EAST
public static $DIRECTION_WEST
public static $ELBOW_VERTICAL
public static $ELBOW_HORIZONTAL
public static $EDGESTYLE_ENTITY_RELATION
Name of the entity relation edge style.
public static $EDGESTYLE_LOOP
Name of the loop edge style.
public static $EDGESTYLE_SIDETOSIDE
Name of the side to side edge style.
public static $EDGESTYLE_TOPTOBOTTOM
Name of the top to bottom edge style.
public static $PERIMETER_ELLIPSE
Name of the ellipse perimeter.
public static $PERIMETER_RECTANGLE
Name of the rectangle perimeter.
public static $PERIMETER_RHOMBUS
Name of the rhombus perimeter.
public static $PERIMETER_TRIANGLE
Name of the triangle perimeter.
Provides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER.
Singleton class that acts as a global converter from string to object values in a style.
function isOrthogonal($edge)
Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments.
Maps from keys to base64 encoded images or file locations.
static function loadImage($url)
Loads an image from the local filesystem, a data URI or any other URL.
Provides various edge styles to be used as the values for mxConstants.STYLE_EDGE in a cell style.
Close