Class CellConstants
java.lang.Object
org.jgraph.graph.GraphConstants
com.jgraph.components.labels.CellConstants
JGraphpad graph constants. Contains special constants supported by the
renderers or other functionality.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey for thestretchImageattribute.static final StringKey for thevertexShapeattribute.Fields inherited from class GraphConstants
ABSOLUTEX, ABSOLUTEY, ARROW_CIRCLE, ARROW_CLASSIC, ARROW_DIAMOND, ARROW_DOUBLELINE, ARROW_LINE, ARROW_NONE, ARROW_SIMPLE, ARROW_TECHNICAL, AUTOSIZE, BACKGROUND, BEGINFILL, BEGINSIZE, BENDABLE, BORDER, BORDERCOLOR, BOUNDS, CHILDRENSELECTABLE, CONNECTABLE, CONSTRAINED, dash, DASHOFFSET, DASHPATTERN, DEFAULTDECORATIONSIZE, DEFAULTFONT, DEFAULTINSET, DISCONNECTABLE, EDITABLE, ENDFILL, ENDSIZE, EXACTSEGMENTRELATIVE, EXTRALABELPOSITIONS, EXTRALABELS, FONT, FOREGROUND, GRADIENTCOLOR, GROUPOPAQUE, HORIZONTAL_ALIGNMENT, HORIZONTAL_TEXT_POSITION, ICON, INSET, LABELALONGEDGE, LABELENABLED, LABELPOSITION, LINEBEGIN, LINECOLOR, LINEEND, LINESTYLE, LINEWIDTH, LINK, MOVEABLE, MOVEABLEAXIS, MOVEHIDDENCHILDREN, OFFSET, OPAQUE, PERMILLE, POINTS, REMOVEALL, REMOVEATTRIBUTES, REPLACEATTRIBUTES, RESIZE, ROUTING, ROUTING_DEFAULT, ROUTING_SIMPLE, SELECTABLE, SELECTION_STROKE, SIZE, SIZEABLE, SIZEABLEAXIS, STYLE_BEZIER, STYLE_ORTHOGONAL, STYLE_SPLINE, VALUE, VERTICAL_ALIGNMENT, VERTICAL_TEXT_POSITION, X_AXIS, Y_AXIS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final intgetVertexShape(Map map) Returns vertexShape from the specified map.static final booleanisStretchImage(Map map) Returns true if stretchImage in this map is true.static final voidsetStretchImage(Map map, boolean stretchImage) Sets stretchImage in the specified map to the specified value.static final voidsetVertexShape(Map map, int shape) Sets vertexShape in the specified map to the specified value.Methods inherited from class GraphConstants
createAttributes, createAttributes, createAttributes, createAttributes, createAttributesFromModel, getBackground, getBeginSize, getBorder, getBorderColor, getBounds, getDashOffset, getDashPattern, getEndSize, getExtraLabelPositions, getExtraLabels, getFont, getForeground, getGradientColor, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getInset, getLabelPosition, getLineBegin, getLineColor, getLineEnd, getLineStyle, getLineWidth, getLink, getMoveableAxis, getOffset, getPoints, getRemoveAttributes, getRouting, getROUTING_DEFAULT, getROUTING_SIMPLE, getSize, getSizeableAxis, getValue, getVerticalAlignment, getVerticalTextPosition, isAbsoluteX, isAbsoluteY, isAutoSize, isBeginFill, isBendable, isChildrenSelectable, isConnectable, isConstrained, isDisconnectable, isEditable, isEndFill, isExactSegmentLabel, isGroupOpaque, isLabelAlongEdge, isLabelEnabled, isMoveable, isOpaque, isRemoveAll, isResize, isSelectable, isSizeable, merge, replaceKeys, setAbsolute, setAbsoluteX, setAbsoluteY, setAutoSize, setBackground, setBeginFill, setBeginSize, setBendable, setBorder, setBorderColor, setBounds, setChildrenSelectable, setConnectable, setConstrained, setDashOffset, setDashPattern, setDisconnectable, setEditable, setEndFill, setEndSize, setExactSegmentLabel, setExtraLabelPositions, setExtraLabels, setFont, setForeground, setGradientColor, setGroupOpaque, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setInset, setLabelAlongEdge, setLabelEnabled, setLabelPosition, setLineBegin, setLineColor, setLineEnd, setLineStyle, setLineWidth, setLink, setMoveable, setMoveableAxis, setOffset, setOpaque, setPoints, setRemoveAll, setRemoveAttributes, setResize, setRouting, setSelectable, setSize, setSizeable, setSizeableAxis, setValue, setVerticalAlignment, setVerticalTextPosition
-
Field Details
-
STRETCHIMAGE
Key for thestretchImageattribute. This special attribute contains a Boolean instance indicating whether the background image should be stretched.- See Also:
-
VERTEXSHAPE
Key for thevertexShapeattribute. This special attribute contains an Integer instance indicating which shape should be drawn by the renderer.- See Also:
-
-
Constructor Details
-
CellConstants
public CellConstants()
-
-
Method Details
-
isStretchImage
Returns true if stretchImage in this map is true. Default is false. -
setStretchImage
Sets stretchImage in the specified map to the specified value. -
setVertexShape
Sets vertexShape in the specified map to the specified value. -
getVertexShape
Returns vertexShape from the specified map.
-