public class mxConstants
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static boolean |
ABSOLUTE_LINE_HEIGHT |
Specifies if absolute line heights should be used (px) in CSS.
|
static java.lang.String |
ALIGN_BOTTOM |
ALIGN_BOTTOM
|
static java.lang.String |
ALIGN_CENTER |
ALIGN_CENTER
|
static java.lang.String |
ALIGN_LEFT |
ALIGN_LEFT
|
static java.lang.String |
ALIGN_MIDDLE |
ALIGN_MIDDLE
|
static java.lang.String |
ALIGN_RIGHT |
ALIGN_RIGHT
|
static java.lang.String |
ALIGN_TOP |
ALIGN_TOP
|
static java.lang.String |
ARROW_BLOCK |
ARROW_BLOCK
|
static java.lang.String |
ARROW_CLASSIC |
ARROW_CLASSIC
|
static java.lang.String |
ARROW_DIAMOND |
ARROW_OPEN
|
static java.lang.String |
ARROW_OPEN |
ARROW_OPEN
|
static java.lang.String |
ARROW_OVAL |
ARROW_BLOCK
|
static int |
ARROW_SIZE |
Defines the size of the arrowhead in the arrow shape.
|
static int |
ARROW_SPACING |
Defines the spacing between the arrow shape and its terminals.
|
static int |
ARROW_WIDTH |
Defines the width of the arrow shape.
|
static boolean |
CONNECT_HANDLE_ENABLED |
Defines the default value for the connect handle.
|
static int |
CONNECT_HANDLE_SIZE |
Defines the connect handle size.
|
static float[] |
DEFAULT_DASHED_PATTERN |
Specifies the default dash pattern, 3 pixels solid, 3 pixels clear.
|
static java.lang.String |
DEFAULT_FONTFAMILIES |
Comma separated list of default fonts for CSS properties.
|
static java.lang.String |
DEFAULT_FONTFAMILY |
Defines the default font family.
|
static int |
DEFAULT_FONTSIZE |
Defines the default font size (in px).
|
static double |
DEFAULT_HOTSPOT |
Defines the portion of the cell which is to be used as a connectable
region.
|
static int |
DEFAULT_IMAGESIZE |
Defines the default image size.
|
static double |
DEFAULT_LABEL_BUFFER |
Specifies the default distance at 1.0 scale that the label curve is
created from its base curve
|
static int |
DEFAULT_MARKERSIZE |
Defines the default marker size.
|
static int |
DEFAULT_STARTSIZE |
Defines the default start size for swimlanes.
|
static double |
DEG_PER_RAD |
Defines the number of degrees per radian.
|
static java.lang.String |
DIRECTION_EAST |
DIRECTION_EAST
|
static int |
DIRECTION_MASK_ALL |
DIRECTION_MASK_EAST
|
static int |
DIRECTION_MASK_EAST |
DIRECTION_MASK_EAST
|
static int |
DIRECTION_MASK_NONE |
DIRECTION_MASK_NONE
|
static int |
DIRECTION_MASK_NORTH |
DIRECTION_MASK_NORTH
|
static int |
DIRECTION_MASK_SOUTH |
DIRECTION_MASK_SOUTH
|
static int |
DIRECTION_MASK_WEST |
DIRECTION_MASK_WEST
|
static java.lang.String |
DIRECTION_NORTH |
DIRECTION_NORTH
|
static java.lang.String |
DIRECTION_SOUTH |
DIRECTION_SOUTH
|
static java.lang.String |
DIRECTION_WEST |
DIRECTION_WEST
|
static java.lang.String |
EDGESTYLE_ELBOW |
Name of the elbow edge style.
|
static java.lang.String |
EDGESTYLE_ENTITY_RELATION |
Name of the entity relation edge style.
|
static java.lang.String |
EDGESTYLE_LOOP |
Name of the loop edge style.
|
static java.lang.String |
EDGESTYLE_ORTHOGONAL |
Name of the orthogonal edge style.
|
static java.lang.String |
EDGESTYLE_SEGMENT |
Name of the generic segment edge style.
|
static java.lang.String |
EDGESTYLE_SIDETOSIDE |
Name of the side to side edge style.
|
static java.lang.String |
EDGESTYLE_TOPTOBOTTOM |
Name of the top to bottom edge style.
|
static java.lang.String |
ELBOW_HORIZONTAL |
ELBOW_HORIZONTAL
|
static java.lang.String |
ELBOW_VERTICAL |
ELBOW_VERTICAL
|
static int |
ENTITY_SEGMENT |
Defines the length of the horizontal segment of an Entity Relation.
|
static int |
FONT_BOLD |
FONT_BOLD
|
static int |
FONT_ITALIC |
FONT_ITALIC
|
static int |
FONT_UNDERLINE |
FONT_UNDERLINE
|
static int |
HANDLE_SIZE |
Defines the handle size.
|
static int |
LABEL_HANDLE_SIZE |
Defines the handle size.
|
static int |
LABEL_INSET |
Defines the inset in absolute pixels between the label bounding box and
the label text.
|
static double |
LABEL_SCALE_BUFFER |
Multiplier to the width that is passed into the word wrapping calculation
See mxUtils.wordWrap for details
|
static double |
LINE_ARCSIZE |
Defines the size of the arcs for rounded edges.
|
static float |
LINE_HEIGHT |
Default line height for text output.
|
static int |
LINESPACING |
Specifies the line spacing.
|
static int |
MAX_HOTSPOT_SIZE |
Defines the maximum size in pixels of the portion of the cell which is
to be used as a connectable region.
|
static int |
MIN_HOTSPOT_SIZE |
Defines the minimum size in pixels of the portion of the cell which is
to be used as a connectable region.
|
static double |
MIN_SCALE_FOR_ROUNDED_LINES |
Defines the minimum scale at which rounded polylines should be painted.
|
static java.lang.String |
NONE |
Defines the value for none.
|
static java.lang.String |
NS_SVG |
Defines the SVG namespace.
|
static java.lang.String |
NS_XHTML |
Defines the XHTML namespace.
|
static java.lang.String |
NS_XLINK |
Defines the XLink namespace.
|
static java.lang.String |
PERIMETER_ELLIPSE |
Name of the ellipse perimeter.
|
static java.lang.String |
PERIMETER_HEXAGON |
Name of the hexagon perimeter.
|
static java.lang.String |
PERIMETER_RECTANGLE |
Name of the rectangle perimeter.
|
static java.lang.String |
PERIMETER_RHOMBUS |
Name of the rhombus perimeter.
|
static java.lang.String |
PERIMETER_TRIANGLE |
Name of the triangle perimeter.
|
static double |
RAD_PER_DEG |
Defines the number of radians per degree.
|
static double |
RECTANGLE_ROUNDING_FACTOR |
Defines the rounding factor for rounded rectangles in percent between
0 and 1.
|
static int |
SHADOW_OFFSETX |
Defines the x-offset to be used for shadows.
|
static int |
SHADOW_OFFSETY |
Defines the y-offset to be used for shadows.
|
static java.lang.String |
SHAPE_ACTOR |
SHAPE_ACTOR
|
static java.lang.String |
SHAPE_ARROW |
SHAPE_ARROW
|
static java.lang.String |
SHAPE_CLOUD |
SHAPE_CLOUD
|
static java.lang.String |
SHAPE_CONNECTOR |
SHAPE_CONNECTOR
|
static java.lang.String |
SHAPE_CURVE |
SHAPE_ARROW
|
static java.lang.String |
SHAPE_CYLINDER |
SHAPE_CYLINDER
|
static java.lang.String |
SHAPE_DOUBLE_ELLIPSE |
SHAPE_DOUBLE_ELLIPSE
|
static java.lang.String |
SHAPE_DOUBLE_RECTANGLE |
SHAPE_DOUBLE_RECTANGLE
|
static java.lang.String |
SHAPE_ELLIPSE |
SHAPE_ELLIPSE
|
static java.lang.String |
SHAPE_HEXAGON |
SHAPE_HEXAGON
|
static java.lang.String |
SHAPE_IMAGE |
SHAPE_IMAGE
|
static java.lang.String |
SHAPE_LABEL |
SHAPE_LABEL
|
static java.lang.String |
SHAPE_LINE |
SHAPE_LINE
|
static java.lang.String |
SHAPE_RECTANGLE |
SHAPE_RECTANGLE
|
static java.lang.String |
SHAPE_RHOMBUS |
SHAPE_RHOMBUS
|
static java.lang.String |
SHAPE_SWIMLANE |
SHAPE_SWIMLANE
|
static java.lang.String |
SHAPE_TRIANGLE |
SHAPE_TRIANGLE
|
static boolean |
SPLIT_WORDS |
Whether or not to split whole words when applying word wrapping in mxUtils.wordWrap.
|
static int |
STENCIL_SHADOW_OPACITY |
Defines the default opacity for stencils shadows.
|
static java.lang.String |
STENCIL_SHADOWCOLOR |
Defines the default shadow color for stencils.
|
static java.lang.String |
STYLE_ALIGN |
Defines the key for the align style.
|
static java.lang.String |
STYLE_ARCSIZE |
Defines the rounding factor for a rounded rectangle in percent (without
the percent sign).
|
static java.lang.String |
STYLE_AUTOSIZE |
Defines the key for the autosize style.
|
static java.lang.String |
STYLE_BENDABLE |
Defines the key for the bendable style.
|
static java.lang.String |
STYLE_CLONEABLE |
Defines the key for the cloneable style.
|
static java.lang.String |
STYLE_DASH_PATTERN |
Defines the key for the dashed pattern style.
|
static java.lang.String |
STYLE_DASHED |
Defines the key for the dashed style.
|
static java.lang.String |
STYLE_DELETABLE |
Defines the key for the deletable style.
|
static java.lang.String |
STYLE_DIRECTION |
Defines the key for the direction style.
|
static java.lang.String |
STYLE_EDGE |
Takes a function that creates points.
|
static java.lang.String |
STYLE_EDITABLE |
Defines the key for the editable style.
|
static java.lang.String |
STYLE_ELBOW |
Defines the key for the elbow style.
|
static java.lang.String |
STYLE_ENDARROW |
Defines the key for the endArrow style.
|
static java.lang.String |
STYLE_ENDFILL |
Defines the key for the endFill style.
|
static java.lang.String |
STYLE_ENDSIZE |
Defines the key for the endSize style.
|
static java.lang.String |
STYLE_ENTRY_PERIMETER |
Defines if the perimeter should be used to find the exact entry point
along the perimeter of the target.
|
static java.lang.String |
STYLE_ENTRY_X |
Defines the key for the horizontal relative coordinate connection point
of an edge with its target terminal.
|
static java.lang.String |
STYLE_ENTRY_Y |
Defines the key for the vertical relative coordinate connection point
of an edge with its target terminal.
|
static java.lang.String |
STYLE_EXIT_PERIMETER |
Defines if the perimeter should be used to find the exact entry point
along the perimeter of the source.
|
static java.lang.String |
STYLE_EXIT_X |
Defines the key for the horizontal relative coordinate connection point
of an edge with its source terminal.
|
static java.lang.String |
STYLE_EXIT_Y |
Defines the key for the vertical relative coordinate connection point
of an edge with its source terminal.
|
static java.lang.String |
STYLE_FILL_OPACITY |
Defines the key for the fill opacity style.
|
static java.lang.String |
STYLE_FILLCOLOR |
Defines the key for the fillColor style.
|
static java.lang.String |
STYLE_FLIPH |
Defines the key for the horizontal image flip.
|
static java.lang.String |
STYLE_FLIPV |
Variable: STYLE_FLIPV
Defines the key for the vertical flip.
|
static java.lang.String |
STYLE_FOLDABLE |
Defines the key for the foldable style.
|
static java.lang.String |
STYLE_FONTCOLOR |
Defines the key for the fontColor style.
|
static java.lang.String |
STYLE_FONTFAMILY |
Defines the key for the fontFamily style.
|
static java.lang.String |
STYLE_FONTSIZE |
Defines the key for the fontSize style (in px).
|
static java.lang.String |
STYLE_FONTSTYLE |
Defines the key for the fontStyle style.
|
static java.lang.String |
STYLE_GLASS |
Defines the key for the glass style.
|
static java.lang.String |
STYLE_GRADIENT_DIRECTION |
Defines the key for the gradient direction.
|
static java.lang.String |
STYLE_GRADIENTCOLOR |
Defines the key for the gradientColor style.
|
static java.lang.String |
STYLE_HORIZONTAL |
Defines the key for the horizontal style.
|
static java.lang.String |
STYLE_IMAGE |
Defines the key for the image style.
|
static java.lang.String |
STYLE_IMAGE_ALIGN |
Defines the key for the align style.
|
static java.lang.String |
STYLE_IMAGE_BACKGROUND |
Defines the key for the image background color.
|
static java.lang.String |
STYLE_IMAGE_BORDER |
Defines the key for the image border color.
|
static java.lang.String |
STYLE_IMAGE_FLIPH |
Defines the key for the horizontal image flip.
|
static java.lang.String |
STYLE_IMAGE_FLIPV |
Defines the key for the vertical image flip.
|
static java.lang.String |
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. |
static java.lang.String |
STYLE_IMAGE_VERTICAL_ALIGN |
Defines the key for the verticalAlign style.
|
static java.lang.String |
STYLE_IMAGE_WIDTH |
Defines the key for the imageWidth style.
|
static java.lang.String |
STYLE_INDICATOR_COLOR |
Defines the key for the indicatorColor style.
|
static java.lang.String |
STYLE_INDICATOR_GRADIENTCOLOR |
Defines the key for the indicatorGradientColor style.
|
static java.lang.String |
STYLE_INDICATOR_HEIGHT |
Defines the key for the indicatorHeight style (in px).
|
static java.lang.String |
STYLE_INDICATOR_IMAGE |
Defines the key for the indicatorImage style.
|
static java.lang.String |
STYLE_INDICATOR_SHAPE |
Defines the key for the indicatorShape style.
|
static java.lang.String |
STYLE_INDICATOR_SPACING |
Defines the key for the indicatorSpacing style (in px).
|
static java.lang.String |
STYLE_INDICATOR_WIDTH |
Defines the key for the indicatorWidth style (in px).
|
static java.lang.String |
STYLE_LABEL_BACKGROUNDCOLOR |
Defines the key for the label background color.
|
static java.lang.String |
STYLE_LABEL_BORDERCOLOR |
Defines the key for the label border color.
|
static java.lang.String |
STYLE_LABEL_POSITION |
Defines the key for the horizontal label position of vertices.
|
static java.lang.String |
STYLE_LOOP |
Defines the key for the loop style.
|
static java.lang.String |
STYLE_MOVABLE |
Defines the key for the movable style.
|
static java.lang.String |
STYLE_NOEDGESTYLE |
Defines the key for the noEdgeStyle style.
|
static java.lang.String |
STYLE_NOLABEL |
Defines the key for the noLabel style.
|
static java.lang.String |
STYLE_OPACITY |
Defines the key for the opacity style.
|
static java.lang.String |
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.
|
static java.lang.String |
STYLE_OVERFLOW |
Defines the key for the overflow style.
|
static java.lang.String |
STYLE_PERIMETER |
Defines the key for the perimeter style.
|
static java.lang.String |
STYLE_PERIMETER_SPACING |
Defines the key for the perimeter spacing.
|
static java.lang.String |
STYLE_PORT_CONSTRAINT |
Defines the direction(s) that edges are allowed to connect to cells in.
|
static java.lang.String |
STYLE_RESIZABLE |
Defines the key for the resizable style.
|
static java.lang.String |
STYLE_ROTATION |
Defines the key for the rotation style.
|
static java.lang.String |
STYLE_ROUNDED |
Defines the key for the rounded style.
|
static java.lang.String |
STYLE_ROUTING_CENTER_X |
Defines the key for the horizontal routing center.
|
static java.lang.String |
STYLE_ROUTING_CENTER_Y |
Defines the key for the vertical routing center.
|
static java.lang.String |
STYLE_SEGMENT |
Defines the key for the segment style.
|
static java.lang.String |
STYLE_SEPARATORCOLOR |
Defines the key for the separatorColor style.
|
static java.lang.String |
STYLE_SHADOW |
Defines the key for the shadow style.
|
static java.lang.String |
STYLE_SHAPE |
Defines the key for the shape style.
|
static java.lang.String |
STYLE_SOURCE_PERIMETER_SPACING |
Defines the key for the source perimeter spacing.
|
static java.lang.String |
STYLE_SOURCE_PORT |
Defines the ID of the cell that should be used for computing the
perimeter point of the source for an edge.
|
static java.lang.String |
STYLE_SPACING |
Defines the key for the spacing.
|
static java.lang.String |
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).
|
static java.lang.String |
STYLE_SPACING_LEFT |
Defines the key for the spacingLeft style.
|
static java.lang.String |
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).
|
static java.lang.String |
STYLE_SPACING_TOP |
Defines the key for the spacingTop style.
|
static java.lang.String |
STYLE_STARTARROW |
Defines the key for the startArrow style.
|
static java.lang.String |
STYLE_STARTFILL |
Defines the key for the startFill style.
|
static java.lang.String |
STYLE_STARTSIZE |
Defines the key for the startSize style.
|
static java.lang.String |
STYLE_STENCIL_FLIPH |
Defines the key for the horizontal stencil flip.
|
static java.lang.String |
STYLE_STENCIL_FLIPV |
Defines the key for the vertical stencil flip.
|
static java.lang.String |
STYLE_STROKE_OPACITY |
Defines the key for the stroke opacity style.
|
static java.lang.String |
STYLE_STROKECOLOR |
Defines the key for the strokeColor style.
|
static java.lang.String |
STYLE_STROKEWIDTH |
Defines the key for the strokeWidth style.
|
static java.lang.String |
STYLE_SWIMLANE_FILLCOLOR |
Defines the key for the fill color of the swimlane background.
|
static java.lang.String |
STYLE_SWIMLANE_LINE |
Defines the key for the swimlaneLine style.
|
static java.lang.String |
STYLE_TARGET_PERIMETER_SPACING |
Defines the key for the target perimeter spacing.
|
static java.lang.String |
STYLE_TARGET_PORT |
Defines the ID of the cell that should be used for computing the
perimeter point of the target for an edge.
|
static java.lang.String |
STYLE_TEXT_OPACITY |
Defines the key for the text opacity style.
|
static java.lang.String |
STYLE_VERTICAL_ALIGN |
Defines the key for the verticalAlign style.
|
static java.lang.String |
STYLE_VERTICAL_LABEL_POSITION |
Defines the key for the vertical label position of vertices.
|
static java.lang.String |
STYLE_WHITE_SPACE |
Defines the key for the white-space style.
|
static java.lang.String |
SVG_SHADOWTRANSFORM |
Defines the transformation used to draw shadows in SVG.
|
static java.lang.String |
W3C_SHADOWCOLOR |
Defines the color to be used to draw shadows in W3C standards.
|
Constructor | Description |
---|---|
mxConstants() |
public static double RAD_PER_DEG
public static double DEG_PER_RAD
public static double MIN_SCALE_FOR_ROUNDED_LINES
public static double DEFAULT_HOTSPOT
public static int MIN_HOTSPOT_SIZE
public static int MAX_HOTSPOT_SIZE
public static java.lang.String NS_SVG
public static java.lang.String NS_XHTML
public static java.lang.String NS_XLINK
public static java.lang.String DEFAULT_FONTFAMILIES
public static java.lang.String DEFAULT_FONTFAMILY
public static int DEFAULT_FONTSIZE
public static int DEFAULT_STARTSIZE
public static float LINE_HEIGHT
public static boolean ABSOLUTE_LINE_HEIGHT
public static int LINESPACING
public static boolean SPLIT_WORDS
public static int LABEL_INSET
public static double LABEL_SCALE_BUFFER
public static int DEFAULT_MARKERSIZE
public static int DEFAULT_IMAGESIZE
public static int STENCIL_SHADOW_OPACITY
public static java.lang.String STENCIL_SHADOWCOLOR
public static int SHADOW_OFFSETX
public static int SHADOW_OFFSETY
public static java.lang.String W3C_SHADOWCOLOR
public static java.lang.String SVG_SHADOWTRANSFORM
public static float[] DEFAULT_DASHED_PATTERN
public static double DEFAULT_LABEL_BUFFER
public static int HANDLE_SIZE
public static int LABEL_HANDLE_SIZE
public static boolean CONNECT_HANDLE_ENABLED
public static int CONNECT_HANDLE_SIZE
public static int ENTITY_SEGMENT
public static double RECTANGLE_ROUNDING_FACTOR
public static double LINE_ARCSIZE
public static int ARROW_SPACING
public static int ARROW_WIDTH
public static int ARROW_SIZE
public static java.lang.String NONE
public static java.lang.String STYLE_PERIMETER
mxPerimeterFunction
interface. Alternatively, the constants
in this class that start with PERIMETER_
may be used to
access perimeter styles in mxStyleRegistry
.public static java.lang.String STYLE_SOURCE_PORT
public static java.lang.String STYLE_TARGET_PORT
public static java.lang.String STYLE_PORT_CONSTRAINT
DIRECTION_NORTH, DIRECTION_SOUTH,
DIRECTION_EAST
and DIRECTION_WEST
.public static java.lang.String STYLE_OPACITY
float
and the possible range is 0-100.public static java.lang.String STYLE_FILL_OPACITY
float
and the possible range is 0-100.public static java.lang.String STYLE_STROKE_OPACITY
float
and the possible range is 0-100.public static java.lang.String STYLE_TEXT_OPACITY
float
and the possible range is 0-100.public static java.lang.String STYLE_OVERFLOW
mxGraph.isLabelClipped(Object)
public static java.lang.String STYLE_ORTHOGONAL
public static java.lang.String STYLE_EXIT_X
public static java.lang.String STYLE_EXIT_Y
public static java.lang.String STYLE_EXIT_PERIMETER
public static java.lang.String STYLE_ENTRY_X
public static java.lang.String STYLE_ENTRY_Y
public static java.lang.String STYLE_ENTRY_PERIMETER
public static java.lang.String STYLE_WHITE_SPACE
public static java.lang.String STYLE_ROTATION
double
and the possible range is 0-360.public static java.lang.String STYLE_SWIMLANE_FILLCOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_FILLCOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_GRADIENTCOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_GRADIENT_DIRECTION
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.public static java.lang.String STYLE_STROKECOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_SEPARATORCOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_STROKEWIDTH
float
and the possible range is any non-negative value.
The value reflects the stroke width in pixels.public static java.lang.String STYLE_ALIGN
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
.public static java.lang.String STYLE_VERTICAL_ALIGN
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
.public static java.lang.String STYLE_LABEL_POSITION
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
.public static java.lang.String STYLE_VERTICAL_LABEL_POSITION
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
.public static java.lang.String STYLE_IMAGE_ALIGN
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.public static java.lang.String STYLE_IMAGE_VERTICAL_ALIGN
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.public static java.lang.String STYLE_GLASS
public static java.lang.String STYLE_IMAGE
String
. 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.public static java.lang.String STYLE_IMAGE_WIDTH
int
, the value is the image width in pixels and must be
greated than 0.public static java.lang.String STYLE_IMAGE_HEIGHT
int
, the value is the image height in pixels and must be
greater than 0.public static java.lang.String STYLE_IMAGE_BACKGROUND
public static java.lang.String STYLE_IMAGE_BORDER
public static java.lang.String STYLE_IMAGE_FLIPH
public static java.lang.String STYLE_IMAGE_FLIPV
public static java.lang.String STYLE_STENCIL_FLIPH
public static java.lang.String STYLE_STENCIL_FLIPV
public static java.lang.String STYLE_FLIPH
public static java.lang.String STYLE_FLIPV
public static java.lang.String STYLE_NOLABEL
public static java.lang.String STYLE_NOEDGESTYLE
public static java.lang.String STYLE_LABEL_BACKGROUNDCOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_LABEL_BORDERCOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_INDICATOR_SHAPE
public static java.lang.String STYLE_INDICATOR_IMAGE
String
.public static java.lang.String STYLE_INDICATOR_COLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_INDICATOR_GRADIENTCOLOR
mxUtils.parseColor(String)
public static java.lang.String STYLE_INDICATOR_SPACING
public static java.lang.String STYLE_INDICATOR_WIDTH
public static java.lang.String STYLE_INDICATOR_HEIGHT
public static java.lang.String STYLE_SHADOW
boolean
. This style applies to vertices and arrow style
edges.public static java.lang.String STYLE_SEGMENT
float
and the value represents the size of the horizontal
segment of the entity relation style. Default is ENTITY_SEGMENT.public static java.lang.String STYLE_ENDARROW
mxConnector
shape.public static java.lang.String STYLE_STARTARROW
public static java.lang.String STYLE_ENDSIZE
float
and the value represents the size of the end
marker in pixels.public static java.lang.String STYLE_STARTSIZE
float
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.public static java.lang.String STYLE_SWIMLANE_LINE
public static java.lang.String STYLE_ENDFILL
public static java.lang.String STYLE_STARTFILL
public static java.lang.String STYLE_DASHED
boolean
and the value determines whether or not an edge or
border is drawn with a dashed pattern along the line.public static java.lang.String STYLE_DASH_PATTERN
float[]
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.public static java.lang.String STYLE_ROUNDED
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.public static java.lang.String STYLE_ARCSIZE
public static java.lang.String STYLE_SOURCE_PERIMETER_SPACING
double
. 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.public static java.lang.String STYLE_TARGET_PERIMETER_SPACING
double
. 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.public static java.lang.String STYLE_PERIMETER_SPACING
public static java.lang.String STYLE_SPACING
public static java.lang.String STYLE_SPACING_TOP
public static java.lang.String STYLE_SPACING_LEFT
public static java.lang.String STYLE_SPACING_BOTTOM
public static java.lang.String STYLE_SPACING_RIGHT
public static java.lang.String STYLE_HORIZONTAL
true
or false
. This value only applies to
vertices. If the STYLE_SHAPE
is SHAPE_SWIMLANE
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.public static java.lang.String STYLE_DIRECTION
mxTriangle
).
Possible values are DIRECTION_EAST
(default),
DIRECTION_WEST
, DIRECTION_NORTH
and
DIRECTION_SOUTH
. This value only applies to vertices.public static java.lang.String STYLE_ELBOW
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.public static java.lang.String STYLE_FONTCOLOR
String
and of the expression supported by
mxUtils.parseColor.mxUtils.parseColor(String)
public static java.lang.String STYLE_FONTFAMILY
String
.public static java.lang.String STYLE_FONTSIZE
int
.public static java.lang.String STYLE_FONTSTYLE
int
.public static java.lang.String STYLE_AUTOSIZE
public static java.lang.String STYLE_FOLDABLE
public static java.lang.String STYLE_EDITABLE
public static java.lang.String STYLE_BENDABLE
public static java.lang.String STYLE_MOVABLE
public static java.lang.String STYLE_RESIZABLE
public static java.lang.String STYLE_CLONEABLE
public static java.lang.String STYLE_DELETABLE
public static java.lang.String STYLE_SHAPE
public static java.lang.String STYLE_EDGE
public static java.lang.String STYLE_LOOP
public static java.lang.String STYLE_ROUTING_CENTER_X
float
.public static java.lang.String STYLE_ROUTING_CENTER_Y
float
.public static final int FONT_BOLD
public static final int FONT_ITALIC
public static final int FONT_UNDERLINE
public static final java.lang.String SHAPE_RECTANGLE
public static final java.lang.String SHAPE_ELLIPSE
public static final java.lang.String SHAPE_DOUBLE_RECTANGLE
public static final java.lang.String SHAPE_DOUBLE_ELLIPSE
public static final java.lang.String SHAPE_RHOMBUS
public static final java.lang.String SHAPE_LINE
public static final java.lang.String SHAPE_IMAGE
public static final java.lang.String SHAPE_ARROW
public static final java.lang.String SHAPE_CURVE
public static final java.lang.String SHAPE_LABEL
public static final java.lang.String SHAPE_CYLINDER
public static final java.lang.String SHAPE_SWIMLANE
public static final java.lang.String SHAPE_CONNECTOR
public static final java.lang.String SHAPE_ACTOR
public static final java.lang.String SHAPE_CLOUD
public static final java.lang.String SHAPE_TRIANGLE
public static final java.lang.String SHAPE_HEXAGON
public static final java.lang.String ARROW_CLASSIC
public static final java.lang.String ARROW_BLOCK
public static final java.lang.String ARROW_OPEN
public static final java.lang.String ARROW_OVAL
public static final java.lang.String ARROW_DIAMOND
public static final java.lang.String ALIGN_LEFT
public static final java.lang.String ALIGN_CENTER
public static final java.lang.String ALIGN_RIGHT
public static final java.lang.String ALIGN_TOP
public static final java.lang.String ALIGN_MIDDLE
public static final java.lang.String ALIGN_BOTTOM
public static final java.lang.String DIRECTION_NORTH
public static final java.lang.String DIRECTION_SOUTH
public static final java.lang.String DIRECTION_EAST
public static final java.lang.String DIRECTION_WEST
public static final int DIRECTION_MASK_NONE
public static final int DIRECTION_MASK_WEST
public static final int DIRECTION_MASK_NORTH
public static final int DIRECTION_MASK_SOUTH
public static final int DIRECTION_MASK_EAST
public static final int DIRECTION_MASK_ALL
public static final java.lang.String ELBOW_VERTICAL
public static final java.lang.String ELBOW_HORIZONTAL
public static final java.lang.String EDGESTYLE_ELBOW
public static final java.lang.String EDGESTYLE_ENTITY_RELATION
public static final java.lang.String EDGESTYLE_LOOP
public static final java.lang.String EDGESTYLE_SIDETOSIDE
public static final java.lang.String EDGESTYLE_TOPTOBOTTOM
public static final java.lang.String EDGESTYLE_ORTHOGONAL
public static final java.lang.String EDGESTYLE_SEGMENT
public static final java.lang.String PERIMETER_ELLIPSE
public static final java.lang.String PERIMETER_RECTANGLE
public static final java.lang.String PERIMETER_RHOMBUS
public static final java.lang.String PERIMETER_TRIANGLE
public static final java.lang.String PERIMETER_HEXAGON
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.