Package com.mxgraph.util
Class mxConstants
java.lang.Object
com.mxgraph.util.mxConstants
Contains all global constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
Specifies if absolute line heights should be used (px) in CSS.static final String
ALIGN_BOTTOMstatic final String
ALIGN_CENTERstatic final String
ALIGN_LEFTstatic final String
ALIGN_MIDDLEstatic final String
ALIGN_RIGHTstatic final String
ALIGN_TOPstatic final String
ARROW_BLOCKstatic final String
ARROW_CLASSICstatic final String
ARROW_OPENstatic final String
ARROW_OPENstatic final String
ARROW_BLOCKstatic int
Defines the size of the arrowhead in the arrow shape.static int
Defines the spacing between the arrow shape and its terminals.static int
Defines the width of the arrow shape.static boolean
Defines the default value for the connect handle.static int
Defines the connect handle size.static float[]
Specifies the default dash pattern, 3 pixels solid, 3 pixels clear.static String
Comma separated list of default fonts for CSS properties.static String
Defines the default font family.static int
Defines the default font size (in px).static double
Defines the portion of the cell which is to be used as a connectable region.static int
Defines the default image size.static double
Specifies the default distance at 1.0 scale that the label curve is created from its base curvestatic int
Defines the default marker size.static int
Defines the default start size for swimlanes.static double
Defines the number of degrees per radian.static final String
DIRECTION_EASTstatic final int
DIRECTION_MASK_EASTstatic final int
DIRECTION_MASK_EASTstatic final int
DIRECTION_MASK_NONEstatic final int
DIRECTION_MASK_NORTHstatic final int
DIRECTION_MASK_SOUTHstatic final int
DIRECTION_MASK_WESTstatic final String
DIRECTION_NORTHstatic final String
DIRECTION_SOUTHstatic final String
DIRECTION_WESTstatic final String
Name of the elbow edge style.static final String
Name of the entity relation edge style.static final String
Name of the loop edge style.static final String
Name of the orthogonal edge style.static final String
Name of the generic segment edge style.static final String
Name of the side to side edge style.static final String
Name of the top to bottom edge style.static final String
ELBOW_HORIZONTALstatic final String
ELBOW_VERTICALstatic int
Defines the length of the horizontal segment of an Entity Relation.static final int
FONT_BOLDstatic final int
FONT_ITALICstatic final int
FONT_STRIKETHROUGHstatic final int
FONT_UNDERLINEstatic int
Defines the handle size.static int
Defines the handle size.static int
Defines the inset in absolute pixels between the label bounding box and the label text.static double
Multiplier to the width that is passed into the word wrapping calculation See mxUtils.wordWrap for detailsstatic double
Defines the size of the arcs for rounded edges.static float
Default line height for text output.static int
Specifies the line spacing.static int
Defines the maximum size in pixels of the portion of the cell which is to be used as a connectable region.static int
Defines the minimum size in pixels of the portion of the cell which is to be used as a connectable region.static double
Defines the minimum scale at which rounded polylines should be painted.static String
Defines the value for none.static String
Defines the SVG namespace.static String
Defines the XHTML namespace.static String
Defines the XLink namespace.static final String
Name of the ellipse perimeter.static final String
Name of the hexagon perimeter.static final String
Name of the rectangle perimeter.static final String
Name of the rhombus perimeter.static final String
Name of the triangle perimeter.static double
Defines the number of radians per degree.static double
Defines the rounding factor for rounded rectangles in percent between 0 and 1.static int
Defines the x-offset to be used for shadows.static int
Defines the y-offset to be used for shadows.static final String
SHAPE_ACTORstatic final String
SHAPE_ARROWstatic final String
SHAPE_CLOUDstatic final String
SHAPE_CONNECTORstatic final String
SHAPE_ARROWstatic final String
SHAPE_CYLINDERstatic final String
SHAPE_DOUBLE_ELLIPSEstatic final String
SHAPE_DOUBLE_RECTANGLEstatic final String
SHAPE_ELLIPSEstatic final String
SHAPE_HEXAGONstatic final String
SHAPE_IMAGEstatic final String
SHAPE_LABELstatic final String
SHAPE_LINEstatic final String
SHAPE_RECTANGLEstatic final String
SHAPE_RHOMBUSstatic final String
SHAPE_SWIMLANEstatic final String
SHAPE_TRIANGLEstatic boolean
Whether or not to split whole words when applying word wrapping in mxUtils.wordWrap.static int
Defines the default opacity for stencils shadows.static String
Defines the default shadow color for stencils.static String
Defines the key for the align style.static String
Defines the rounding factor for a rounded rectangle in percent (without the percent sign).static String
Defines the key for the autosize style.static String
Defines the key for the bendable style.static String
Defines the key for the cloneable style.static String
Defines the key for the dashed pattern style.static String
Defines the key for the dashed style.static String
Defines the key for the deletable style.static String
Defines the key for the direction style.static String
Takes a function that creates points.static String
Defines the key for the editable style.static String
Defines the key for the elbow style.static String
Defines the key for the endArrow style.static String
Defines the key for the endFill style.static String
Defines the key for the endSize style.static String
Defines if the perimeter should be used to find the exact entry point along the perimeter of the target.static String
Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal.static String
Defines the key for the vertical relative coordinate connection point of an edge with its target terminal.static String
Defines if the perimeter should be used to find the exact entry point along the perimeter of the source.static String
Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal.static String
Defines the key for the vertical relative coordinate connection point of an edge with its source terminal.static String
Defines the key for the fill opacity style.static String
Defines the key for the fillColor style.static String
Defines the key for the horizontal image flip.static String
Variable: STYLE_FLIPV Defines the key for the vertical flip.static String
Defines the key for the foldable style.static String
Defines the key for the fontColor style.static String
Defines the key for the fontFamily style.static String
Defines the key for the fontSize style (in px).static String
Defines the key for the fontStyle style.static String
Defines the key for the glass style.static String
Defines the key for the gradient direction.static String
Defines the key for the gradientColor style.static String
Defines the key for the horizontal style.static String
Defines the key for the image style.static String
Defines the key for the align style.static String
Defines the key for the image background color.static String
Defines the key for the image border color.static String
Defines the key for the horizontal image flip.static String
Defines the key for the vertical image flip.static String
Defines the key for the imageHeight style The type of this value isint
, the value is the image height in pixels and must be greater than 0.static String
Defines the key for the verticalAlign style.static String
Defines the key for the imageWidth style.static String
Defines the key for the indicatorColor style.static String
Defines the key for the indicatorGradientColor style.static String
Defines the key for the indicatorHeight style (in px).static String
Defines the key for the indicatorImage style.static String
Defines the key for the indicatorShape style.static String
Defines the key for the indicatorSpacing style (in px).static String
Defines the key for the indicatorWidth style (in px).static String
Defines the key for the label background color.static String
Defines the key for the label border color.static String
Defines the key for the horizontal label position of vertices.static String
Defines the key for the loop style.static String
Defines the key for the movable style.static String
Defines the key for the noEdgeStyle style.static String
Defines the key for the noLabel style.static String
Defines the key for the opacity style.static String
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.static String
Defines the key for the overflow style.static String
Defines the key for the perimeter style.static String
Defines the key for the perimeter spacing.static String
Defines the direction(s) that edges are allowed to connect to cells in.static String
Defines the key for the resizable style.static String
Defines the key for the rotation style.static String
Defines the key for the rounded style.static String
Defines the key for the horizontal routing center.static String
Defines the key for the vertical routing center.static String
Defines the key for the segment style.static String
Defines the key for the separatorColor style.static String
Defines the key for the shadow style.static String
Defines the key for the shape style.static String
Defines the key for the source perimeter spacing.static String
Defines the ID of the cell that should be used for computing the perimeter point of the source for an edge.static String
Defines the key for the spacing.static String
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).static String
Defines the key for the spacingLeft style.static String
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).static String
Defines the key for the spacingTop style.static String
Defines the key for the startArrow style.static String
Defines the key for the startFill style.static String
Defines the key for the startSize style.static String
Defines the key for the horizontal stencil flip.static String
Defines the key for the vertical stencil flip.static String
Defines the key for the stroke opacity style.static String
Defines the key for the strokeColor style.static String
Defines the key for the strokeWidth style.static String
Defines the key for the fill color of the swimlane background.static String
Defines the key for the swimlaneLine style.static String
Defines the key for the target perimeter spacing.static String
Defines the ID of the cell that should be used for computing the perimeter point of the target for an edge.static String
Defines the key for the text opacity style.static String
Defines the key for the verticalAlign style.static String
Defines the key for the vertical label position of vertices.static String
Defines the key for the white-space style.static String
Defines the transformation used to draw shadows in SVG.static String
Defines the color to be used to draw shadows in W3C standards. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RAD_PER_DEG
public static double RAD_PER_DEGDefines the number of radians per degree. -
DEG_PER_RAD
public static double DEG_PER_RADDefines the number of degrees per radian. -
MIN_SCALE_FOR_ROUNDED_LINES
public static double MIN_SCALE_FOR_ROUNDED_LINESDefines the minimum scale at which rounded polylines should be painted. Default is 0.05. -
DEFAULT_HOTSPOT
public static double DEFAULT_HOTSPOTDefines the portion of the cell which is to be used as a connectable region. Default is 0.3. -
MIN_HOTSPOT_SIZE
public static int MIN_HOTSPOT_SIZEDefines the minimum size in pixels of the portion of the cell which is to be used as a connectable region. Default is 8. -
MAX_HOTSPOT_SIZE
public static int MAX_HOTSPOT_SIZEDefines the maximum size in pixels of the portion of the cell which is to be used as a connectable region. Use 0 for no maximum. Default is 0. -
NS_SVG
Defines the SVG namespace. -
NS_XHTML
Defines the XHTML namespace. -
NS_XLINK
Defines the XLink namespace. -
DEFAULT_FONTFAMILIES
Comma separated list of default fonts for CSS properties. And the default font family value for new image export. Default is Arial, Helvetica. -
DEFAULT_FONTFAMILY
Defines the default font family. Default is "Dialog". (To be replaced with Font.DIALOG after EOL of Java 1.5.) -
DEFAULT_FONTSIZE
public static int DEFAULT_FONTSIZEDefines the default font size (in px). Default is 11. -
DEFAULT_STARTSIZE
public static int DEFAULT_STARTSIZEDefines the default start size for swimlanes. Default is 40. -
LINE_HEIGHT
public static float LINE_HEIGHTDefault line height for text output. Default is 1.2. This is ignored for HTML in the current version of Java. See http://docs.oracle.com/javase/6/docs/api/index.html?javax/swing/text/html/CSS.html -
ABSOLUTE_LINE_HEIGHT
public static boolean ABSOLUTE_LINE_HEIGHTSpecifies if absolute line heights should be used (px) in CSS. Default is false. Set this to true for backwards compatibility. -
LINESPACING
public static int LINESPACINGSpecifies the line spacing. Default is 0. -
SPLIT_WORDS
public static boolean SPLIT_WORDSWhether or not to split whole words when applying word wrapping in mxUtils.wordWrap. -
LABEL_INSET
public static int LABEL_INSETDefines the inset in absolute pixels between the label bounding box and the label text. Default is 3. -
LABEL_SCALE_BUFFER
public static double LABEL_SCALE_BUFFERMultiplier to the width that is passed into the word wrapping calculation See mxUtils.wordWrap for details -
DEFAULT_MARKERSIZE
public static int DEFAULT_MARKERSIZEDefines the default marker size. Default is 6. -
DEFAULT_IMAGESIZE
public static int DEFAULT_IMAGESIZEDefines the default image size. Default is 24. -
STENCIL_SHADOW_OPACITY
public static int STENCIL_SHADOW_OPACITYDefines the default opacity for stencils shadows. Default is 1. -
STENCIL_SHADOWCOLOR
Defines the default shadow color for stencils. Default is "gray". -
SHADOW_OFFSETX
public static int SHADOW_OFFSETXDefines the x-offset to be used for shadows. Default is 2. -
SHADOW_OFFSETY
public static int SHADOW_OFFSETYDefines the y-offset to be used for shadows. Default is 3. -
W3C_SHADOWCOLOR
Defines the color to be used to draw shadows in W3C standards. Default is gray. -
SVG_SHADOWTRANSFORM
Defines the transformation used to draw shadows in SVG. -
DEFAULT_DASHED_PATTERN
public static float[] DEFAULT_DASHED_PATTERNSpecifies the default dash pattern, 3 pixels solid, 3 pixels clear. -
DEFAULT_LABEL_BUFFER
public static double DEFAULT_LABEL_BUFFERSpecifies the default distance at 1.0 scale that the label curve is created from its base curve -
HANDLE_SIZE
public static int HANDLE_SIZEDefines the handle size. Default is 7. -
LABEL_HANDLE_SIZE
public static int LABEL_HANDLE_SIZEDefines the handle size. Default is 4. -
CONNECT_HANDLE_ENABLED
public static boolean CONNECT_HANDLE_ENABLEDDefines the default value for the connect handle. Default is false. -
CONNECT_HANDLE_SIZE
public static int CONNECT_HANDLE_SIZEDefines the connect handle size. Default is 8. -
ENTITY_SEGMENT
public static int ENTITY_SEGMENTDefines the length of the horizontal segment of an Entity Relation. This can be overridden using mxConstants.STYLE_SEGMENT style. Default is 30. -
RECTANGLE_ROUNDING_FACTOR
public static double RECTANGLE_ROUNDING_FACTORDefines the rounding factor for rounded rectangles in percent between 0 and 1. Values should be smaller than 0.5. Default is 0.15. -
LINE_ARCSIZE
public static double LINE_ARCSIZEDefines the size of the arcs for rounded edges. Default is 10. -
ARROW_SPACING
public static int ARROW_SPACINGDefines the spacing between the arrow shape and its terminals. Default is 10. -
ARROW_WIDTH
public static int ARROW_WIDTHDefines the width of the arrow shape. Default is 30. -
ARROW_SIZE
public static int ARROW_SIZEDefines the size of the arrowhead in the arrow shape. Default is 30. -
NONE
Defines the value for none. Default is "none". -
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 that use themxPerimeterFunction
interface. Alternatively, the constants in this class that start withPERIMETER_
may be used to access perimeter styles inmxStyleRegistry
. -
STYLE_SOURCE_PORT
Defines the ID of the cell that should be used for computing the perimeter point of the source for an edge. This allows for graphically connecting to a cell while keeping the actual terminal of the edge. -
STYLE_TARGET_PORT
Defines the ID of the cell that should be used for computing the perimeter point of the target for an edge. This allows for graphically connecting to a cell while keeping the actual terminal of the edge. -
STYLE_PORT_CONSTRAINT
Defines the direction(s) that edges are allowed to connect to cells in. Possible values areDIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_EAST
andDIRECTION_WEST
. -
STYLE_OPACITY
Defines the key for the opacity style. The type of the value isfloat
and the possible range is 0-100. -
STYLE_FILL_OPACITY
Defines the key for the fill opacity style. The type of the value isfloat
and the possible range is 0-100. -
STYLE_STROKE_OPACITY
Defines the key for the stroke opacity style. The type of the value isfloat
and the possible range is 0-100. -
STYLE_TEXT_OPACITY
Defines the key for the text opacity style. The type of the value isfloat
and the possible range is 0-100. -
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.- See Also:
-
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
Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal. -
STYLE_EXIT_Y
Defines the key for the vertical relative coordinate connection point of an edge with its source terminal. -
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
Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal. -
STYLE_ENTRY_Y
Defines the key for the vertical relative coordinate connection point of an edge with its target terminal. -
STYLE_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
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. -
STYLE_ROTATION
Defines the key for the rotation style. The type of the value isdouble
and the possible range is 0-360. -
STYLE_SWIMLANE_FILLCOLOR
Defines the key for the fill color of the swimlane background. The value is a string expression supported by mxUtils.parseColor.- See Also:
-
STYLE_FILLCOLOR
Defines the key for the fillColor style. The value is a string expression supported by mxUtils.parseColor.- See Also:
-
STYLE_GRADIENTCOLOR
Defines the key for the gradientColor style. The value is a string expression supported by mxUtils.parseColor. This is ignored if no fill color is defined.- See Also:
-
STYLE_GRADIENT_DIRECTION
Defines the key for the gradient direction. Possible values areDIRECTION_EAST
,DIRECTION_WEST
,DIRECTION_NORTH
andDIRECTION_SOUTH
. Default isDIRECTION_SOUTH
. Generally, and by default in mxGraph, gradient painting is done from the value ofSTYLE_FILLCOLOR
to the value ofSTYLE_GRADIENTCOLOR
. Taking the example ofDIRECTION_NORTH
, this meansSTYLE_FILLCOLOR
color at the bottom of paint pattern andSTYLE_GRADIENTCOLOR
at top, with a gradient in-between. -
STYLE_STROKECOLOR
Defines the key for the strokeColor style. The value is a string expression supported by mxUtils.parseColor.- See Also:
-
STYLE_SEPARATORCOLOR
Defines the key for the separatorColor style. The value is a string expression supported by mxUtils.parseColor. This style is only used for SHAPE_SWIMLANE shapes.- See Also:
-
STYLE_STROKEWIDTH
Defines the key for the strokeWidth style. The type of the value isfloat
and the possible range is any non-negative value. The value reflects the stroke width in pixels. -
STYLE_ALIGN
Defines the key for the align style. Possible values areALIGN_LEFT
,ALIGN_CENTER
andALIGN_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 andALIGN_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, useSTYLE_LABEL_POSITION
. -
STYLE_VERTICAL_ALIGN
Defines the key for the verticalAlign style. Possible values areALIGN_TOP
,ALIGN_MIDDLE
andALIGN_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 andALIGN_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, useSTYLE_VERTICAL_LABEL_POSITION
. -
STYLE_LABEL_POSITION
Defines the key for the horizontal label position of vertices. Possible values areALIGN_LEFT
,ALIGN_CENTER
andALIGN_RIGHT
. Default isALIGN_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 andALIGN_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, useSTYLE_ALIGN
. -
STYLE_VERTICAL_LABEL_POSITION
Defines the key for the vertical label position of vertices. Possible values areALIGN_TOP
,ALIGN_BOTTOM
andALIGN_MIDDLE
. Default isALIGN_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 andALIGN_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, useSTYLE_VERTICAL_ALIGN
. -
STYLE_IMAGE_ALIGN
Defines the key for the align style. Possible values areALIGN_LEFT
,ALIGN_CENTER
andALIGN_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_VERTICAL_ALIGN
Defines the key for the verticalAlign style. Possible values areALIGN_TOP
,ALIGN_MIDDLE
andALIGN_BOTTOM
. The value defines how any image in the vertex label is aligned vertically within the label bounds of a SHAPE_LABEL shape. -
STYLE_GLASS
Defines the key for the glass style. Possible values are 0 (disabled) and 1(enabled). The default value is 0. This is used in mxLabel. -
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 isString
. This is the path to the image to image that is to be displayed within the label of a vertex. See mxGraphics2DCanvas.getImageForStyle, loadImage and setImageBasePath on how the image URL is resolved. Finally, mxUtils.loadImage is used for loading the image for a given value. -
STYLE_IMAGE_WIDTH
Defines the key for the imageWidth style. The type of this value isint
, the value is the image width in pixels and must be greated than 0. -
STYLE_IMAGE_HEIGHT
Defines the key for the imageHeight style The type of this value isint
, the value is the image height in pixels and must be greater than 0. -
STYLE_IMAGE_BACKGROUND
Defines the key for the image background color. This style is only used for image shapes. Possible values are all HTML color names or HEX codes. -
STYLE_IMAGE_BORDER
Defines the key for the image border color. This style is only used for image shapes. Possible values are all HTML color names or HEX codes. -
STYLE_IMAGE_FLIPH
Defines the key for the horizontal image flip. This style is only used in mxImageShape. Possible values are 0 and 1. Default is 0. -
STYLE_IMAGE_FLIPV
Defines the key for the vertical image flip. This style is only used in mxImageShape. Possible values are 0 and 1. Default is 0. -
STYLE_STENCIL_FLIPH
Defines the key for the horizontal stencil flip. This style is only used for. Possible values are 0 and 1. Default is 0. -
STYLE_STENCIL_FLIPV
Defines the key for the vertical stencil flip. This style is only used for. Possible values are 0 and 1. Default is 0. -
STYLE_FLIPH
Defines the key for the horizontal image flip. This style is only used in. Possible values are 0 and 1. Default is 0. -
STYLE_FLIPV
Variable: STYLE_FLIPV Defines the key for the vertical flip. Possible values are 0 and 1. Default is 0. -
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
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
Defines the key for the label background color. The value is a string expression supported by mxUtils.parseColor.- See Also:
-
STYLE_LABEL_BORDERCOLOR
Defines the key for the label border color. The value is a string expression supported by mxUtils.parseColor.- See Also:
-
STYLE_INDICATOR_SHAPE
Defines the key for the indicatorShape style. Possible values are any of the SHAPE_* constants. -
STYLE_INDICATOR_IMAGE
Defines the key for the indicatorImage style. Possible values are any image URL, the type of the value isString
. -
STYLE_INDICATOR_COLOR
Defines the key for the indicatorColor style. The value is a string expression supported by mxUtils.parseColor.- See Also:
-
STYLE_INDICATOR_GRADIENTCOLOR
Defines the key for the indicatorGradientColor style. The value is a string expression supported by mxUtils.parseColor. This style is only supported in SHAPE_LABEL shapes.- See Also:
-
STYLE_INDICATOR_SPACING
Defines the key for the indicatorSpacing style (in px). -
STYLE_INDICATOR_WIDTH
Defines the key for the indicatorWidth style (in px). -
STYLE_INDICATOR_HEIGHT
Defines the key for the indicatorHeight style (in px). -
STYLE_SHADOW
Defines the key for the shadow style. The type of the value isboolean
. This style applies to vertices and arrow style edges. -
STYLE_SEGMENT
Defines the key for the segment style. The type of this value isfloat
and the value represents the size of the horizontal segment of the entity relation style. Default is ENTITY_SEGMENT. -
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 themxConnector
shape. -
STYLE_STARTARROW
Defines the key for the startArrow style. Possible values are all constants in this class that start with ARROW_. See STYLE_ENDARROW. This style is supported in the mxConnector shape. -
STYLE_ENDSIZE
Defines the key for the endSize style. The type of this value isfloat
and the value represents the size of the end marker in pixels. -
STYLE_STARTSIZE
Defines the key for the startSize style. The type of this value isfloat
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
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_ENDFILL
Defines the key for the endFill style. Use 0 for no fill or 1 (default) for fill. (This style is only exported via.) -
STYLE_STARTFILL
Defines the key for the startFill style. Use 0 for no fill or 1 (default) for fill. (This style is only exported via.) -
STYLE_DASHED
Defines the key for the dashed style. The type of this value isboolean
and the value determines whether or not an edge or border is drawn with a dashed pattern along the line. -
STYLE_DASH_PATTERN
Defines the key for the dashed pattern style. The type of this value isfloat[]
and the value specifies the dashed pattern to apply to edges drawn with this style. This style allows the user to specify a custom-defined dash pattern. This is done using a series of numbers. Dash styles are defined in terms of the length of the dash (the drawn part of the stroke) and the length of the space between the dashes. The lengths are relative to the line width: a length of "1" is equal to the line width. -
STYLE_ROUNDED
Defines the key for the rounded style. The type of this value isboolean
. 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_ARCSIZE
Defines the rounding factor for a rounded rectangle in percent (without the percent sign). Possible values are between 0 and 100. If this value is not specified then RECTANGLE_ROUNDING_FACTOR * 100 is used. For edges, this defines the absolute size of rounded corners in pixels. If this values is not specified then LINE_ARCSIZE is used. (This style is only exported via.) Value is "arcSize". -
STYLE_SOURCE_PERIMETER_SPACING
Defines the key for the source perimeter spacing. The type of this value isdouble
. 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
Defines the key for the target perimeter spacing. The type of this value isdouble
. This is the distance between the target connection point of an edge and the perimeter of the target vertex in pixels. This style only applies to edges. -
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
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
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
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
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
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
Defines the key for the horizontal style. Possible values aretrue
orfalse
. This value only applies to vertices. If theSTYLE_SHAPE
isSHAPE_SWIMLANE
a value offalse
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
Defines the key for the direction style. The direction style is used to specify the direction of certain shapes (eg.mxTriangle
). Possible values areDIRECTION_EAST
(default),DIRECTION_WEST
,DIRECTION_NORTH
andDIRECTION_SOUTH
. This value only applies to vertices. -
STYLE_ELBOW
Defines the key for the elbow style. Possible values areELBOW_HORIZONTAL
andELBOW_VERTICAL
. Default isELBOW_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
Defines the key for the fontColor style. The value is typeString
and of the expression supported by mxUtils.parseColor.- See Also:
-
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 typeString
. -
STYLE_FONTSIZE
Defines the key for the fontSize style (in px). The type of the value isint
. -
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 isint
. -
STYLE_AUTOSIZE
Defines the key for the autosize style. This specifies if a cell should be resized automatically if the value has changed. Possible values are 0 or 1. Default is 0. See mxGraph.isAutoSizeCell. This is normally combined with STYLE_RESIZABLE to disable manual sizing. -
STYLE_FOLDABLE
Defines the key for the foldable style. This specifies if a cell is foldable using a folding icon. Possible values are 0 or 1. Default is 1. See mxGraph.isCellFoldable. -
STYLE_EDITABLE
Defines the key for the editable style. This specifies if the value of a cell can be edited using the in-place editor. Possible values are 0 or 1. Default is 1. See mxGraph.isCellEditable. -
STYLE_BENDABLE
Defines the key for the bendable style. This specifies if the control points of an edge can be moved. Possible values are 0 or 1. Default is 1. See mxGraph.isCellBendable. -
STYLE_MOVABLE
Defines the key for the movable style. This specifies if a cell can be moved. Possible values are 0 or 1. Default is 1. See mxGraph.isCellMovable. -
STYLE_RESIZABLE
Defines the key for the resizable style. This specifies if a cell can be resized. Possible values are 0 or 1. Default is 1. See mxGraph.isCellResizable. -
STYLE_CLONEABLE
Defines the key for the cloneable style. This specifies if a cell can be cloned. Possible values are 0 or 1. Default is 1. See mxGraph.isCellCloneable. -
STYLE_DELETABLE
Defines the key for the deletable style. This specifies if a cell can be deleted. Possible values are 0 or 1. Default is 1. See mxGraph.isCellDeletable. -
STYLE_SHAPE
Defines the key for the shape style. Possible values are any of the SHAPE_* constants. -
STYLE_EDGE
Takes a function that creates points. Possible values are the functions defined in mxEdgeStyle. -
STYLE_LOOP
Defines the key for the loop style. Possible values are the functions defined in mxEdgeStyle. -
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 isfloat
. -
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 isfloat
. -
FONT_BOLD
public static final int FONT_BOLDFONT_BOLD- See Also:
-
FONT_ITALIC
public static final int FONT_ITALICFONT_ITALIC- See Also:
-
FONT_UNDERLINE
public static final int FONT_UNDERLINEFONT_UNDERLINE- See Also:
-
FONT_STRIKETHROUGH
public static final int FONT_STRIKETHROUGHFONT_STRIKETHROUGH- See Also:
-
SHAPE_RECTANGLE
SHAPE_RECTANGLE- See Also:
-
SHAPE_ELLIPSE
SHAPE_ELLIPSE- See Also:
-
SHAPE_DOUBLE_RECTANGLE
SHAPE_DOUBLE_RECTANGLE- See Also:
-
SHAPE_DOUBLE_ELLIPSE
SHAPE_DOUBLE_ELLIPSE- See Also:
-
SHAPE_RHOMBUS
SHAPE_RHOMBUS- See Also:
-
SHAPE_LINE
SHAPE_LINE- See Also:
-
SHAPE_IMAGE
SHAPE_IMAGE- See Also:
-
SHAPE_ARROW
SHAPE_ARROW- See Also:
-
SHAPE_CURVE
SHAPE_ARROW- See Also:
-
SHAPE_LABEL
SHAPE_LABEL- See Also:
-
SHAPE_CYLINDER
SHAPE_CYLINDER- See Also:
-
SHAPE_SWIMLANE
SHAPE_SWIMLANE- See Also:
-
SHAPE_CONNECTOR
SHAPE_CONNECTOR- See Also:
-
SHAPE_ACTOR
SHAPE_ACTOR- See Also:
-
SHAPE_CLOUD
SHAPE_CLOUD- See Also:
-
SHAPE_TRIANGLE
SHAPE_TRIANGLE- See Also:
-
SHAPE_HEXAGON
SHAPE_HEXAGON- See Also:
-
ARROW_CLASSIC
ARROW_CLASSIC- See Also:
-
ARROW_BLOCK
ARROW_BLOCK- See Also:
-
ARROW_OPEN
ARROW_OPEN- See Also:
-
ARROW_OVAL
ARROW_BLOCK- See Also:
-
ARROW_DIAMOND
ARROW_OPEN- See Also:
-
ALIGN_LEFT
ALIGN_LEFT- See Also:
-
ALIGN_CENTER
ALIGN_CENTER- See Also:
-
ALIGN_RIGHT
ALIGN_RIGHT- See Also:
-
ALIGN_TOP
ALIGN_TOP- See Also:
-
ALIGN_MIDDLE
ALIGN_MIDDLE- See Also:
-
ALIGN_BOTTOM
ALIGN_BOTTOM- See Also:
-
DIRECTION_NORTH
DIRECTION_NORTH- See Also:
-
DIRECTION_SOUTH
DIRECTION_SOUTH- See Also:
-
DIRECTION_EAST
DIRECTION_EAST- See Also:
-
DIRECTION_WEST
DIRECTION_WEST- See Also:
-
DIRECTION_MASK_NONE
public static final int DIRECTION_MASK_NONEDIRECTION_MASK_NONE- See Also:
-
DIRECTION_MASK_WEST
public static final int DIRECTION_MASK_WESTDIRECTION_MASK_WEST- See Also:
-
DIRECTION_MASK_NORTH
public static final int DIRECTION_MASK_NORTHDIRECTION_MASK_NORTH- See Also:
-
DIRECTION_MASK_SOUTH
public static final int DIRECTION_MASK_SOUTHDIRECTION_MASK_SOUTH- See Also:
-
DIRECTION_MASK_EAST
public static final int DIRECTION_MASK_EASTDIRECTION_MASK_EAST- See Also:
-
DIRECTION_MASK_ALL
public static final int DIRECTION_MASK_ALLDIRECTION_MASK_EAST- See Also:
-
ELBOW_VERTICAL
ELBOW_VERTICAL- See Also:
-
ELBOW_HORIZONTAL
ELBOW_HORIZONTAL- See Also:
-
EDGESTYLE_ELBOW
Name of the elbow edge style. Can be used as a string value for the STYLE_EDGE style.- See Also:
-
EDGESTYLE_ENTITY_RELATION
Name of the entity relation edge style. Can be used as a string value for the STYLE_EDGE style.- See Also:
-
EDGESTYLE_LOOP
Name of the loop edge style. Can be used as a string value for the STYLE_EDGE style.- See Also:
-
EDGESTYLE_SIDETOSIDE
Name of the side to side edge style. Can be used as a string value for the STYLE_EDGE style.- See Also:
-
EDGESTYLE_TOPTOBOTTOM
Name of the top to bottom edge style. Can be used as a string value for the STYLE_EDGE style.- See Also:
-
EDGESTYLE_ORTHOGONAL
Name of the orthogonal edge style. Can be used as a string value for the STYLE_EDGE style.- See Also:
-
EDGESTYLE_SEGMENT
Name of the generic segment edge style. Can be used as a string value for the STYLE_EDGE style.- See Also:
-
PERIMETER_ELLIPSE
Name of the ellipse perimeter. Can be used as a string value for the STYLE_PERIMETER style.- See Also:
-
PERIMETER_RECTANGLE
Name of the rectangle perimeter. Can be used as a string value for the STYLE_PERIMETER style.- See Also:
-
PERIMETER_RHOMBUS
Name of the rhombus perimeter. Can be used as a string value for the STYLE_PERIMETER style.- See Also:
-
PERIMETER_TRIANGLE
Name of the triangle perimeter. Can be used as a string value for the STYLE_PERIMETER style.- See Also:
-
PERIMETER_HEXAGON
Name of the hexagon perimeter. Can be used as a string value for the STYLE_PERIMETER style.- See Also:
-
-
Constructor Details
-
mxConstants
public mxConstants()
-