Package org.jgraph.graph
Class GraphConstants
- java.lang.Object
-
- org.jgraph.graph.GraphConstants
-
public class GraphConstants extends java.lang.Object
A collection of well known or common attribute keys and methods to apply to an Map to get/set the properties in a typesafe manner. The following attributes and methods need special attention: removeAttributes, removeAll and value. RemoveAttributes and RemoveAll are not stored in a map, but remove the specified entries. The value entry of a propertyMap is always in sync with the userObject of a GraphCell. The isMoveable, isAutoSize and isSizeable are used indepedently (see http://sourceforge.net/forum/forum.php?thread_id=770111&forum_id=140880)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ABSOLUTEX
Key for theabsoluteX
attribute.static java.lang.String
ABSOLUTEY
Key for theabsoluteY
attribute.static int
ARROW_CIRCLE
Represents a circle decoration for the beginning or ending of edges.static int
ARROW_CLASSIC
Represents a classic arrow decoration for the beginning or ending of edges.static int
ARROW_DIAMOND
Represents a diamond decoration for the beginning or ending of edges.static int
ARROW_DOUBLELINE
Represents a double line decoration for the beginning or ending of edges.static int
ARROW_LINE
Represents a line decoration for the beginning or ending of edges.static int
ARROW_NONE
Represents no decoration for the beginning or ending of edges.static int
ARROW_SIMPLE
Represents a simple arrow decoration for the beginning or ending of edges.static int
ARROW_TECHNICAL
Represents a technical arrow decoration for the beginning or ending of edges.static java.lang.String
AUTOSIZE
Key for theautosize
attribute.static java.lang.String
BACKGROUND
Key for thebackground
attribute.static java.lang.String
BEGINFILL
Key for thebeginFill
attribute.static java.lang.String
BEGINSIZE
Key for thebeginSize
attribute.static java.lang.String
BENDABLE
Key for thebendable
attribute.static java.lang.String
BORDER
Key for theborder
attribute.static java.lang.String
BORDERCOLOR
Key for thebordercolor
attribute.static java.lang.String
BOUNDS
Key for thebounds
attribute.static java.lang.String
CHILDRENSELECTABLE
Key for thechildrenSelectable
attribute.static java.lang.String
CONNECTABLE
Key for theconnectable
attribute.static java.lang.String
CONSTRAINED
Key for theconstrained
attribute.protected static float[]
dash
Global Stroke To Highlight Selectionstatic java.lang.String
DASHOFFSET
Key for thedashOffset
attribute.static java.lang.String
DASHPATTERN
Key for thedashPattern
attribute.static int
DEFAULTDECORATIONSIZE
Default decoration size.static java.awt.Font
DEFAULTFONT
Default font is derived from UIManager.getDefaults().getFont("Label.font")static int
DEFAULTINSET
Default inset size.static java.lang.String
DISCONNECTABLE
Key for thedisconnectable
attribute.static java.lang.String
EDITABLE
Key for theeditable
attribute.static java.lang.String
ENDFILL
Key for theendFill
attribute.static java.lang.String
ENDSIZE
Key for theendSize
attribute.static java.lang.String
EXTRALABELPOSITIONS
Key for theextraLabelPositions
attribute.static java.lang.String
EXTRALABELS
Key for theextraLabels
attribute.static java.lang.String
FONT
Key for thefont
attribute.static java.lang.String
FOREGROUND
Key for theforeground
attribute.static java.lang.String
GRADIENTCOLOR
Key for thegradient
attribute.static java.lang.String
GROUPOPAQUE
Key for thegroupOpaque
attribute.static java.lang.String
HORIZONTAL_ALIGNMENT
Key for thehorizontalAlignment
attribute.static java.lang.String
HORIZONTAL_TEXT_POSITION
Key for thehorizontalTextPosition
attribute.static java.lang.String
ICON
Key for theicon
attribute.static java.lang.String
INSET
Key for theinset
attribute.static java.lang.String
LABELALONGEDGE
Key for thelabelAlongEdge
attribute.static java.lang.String
LABELPOSITION
Key for thelabelposition
attribute.static java.lang.String
LINEBEGIN
Key for thelineBegin
attribute.static java.lang.String
LINECOLOR
Key for thelinecolor
attribute.static java.lang.String
LINEEND
Key for thelineEnd
attribute.static java.lang.String
LINESTYLE
Key for thelineStyle
attribute.static java.lang.String
LINEWIDTH
Key for thelinewidth
attribute.static java.lang.String
LINK
Key for thelink
attribute.static java.lang.String
MOVEABLE
Key for themoveable
attribute.static java.lang.String
MOVEABLEAXIS
Key for themoveableAxis
attribute.static java.lang.String
MOVEHIDDENCHILDREN
Key for thechildrenSelectable
attribute.static java.lang.String
OFFSET
Key for theoffset
attribute.static java.lang.String
OPAQUE
Key for theopaque
attribute.static int
PERMILLE
100 percent unit for relative positioning.static java.lang.String
POINTS
Key for thepoints
attribute.static java.lang.String
REMOVEALL
Key for theremoveAll
attribute.static java.lang.String
REMOVEATTRIBUTES
Key for theremoveAttributes
attribute.static java.lang.String
REPLACEATTRIBUTES
Key for thereplaceAttributes
attribute.static java.lang.String
RESIZE
Key for theresize
attribute.static java.lang.String
ROUTING
Key for therouting
attribute.static Edge.Routing
ROUTING_DEFAULT
The default routing that deals with loops.static Edge.Routing
ROUTING_SIMPLE
A simple routing.static java.lang.String
SELECTABLE
Key for theselectable
attribute.static java.awt.Stroke
SELECTION_STROKE
static java.lang.String
SIZE
Key for thesize
attribute.static java.lang.String
SIZEABLE
Key for thesizeable
attribute.static java.lang.String
SIZEABLEAXIS
Key for thesizeableAxis
attribute.static int
STYLE_BEZIER
Represents a bezier line stylestatic int
STYLE_ORTHOGONAL
Represents an orthogonal line stylestatic int
STYLE_SPLINE
Represents an spline line stylestatic java.lang.String
VALUE
Key for thevalue
attribute.static java.lang.String
VERTICAL_ALIGNMENT
Key for theverticalAlignment
attribute.static java.lang.String
VERTICAL_TEXT_POSITION
Key for theverticalTextPosition
attribute.static int
X_AXIS
Represents an bezier line stylestatic int
Y_AXIS
Represents an bezier line style
-
Constructor Summary
Constructors Constructor Description GraphConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map
createAttributes(java.lang.Object[] cells, java.lang.Object[] keys, java.lang.Object[] values)
Returns a new (nested) map, from cells to attribute maps.static java.util.Map
createAttributes(java.lang.Object[] cells, java.lang.Object key, java.lang.Object value)
Overloaded method that passes arguments on as arraysstatic java.util.Map
createAttributes(java.lang.Object[] elements, CellMapper cm)
Returns a new map, from cells to property maps.static java.util.Map
createAttributes(java.lang.Object cell, java.lang.Object key, java.lang.Object value)
Overloaded method that passes arguments on as arraysstatic java.util.Map
createAttributesFromModel(java.lang.Object[] elements, GraphModel model)
static java.awt.Color
getBackground(java.util.Map map)
Returns the background attribute from the specified map.static int
getBeginSize(java.util.Map map)
Returns the beginsize attribute from the specified map.static javax.swing.border.Border
getBorder(java.util.Map map)
Returns the border attribute from the specified map.static java.awt.Color
getBorderColor(java.util.Map map)
Returns the bordercolor attribute from the specified map.static java.awt.geom.Rectangle2D
getBounds(java.util.Map map)
Returns the bounds attribute from the specified map.static float
getDashOffset(java.util.Map map)
Returns the dashoffset attribute from the specified map.static float[]
getDashPattern(java.util.Map map)
Returns the dashpattern attribute from the specified map.static int
getEndSize(java.util.Map map)
Returns the endsize attribute from the specified map.static java.awt.geom.Point2D[]
getExtraLabelPositions(java.util.Map map)
Returns the extralabelpositions attribute from the specified map.static java.lang.Object[]
getExtraLabels(java.util.Map map)
Returns the additional label objects from the specified map.Extra labels only work with edges currently.static java.awt.Font
getFont(java.util.Map map)
Returns the font for the specified attribute map.static java.awt.Color
getForeground(java.util.Map map)
Returns the foreground attribute from the specified map.static java.awt.Color
getGradientColor(java.util.Map map)
Returns the gradientcolor attribute from the specified map.static int
getHorizontalAlignment(java.util.Map map)
Returns the horizontalalignment attribute from the specified map.static int
getHorizontalTextPosition(java.util.Map map)
Returns the horizontaltextposition attribute from the specified map.static javax.swing.Icon
getIcon(java.util.Map map)
Returns the icon attribute from the specified map.static int
getInset(java.util.Map map)
Returns the inset attribute from the specified map.static java.awt.geom.Point2D
getLabelPosition(java.util.Map map)
Returns the label position attribute from the specified map.static int
getLineBegin(java.util.Map map)
Returns the LINEBEGIN attribute from the specified map.static java.awt.Color
getLineColor(java.util.Map map)
Returns the linecolor attribute from the specified map.static int
getLineEnd(java.util.Map map)
Returns the LINEEND attribute from the specified map.static int
getLineStyle(java.util.Map map)
Returns the linestyle attribute from the specified map.static float
getLineWidth(java.util.Map map)
Returns the linewidth attribute from the specified map.static java.lang.String
getLink(java.util.Map map)
Returns the link for the specified attribute map.static int
getMoveableAxis(java.util.Map map)
Returns the moveableaxis attribute from the specified map.static java.awt.geom.Point2D
getOffset(java.util.Map map)
Returns the offset attribute from the specified map.static java.util.List
getPoints(java.util.Map map)
Returns the points attribute from the specified map.static java.lang.Object[]
getRemoveAttributes(java.util.Map map)
Returns the attribute marked as for removal in the specified map.static Edge.Routing
getRouting(java.util.Map map)
Returns the routing attribute from the specified map.static Edge.Routing
getROUTING_DEFAULT()
static Edge.Routing
getROUTING_SIMPLE()
static java.awt.Dimension
getSize(java.util.Map map)
Returns the size attribute from the specified map.static int
getSizeableAxis(java.util.Map map)
Returns the sizeableAxis attribute from the specified map.static java.lang.Object
getValue(java.util.Map map)
Returns the value attribute from the specified map.static int
getVerticalAlignment(java.util.Map map)
Returns the verticalalignment attribute from the specified map.static int
getVerticalTextPosition(java.util.Map map)
Returns the verticaltextposition attribute from the specified map.static boolean
isAbsoluteX(java.util.Map map)
Returns the absolutex attribute from the specified map.static boolean
isAbsoluteY(java.util.Map map)
Returns the absolutey attribute from the specified map.static boolean
isAutoSize(java.util.Map map)
Returns the autosize attribute from the specified map.static boolean
isBeginFill(java.util.Map map)
Returns the beginfill attribute from the specified map.static boolean
isBendable(java.util.Map map)
Returns the bendable attribute from the specified map.static boolean
isChildrenSelectable(java.util.Map map)
Returns the childrenselectable attribute from the specified map.static boolean
isConnectable(java.util.Map map)
Returns the connectable attribute from the specified map.static boolean
isConstrained(java.util.Map map)
Returns the constrained attribute from the specified map.static boolean
isDisconnectable(java.util.Map map)
Returns the disconnectable attribute from the specified map.static boolean
isEditable(java.util.Map map)
Returns the editable attribute from the specified map.static boolean
isEndFill(java.util.Map map)
Returns the endfill attribute from the specified map.static boolean
isGroupOpaque(java.util.Map map)
Returns the opaque attribute from the specified map.static boolean
isLabelAlongEdge(java.util.Map map)
Returns the true if the label should be painted along the edge.static boolean
isMoveable(java.util.Map map)
Returns the moveable attribute from the specified map.static boolean
isOpaque(java.util.Map map)
Returns the opaque attribute from the specified map.static boolean
isRemoveAll(java.util.Map map)
Returns the removeall attribute from the specified map.static boolean
isResize(java.util.Map map)
Returns the resize attribute from the specified map.static boolean
isSelectable(java.util.Map map)
Returns the selectable attribute from the specified map.static boolean
isSizeable(java.util.Map map)
Returns the sizeable attribute from the specified map.static java.util.Map
merge(java.util.Map change, java.util.Map target)
Merges the specified nested maps by adding all attributes in the change to the attributes for the cell in target, if the cell does not exist in target, then a new entry is added with all attributes from change.static java.util.Map
replaceKeys(java.util.Map keyMap, java.util.Map map)
Replace the keys inmap
usingkeyMap
static void
setAbsolute(java.util.Map map, boolean flag)
Sets the absolute attributes in the specified map to the specified value.static void
setAbsoluteX(java.util.Map map, boolean flag)
Sets the absolutex attribute in the specified map to the specified value.static void
setAbsoluteY(java.util.Map map, boolean flag)
Sets the absolutey attribute in the specified map to the specified value.static void
setAutoSize(java.util.Map map, boolean flag)
Sets the autosize attribute in the specified map to the specified value.static void
setBackground(java.util.Map map, java.awt.Color value)
Sets the background attribute in the specified map to the specified value.static void
setBeginFill(java.util.Map map, boolean flag)
Sets the beginfill attribute in the specified map to the specified value.static void
setBeginSize(java.util.Map map, int style)
Sets the beginsize attribute in the specified map to the specified value.static void
setBendable(java.util.Map map, boolean flag)
Sets the bendable attribute in the specified map to the specified value.static void
setBorder(java.util.Map map, javax.swing.border.Border value)
Sets the border attribute in the specified map to the specified value.static void
setBorderColor(java.util.Map map, java.awt.Color value)
Sets the bordercolor attribute in the specified map to the specified value.static void
setBounds(java.util.Map map, java.awt.geom.Rectangle2D bounds)
Sets the bounds attribute in the specified map to the specified value.static void
setChildrenSelectable(java.util.Map map, boolean flag)
Sets the childrenselectable attribute in the specified map to the specified value.static void
setConnectable(java.util.Map map, boolean flag)
Sets the connectable attribute in the specified map to the specified value.static void
setConstrained(java.util.Map map, boolean flag)
Sets the constrained attribute in the specified map to the specified value.static void
setDashOffset(java.util.Map map, float value)
Sets the dashoffset attribute in the specified map to the specified value.static void
setDashPattern(java.util.Map map, float[] value)
Sets the dashpattern attribute in the specified map to the specified value.static void
setDisconnectable(java.util.Map map, boolean flag)
Sets the disconnectable attribute in the specified map to the specified value.static void
setEditable(java.util.Map map, boolean flag)
Sets the editable attribute in the specified map to the specified value.static void
setEndFill(java.util.Map map, boolean flag)
Sets the endfill attribute in the specified map to the specified value.static void
setEndSize(java.util.Map map, int style)
Sets the endsize attribute in the specified map to the specified value.static void
setExtraLabelPositions(java.util.Map map, java.awt.geom.Point2D[] positions)
Sets the labelpositions attribute in the specified map to the specified value.static void
setExtraLabels(java.util.Map map, java.lang.Object[] definitions)
Sets the array of additional labels.static void
setFont(java.util.Map map, java.awt.Font font)
Sets the value attribute in the specified map to the specified font value.static void
setForeground(java.util.Map map, java.awt.Color value)
Sets the foregrund attribute in the specified map to the specified value.static void
setGradientColor(java.util.Map map, java.awt.Color value)
Sets the gradientcolor attribute in the specified map to the specified value.static void
setGroupOpaque(java.util.Map map, boolean flag)
Sets the opaque attribute in the specified map to the specified value.static void
setHorizontalAlignment(java.util.Map map, int alignment)
This method set the position of the label in vertex cells, and takes aruguments of type SwingConstants (for JLabel) i.e.static void
setHorizontalTextPosition(java.util.Map map, int textPosition)
This method set the text of a label on vertext cell relative to image.static void
setIcon(java.util.Map map, javax.swing.Icon value)
Sets the icon attribute in the specified map to the specified value.static void
setInset(java.util.Map map, int width)
Sets the inset attribute in the specified map to the specified value.static void
setLabelAlongEdge(java.util.Map map, boolean flag)
Sets if the label should be painted along the edge.static void
setLabelPosition(java.util.Map map, java.awt.geom.Point2D position)
Sets the label position attribute in the specified map to the specified value.static void
setLineBegin(java.util.Map map, int style)
Sets the LINEBEGIN attribute in the specified map to the specified value.static void
setLineColor(java.util.Map map, java.awt.Color value)
Sets the linecolor attribute in the specified map to the specified value.static void
setLineEnd(java.util.Map map, int style)
Sets the LINEEND attribute in the specified map to the specified value.static void
setLineStyle(java.util.Map map, int style)
Sets the linestyle attribute in the specified map to the specified value.static void
setLineWidth(java.util.Map map, float width)
Sets the linewidth attribute in the specified map to the specified value.static void
setLink(java.util.Map map, java.lang.String link)
Sets the link attribute in the specified map to the specified value.static void
setMoveable(java.util.Map map, boolean flag)
Sets the moveable attribute in the specified map to the specified value.static void
setMoveableAxis(java.util.Map map, int axis)
Sets the moveableaxis attribute in the specified map to the specified value.static void
setOffset(java.util.Map map, java.awt.geom.Point2D offset)
Sets the offset attribute in the specified map to the specified value.static void
setOpaque(java.util.Map map, boolean flag)
Sets the opaque attribute in the specified map to the specified value.static void
setPoints(java.util.Map map, java.util.List list)
Sets the points attribute in the specified map to the specified value.static void
setRemoveAll(java.util.Map map, boolean flag)
Sets the removeall attribute in the specified map to the specified value.static void
setRemoveAttributes(java.util.Map map, java.lang.Object[] value)
Sets specific attributes are being marked for removal @ param map The transport map indicating the attribute removal @ param value The attributes to be removedstatic void
setResize(java.util.Map map, boolean flag)
Sets the resize attribute in the specified map to the specified value.static void
setRouting(java.util.Map map, Edge.Routing routing)
Sets the routing attribute in the specified map to the specified value.static void
setSelectable(java.util.Map map, boolean flag)
Sets the selectable attribute in the specified map to the specified value.static void
setSize(java.util.Map map, java.awt.Dimension size)
Sets the size attribute in the specified map to the specified value.static void
setSizeable(java.util.Map map, boolean flag)
Sets the sizeable attribute in the specified map to the specified value.static void
setSizeableAxis(java.util.Map map, int axis)
Sets the sizeableAxis attribute in the specified map to the specified value.static void
setValue(java.util.Map map, java.lang.Object value)
Sets the value attribute in the specified map to the specified value.static void
setVerticalAlignment(java.util.Map map, int alignment)
This method set the position of the label in vertex cells, and takes aruguments of type SwingConstants (for JLabel) i.e.static void
setVerticalTextPosition(java.util.Map map, int textPosition)
This method set the text of a label on vertext cell relative to image.
-
-
-
Field Detail
-
DEFAULTFONT
public static java.awt.Font DEFAULTFONT
Default font is derived from UIManager.getDefaults().getFont("Label.font")
-
DEFAULTDECORATIONSIZE
public static int DEFAULTDECORATIONSIZE
Default decoration size. Value is 0.
-
DEFAULTINSET
public static int DEFAULTINSET
Default inset size. Value is 0.
-
PERMILLE
public static final int PERMILLE
100 percent unit for relative positioning. Current value is 1000.- See Also:
- Constant Field Values
-
dash
protected static float[] dash
Global Stroke To Highlight Selection
-
SELECTION_STROKE
public static java.awt.Stroke SELECTION_STROKE
-
ARROW_NONE
public static final int ARROW_NONE
Represents no decoration for the beginning or ending of edges.
-
ARROW_CLASSIC
public static final int ARROW_CLASSIC
Represents a classic arrow decoration for the beginning or ending of edges.
-
ARROW_TECHNICAL
public static final int ARROW_TECHNICAL
Represents a technical arrow decoration for the beginning or ending of edges.
-
ARROW_SIMPLE
public static final int ARROW_SIMPLE
Represents a simple arrow decoration for the beginning or ending of edges.
-
ARROW_CIRCLE
public static final int ARROW_CIRCLE
Represents a circle decoration for the beginning or ending of edges.
-
ARROW_LINE
public static final int ARROW_LINE
Represents a line decoration for the beginning or ending of edges.
-
ARROW_DOUBLELINE
public static final int ARROW_DOUBLELINE
Represents a double line decoration for the beginning or ending of edges.
-
ARROW_DIAMOND
public static final int ARROW_DIAMOND
Represents a diamond decoration for the beginning or ending of edges.
-
STYLE_ORTHOGONAL
public static final int STYLE_ORTHOGONAL
Represents an orthogonal line style- See Also:
- Constant Field Values
-
STYLE_BEZIER
public static final int STYLE_BEZIER
Represents a bezier line style- See Also:
- Constant Field Values
-
STYLE_SPLINE
public static final int STYLE_SPLINE
Represents an spline line style- See Also:
- Constant Field Values
-
X_AXIS
public static final int X_AXIS
Represents an bezier line style- See Also:
- Constant Field Values
-
Y_AXIS
public static final int Y_AXIS
Represents an bezier line style- See Also:
- Constant Field Values
-
ROUTING_DEFAULT
public static Edge.Routing ROUTING_DEFAULT
The default routing that deals with loops. This is returned bygetRouting(Map)
if there is no routing assigned.
-
ROUTING_SIMPLE
public static final Edge.Routing ROUTING_SIMPLE
A simple routing.
-
SIZEABLEAXIS
public static final java.lang.String SIZEABLEAXIS
Key for thesizeableAxis
attribute. This attribute contains an Integer value representing which axis of a cell may be resized/scaled Constants defined in this class.- See Also:
- Constant Field Values
-
MOVEABLEAXIS
public static final java.lang.String MOVEABLEAXIS
Key for themoveableAxis
attribute. This attribute contains an Integer value indicating along which axis a cell may be moved. Constants defined in this class.- See Also:
- Constant Field Values
-
REPLACEATTRIBUTES
public static final java.lang.String REPLACEATTRIBUTES
Key for thereplaceAttributes
attribute. This special attribute contains a Boolean instance indicating whether a map of attributes should replace the attributes of the receiving view.- See Also:
- Constant Field Values
-
REMOVEATTRIBUTES
public static final java.lang.String REMOVEATTRIBUTES
Key for theremoveAttributes
attribute. This special attribute contains a list of attribute-keys which should be removed at the receiving views.- See Also:
- Constant Field Values
-
REMOVEALL
public static final java.lang.String REMOVEALL
Key for theremoveAll
attribute. This causes the receivers attributes to be replaced by the the map that contains this attribute.- See Also:
- Constant Field Values
-
ICON
public static final java.lang.String ICON
Key for theicon
attribute. Use instances of Icon as values for this key.- See Also:
- Constant Field Values
-
FONT
public static final java.lang.String FONT
Key for thefont
attribute. Use instances of Font as values for this key.- See Also:
- Constant Field Values
-
OPAQUE
public static final java.lang.String OPAQUE
Key for theopaque
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
GROUPOPAQUE
public static final java.lang.String GROUPOPAQUE
Key for thegroupOpaque
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
BORDER
public static final java.lang.String BORDER
Key for theborder
attribute. Use instances of Border as values for this key. Optionally, you can set the global instance of LineBorder.- See Also:
- Constant Field Values
-
LINECOLOR
public static final java.lang.String LINECOLOR
Key for thelinecolor
attribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
BORDERCOLOR
public static final java.lang.String BORDERCOLOR
Key for thebordercolor
attribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
LINEWIDTH
public static final java.lang.String LINEWIDTH
Key for thelinewidth
attribute. Use instances of Float as values for this key.- See Also:
- Constant Field Values
-
FOREGROUND
public static final java.lang.String FOREGROUND
Key for theforeground
attribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
BACKGROUND
public static final java.lang.String BACKGROUND
Key for thebackground
attribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
GRADIENTCOLOR
public static final java.lang.String GRADIENTCOLOR
Key for thegradient
attribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
VERTICAL_ALIGNMENT
public static final java.lang.String VERTICAL_ALIGNMENT
Key for theverticalAlignment
attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This key value pair is for placment of label on vertex cell. Valid values would be JLabel.TOP, JLabel.CENTER, JLABEL.BOTTOM- See Also:
- Constant Field Values
-
HORIZONTAL_ALIGNMENT
public static final java.lang.String HORIZONTAL_ALIGNMENT
Key for thehorizontalAlignment
attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This Key/Value pair is for placment of label on vertex cell. Valid values would be JLabel.LEFT, JLabel.CENTER, JLabel.RIGHT- See Also:
- Constant Field Values
-
VERTICAL_TEXT_POSITION
public static final java.lang.String VERTICAL_TEXT_POSITION
Key for theverticalTextPosition
attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This Key/Value pair affects text postion of label on vertex cell relative to image, the value is of type SwingConstant.- See Also:
- Constant Field Values
-
HORIZONTAL_TEXT_POSITION
public static final java.lang.String HORIZONTAL_TEXT_POSITION
Key for thehorizontalTextPosition
attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This Key/Value pair affects text postion of label on vertex cell relative to image, the value is of type SwingConstant.- See Also:
- Constant Field Values
-
DASHPATTERN
public static final java.lang.String DASHPATTERN
Key for thedashPattern
attribute. Use instances of float[] as values for this key.- See Also:
- Constant Field Values
-
DASHOFFSET
public static final java.lang.String DASHOFFSET
Key for thedashOffset
attribute. Use instances of float as values for this key.- See Also:
- Constant Field Values
-
LINESTYLE
public static final java.lang.String LINESTYLE
Key for thelineStyle
attribute. Use instances of Integer as values for this key. Constants defined in this class.- See Also:
- Constant Field Values
-
LINEBEGIN
public static final java.lang.String LINEBEGIN
Key for thelineBegin
attribute. Use instances of Integer as values for this key. Constants defined in this class.- See Also:
- Constant Field Values
-
LINEEND
public static final java.lang.String LINEEND
Key for thelineEnd
attribute. Use instances of Integer as values for this key. Constants defined in this class.- See Also:
- Constant Field Values
-
BEGINSIZE
public static final java.lang.String BEGINSIZE
Key for thebeginSize
attribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
ENDSIZE
public static final java.lang.String ENDSIZE
Key for theendSize
attribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
BEGINFILL
public static final java.lang.String BEGINFILL
Key for thebeginFill
attribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
ENDFILL
public static final java.lang.String ENDFILL
Key for theendFill
attribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
VALUE
public static final java.lang.String VALUE
Key for thevalue
attribute. You can use any Object as a value for this key.- See Also:
- Constant Field Values
-
EDITABLE
public static final java.lang.String EDITABLE
Key for theeditable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
MOVEABLE
public static final java.lang.String MOVEABLE
Key for themoveable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
SIZEABLE
public static final java.lang.String SIZEABLE
Key for thesizeable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
AUTOSIZE
public static final java.lang.String AUTOSIZE
Key for theautosize
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
RESIZE
public static final java.lang.String RESIZE
Key for theresize
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
INSET
public static final java.lang.String INSET
Key for theinset
attribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
CONSTRAINED
public static final java.lang.String CONSTRAINED
Key for theconstrained
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
SELECTABLE
public static final java.lang.String SELECTABLE
Key for theselectable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
CHILDRENSELECTABLE
public static final java.lang.String CHILDRENSELECTABLE
Key for thechildrenSelectable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
MOVEHIDDENCHILDREN
public static final java.lang.String MOVEHIDDENCHILDREN
Key for thechildrenSelectable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
BENDABLE
public static final java.lang.String BENDABLE
Key for thebendable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
CONNECTABLE
public static final java.lang.String CONNECTABLE
Key for theconnectable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
DISCONNECTABLE
public static final java.lang.String DISCONNECTABLE
Key for thedisconnectable
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
BOUNDS
public static final java.lang.String BOUNDS
Key for thebounds
attribute. Use instances of Rectangle as values for this key.- See Also:
- Constant Field Values
-
POINTS
public static final java.lang.String POINTS
Key for thepoints
attribute. Use instances of List as values for this key. The list should contain Point instances.- See Also:
- Constant Field Values
-
ROUTING
public static final java.lang.String ROUTING
Key for therouting
attribute. Use instances of EdgeView.EdgeRouter as values for this key.- See Also:
- Constant Field Values
-
LABELPOSITION
public static final java.lang.String LABELPOSITION
Key for thelabelposition
attribute. Use instances of Point as values for this key. This Key/Value pair is for position of text relative to edge cell, and has no effect on label in vertex cell.- See Also:
- Constant Field Values
-
EXTRALABELS
public static final java.lang.String EXTRALABELS
Key for theextraLabels
attribute. Use arrays of Objects as values for this key, where the toString() methods of the objects provide the label text value.- See Also:
- Constant Field Values
-
EXTRALABELPOSITIONS
public static final java.lang.String EXTRALABELPOSITIONS
Key for theextraLabelPositions
attribute. Use arrays of Points as values for this key.- See Also:
- Constant Field Values
-
LABELALONGEDGE
public static final java.lang.String LABELALONGEDGE
Key for thelabelAlongEdge
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
ABSOLUTEX
public static final java.lang.String ABSOLUTEX
Key for theabsoluteX
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
ABSOLUTEY
public static final java.lang.String ABSOLUTEY
Key for theabsoluteY
attribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
OFFSET
public static final java.lang.String OFFSET
Key for theoffset
attribute. Use instances of Point as values for this key.- See Also:
- Constant Field Values
-
SIZE
public static final java.lang.String SIZE
Key for thesize
attribute. Use instances of Dimension as values for this key.- See Also:
- Constant Field Values
-
LINK
public static final java.lang.String LINK
Key for thelink
attribute. Use instances of String as values for this key.- See Also:
- Constant Field Values
-
-
Method Detail
-
createAttributes
public static java.util.Map createAttributes(java.lang.Object cell, java.lang.Object key, java.lang.Object value)
Overloaded method that passes arguments on as arrays
-
createAttributes
public static java.util.Map createAttributes(java.lang.Object[] cells, java.lang.Object key, java.lang.Object value)
Overloaded method that passes arguments on as arrays
-
createAttributes
public static java.util.Map createAttributes(java.lang.Object[] cells, java.lang.Object[] keys, java.lang.Object[] values)
Returns a new (nested) map, from cells to attribute maps. The attributes are populated with the (key, value)-pairs specified by the two given arrays. Thekeys
andvalues
parameters must match in size.
-
createAttributes
public static java.util.Map createAttributes(java.lang.Object[] elements, CellMapper cm)
Returns a new map, from cells to property maps. Theelements
may be instances ofCellView
, in which case the cell view's corresponding cell is used as a key, and its attributes are used as a property map. In any other case, theelement
is considered as a cell and looked-up in the cell mapper to find the corresponding view. If a view is found, its attributes are cloned and used as a property map, along with the cell as a key.Note: This method returns a map of maps! This is different from the createMap method, which creates a map, from keys to values. This method returns a map, from cells to maps, which in turn map from keys to values.
-
createAttributesFromModel
public static java.util.Map createAttributesFromModel(java.lang.Object[] elements, GraphModel model)
-
replaceKeys
public static java.util.Map replaceKeys(java.util.Map keyMap, java.util.Map map)
Replace the keys inmap
usingkeyMap
map must itself be a map, and is cloned usingcloneMap
.
-
merge
public static java.util.Map merge(java.util.Map change, java.util.Map target)
Merges the specified nested maps by adding all attributes in the change to the attributes for the cell in target, if the cell does not exist in target, then a new entry is added with all attributes from change. Returns the modified target map. Note: This method removes entries fromchange
and adds entries totarget
in-place!- Returns:
- a map including all attributes from change merged with target
-
setFont
public static void setFont(java.util.Map map, java.awt.Font font)
Sets the value attribute in the specified map to the specified font value.- Parameters:
map
- The map to store the font attribute in.font
- The value to set the font attribute to.
-
getFont
public static java.awt.Font getFont(java.util.Map map)
Returns the font for the specified attribute map. Uses default font if no font is specified in the attribute map.
-
setRemoveAttributes
public static final void setRemoveAttributes(java.util.Map map, java.lang.Object[] value)
Sets specific attributes are being marked for removal @ param map The transport map indicating the attribute removal @ param value The attributes to be removed
-
getRemoveAttributes
public static final java.lang.Object[] getRemoveAttributes(java.util.Map map)
Returns the attribute marked as for removal in the specified map.
-
setMoveableAxis
public static final void setMoveableAxis(java.util.Map map, int axis)
Sets the moveableaxis attribute in the specified map to the specified value.
-
getMoveableAxis
public static final int getMoveableAxis(java.util.Map map)
Returns the moveableaxis attribute from the specified map.
-
setSizeableAxis
public static final void setSizeableAxis(java.util.Map map, int axis)
Sets the sizeableAxis attribute in the specified map to the specified value.
-
getSizeableAxis
public static final int getSizeableAxis(java.util.Map map)
Returns the sizeableAxis attribute from the specified map.
-
setIcon
public static final void setIcon(java.util.Map map, javax.swing.Icon value)
Sets the icon attribute in the specified map to the specified value.
-
getIcon
public static final javax.swing.Icon getIcon(java.util.Map map)
Returns the icon attribute from the specified map.
-
setOpaque
public static final void setOpaque(java.util.Map map, boolean flag)
Sets the opaque attribute in the specified map to the specified value.
-
isOpaque
public static final boolean isOpaque(java.util.Map map)
Returns the opaque attribute from the specified map.
-
setGroupOpaque
public static final void setGroupOpaque(java.util.Map map, boolean flag)
Sets the opaque attribute in the specified map to the specified value.
-
isGroupOpaque
public static final boolean isGroupOpaque(java.util.Map map)
Returns the opaque attribute from the specified map.
-
setBorder
public static final void setBorder(java.util.Map map, javax.swing.border.Border value)
Sets the border attribute in the specified map to the specified value.
-
getBorder
public static final javax.swing.border.Border getBorder(java.util.Map map)
Returns the border attribute from the specified map.
-
setLineColor
public static final void setLineColor(java.util.Map map, java.awt.Color value)
Sets the linecolor attribute in the specified map to the specified value.
-
getLineColor
public static final java.awt.Color getLineColor(java.util.Map map)
Returns the linecolor attribute from the specified map.
-
setBorderColor
public static final void setBorderColor(java.util.Map map, java.awt.Color value)
Sets the bordercolor attribute in the specified map to the specified value.
-
getBorderColor
public static final java.awt.Color getBorderColor(java.util.Map map)
Returns the bordercolor attribute from the specified map.
-
setLineWidth
public static final void setLineWidth(java.util.Map map, float width)
Sets the linewidth attribute in the specified map to the specified value.
-
getLineWidth
public static final float getLineWidth(java.util.Map map)
Returns the linewidth attribute from the specified map.
-
setForeground
public static final void setForeground(java.util.Map map, java.awt.Color value)
Sets the foregrund attribute in the specified map to the specified value.
-
getForeground
public static final java.awt.Color getForeground(java.util.Map map)
Returns the foreground attribute from the specified map.
-
setBackground
public static final void setBackground(java.util.Map map, java.awt.Color value)
Sets the background attribute in the specified map to the specified value.
-
getBackground
public static final java.awt.Color getBackground(java.util.Map map)
Returns the background attribute from the specified map.
-
setGradientColor
public static final void setGradientColor(java.util.Map map, java.awt.Color value)
Sets the gradientcolor attribute in the specified map to the specified value.
-
getGradientColor
public static final java.awt.Color getGradientColor(java.util.Map map)
Returns the gradientcolor attribute from the specified map.
-
setVerticalAlignment
public static final void setVerticalAlignment(java.util.Map map, int alignment)
This method set the position of the label in vertex cells, and takes aruguments of type SwingConstants (for JLabel) i.e. JLabel.TOP etc. Default value is JLabel.CENTER. This method has no effect on edge cells.
-
getVerticalAlignment
public static final int getVerticalAlignment(java.util.Map map)
Returns the verticalalignment attribute from the specified map.
-
setHorizontalAlignment
public static final void setHorizontalAlignment(java.util.Map map, int alignment)
This method set the position of the label in vertex cells, and takes aruguments of type SwingConstants (for JLabel) i.e. JLabel.LEFT etc. Default is JLabel.CENTER. This method has no effect on edge cells.
-
getHorizontalAlignment
public static final int getHorizontalAlignment(java.util.Map map)
Returns the horizontalalignment attribute from the specified map.
-
setVerticalTextPosition
public static final void setVerticalTextPosition(java.util.Map map, int textPosition)
This method set the text of a label on vertext cell relative to image. See JLabel api. Default value is JLabel.BOTTOM.
-
getVerticalTextPosition
public static final int getVerticalTextPosition(java.util.Map map)
Returns the verticaltextposition attribute from the specified map.
-
setHorizontalTextPosition
public static final void setHorizontalTextPosition(java.util.Map map, int textPosition)
This method set the text of a label on vertext cell relative to image. See JLabel api. Default value is JLabel.CENTER.
-
getHorizontalTextPosition
public static final int getHorizontalTextPosition(java.util.Map map)
Returns the horizontaltextposition attribute from the specified map.
-
setDashPattern
public static final void setDashPattern(java.util.Map map, float[] value)
Sets the dashpattern attribute in the specified map to the specified value.
-
getDashPattern
public static final float[] getDashPattern(java.util.Map map)
Returns the dashpattern attribute from the specified map.
-
setDashOffset
public static final void setDashOffset(java.util.Map map, float value)
Sets the dashoffset attribute in the specified map to the specified value.
-
getDashOffset
public static final float getDashOffset(java.util.Map map)
Returns the dashoffset attribute from the specified map.
-
setLineStyle
public static final void setLineStyle(java.util.Map map, int style)
Sets the linestyle attribute in the specified map to the specified value.
-
getLineStyle
public static final int getLineStyle(java.util.Map map)
Returns the linestyle attribute from the specified map.
-
setBeginSize
public static final void setBeginSize(java.util.Map map, int style)
Sets the beginsize attribute in the specified map to the specified value.
-
getBeginSize
public static final int getBeginSize(java.util.Map map)
Returns the beginsize attribute from the specified map.
-
setEndSize
public static final void setEndSize(java.util.Map map, int style)
Sets the endsize attribute in the specified map to the specified value.
-
getEndSize
public static final int getEndSize(java.util.Map map)
Returns the endsize attribute from the specified map.
-
setLineBegin
public static final void setLineBegin(java.util.Map map, int style)
Sets the LINEBEGIN attribute in the specified map to the specified value. This attribute indicates what sort of decoration should be applied to the beginning of edges when they are rendered.
-
getLineBegin
public static final int getLineBegin(java.util.Map map)
Returns the LINEBEGIN attribute from the specified map. This attribute indicates what sort of decoration should be applied to the beginning of edges when they are rendered.
-
setLineEnd
public static final void setLineEnd(java.util.Map map, int style)
Sets the LINEEND attribute in the specified map to the specified value. This attribute indicates what sort of decoration should be applied to the ends of edges when they are rendered.
-
getLineEnd
public static final int getLineEnd(java.util.Map map)
Returns the LINEEND attribute from the specified map. This attribute indicates what sort of decoration should be applied to the ends of edges when they are rendered.
-
setValue
public static final void setValue(java.util.Map map, java.lang.Object value)
Sets the value attribute in the specified map to the specified value.
-
getValue
public static final java.lang.Object getValue(java.util.Map map)
Returns the value attribute from the specified map. Only use for transport maps, not storage map since the value is removed from the final storage map- See Also:
GraphModel.getValue(Object)
-
setLabelPosition
public static final void setLabelPosition(java.util.Map map, java.awt.geom.Point2D position)
Sets the label position attribute in the specified map to the specified value.
-
getLabelPosition
public static final java.awt.geom.Point2D getLabelPosition(java.util.Map map)
Returns the label position attribute from the specified map. The point is interpreted by the EdgeRenderer as follows:
x coordinate: the percentual position on the length of the edge in direction of the edge
y coordinate: the absolute offset, orthogonally to the edge
-
setExtraLabels
public static final void setExtraLabels(java.util.Map map, java.lang.Object[] definitions)
Sets the array of additional labels. The objects's toString methods are used to determine the actual label string. Extra labels only work with edges currently.
-
getExtraLabels
public static final java.lang.Object[] getExtraLabels(java.util.Map map)
Returns the additional label objects from the specified map.Extra labels only work with edges currently.
-
setExtraLabelPositions
public static final void setExtraLabelPositions(java.util.Map map, java.awt.geom.Point2D[] positions)
Sets the labelpositions attribute in the specified map to the specified value. The Point instance at a particular index corresponds to the object at the same index in the extralabels array attribute. Extra labels only work with edges currently.- See Also:
getLabelPosition(Map)
-
getExtraLabelPositions
public static final java.awt.geom.Point2D[] getExtraLabelPositions(java.util.Map map)
Returns the extralabelpositions attribute from the specified map. Extra labels only work with edges currently.
-
setLabelAlongEdge
public static final void setLabelAlongEdge(java.util.Map map, boolean flag)
Sets if the label should be painted along the edge.
-
isLabelAlongEdge
public static final boolean isLabelAlongEdge(java.util.Map map)
Returns the true if the label should be painted along the edge. Defaults to false.
-
setEditable
public static final void setEditable(java.util.Map map, boolean flag)
Sets the editable attribute in the specified map to the specified value.
-
isEditable
public static final boolean isEditable(java.util.Map map)
Returns the editable attribute from the specified map.
-
setMoveable
public static final void setMoveable(java.util.Map map, boolean flag)
Sets the moveable attribute in the specified map to the specified value.
-
isMoveable
public static final boolean isMoveable(java.util.Map map)
Returns the moveable attribute from the specified map.
-
setSizeable
public static final void setSizeable(java.util.Map map, boolean flag)
Sets the sizeable attribute in the specified map to the specified value.
-
isSizeable
public static final boolean isSizeable(java.util.Map map)
Returns the sizeable attribute from the specified map.
-
setAutoSize
public static final void setAutoSize(java.util.Map map, boolean flag)
Sets the autosize attribute in the specified map to the specified value.
-
isAutoSize
public static final boolean isAutoSize(java.util.Map map)
Returns the autosize attribute from the specified map.
-
setResize
public static final void setResize(java.util.Map map, boolean flag)
Sets the resize attribute in the specified map to the specified value.
-
isResize
public static final boolean isResize(java.util.Map map)
Returns the resize attribute from the specified map.
-
setConstrained
public static final void setConstrained(java.util.Map map, boolean flag)
Sets the constrained attribute in the specified map to the specified value.
-
isConstrained
public static final boolean isConstrained(java.util.Map map)
Returns the constrained attribute from the specified map.
-
setSelectable
public static final void setSelectable(java.util.Map map, boolean flag)
Sets the selectable attribute in the specified map to the specified value. This detemines whether or not a cell may be selected. Vertices and edges may be selectable, not ports.
-
isSelectable
public static final boolean isSelectable(java.util.Map map)
Returns the selectable attribute from the specified map.- See Also:
setSelectable(Map, boolean)
-
setChildrenSelectable
public static final void setChildrenSelectable(java.util.Map map, boolean flag)
Sets the childrenselectable attribute in the specified map to the specified value.
-
isChildrenSelectable
public static final boolean isChildrenSelectable(java.util.Map map)
Returns the childrenselectable attribute from the specified map.
-
setBendable
public static final void setBendable(java.util.Map map, boolean flag)
Sets the bendable attribute in the specified map to the specified value.
-
isBendable
public static final boolean isBendable(java.util.Map map)
Returns the bendable attribute from the specified map.
-
setConnectable
public static final void setConnectable(java.util.Map map, boolean flag)
Sets the connectable attribute in the specified map to the specified value.
-
isConnectable
public static final boolean isConnectable(java.util.Map map)
Returns the connectable attribute from the specified map.
-
setDisconnectable
public static final void setDisconnectable(java.util.Map map, boolean flag)
Sets the disconnectable attribute in the specified map to the specified value.
-
isDisconnectable
public static final boolean isDisconnectable(java.util.Map map)
Returns the disconnectable attribute from the specified map.
-
setPoints
public static final void setPoints(java.util.Map map, java.util.List list)
Sets the points attribute in the specified map to the specified value. Points are literally the points where an edge is connected by two lines. The two defaults points are the start and end of the edge. For example, for an simple orthogonal edge there will be two extra points indicating where the two right-angled bends are. This attribute can only be applied to an edge.
-
getPoints
public static final java.util.List getPoints(java.util.Map map)
Returns the points attribute from the specified map.- See Also:
setPoints(Map, java.util.List)
-
setRouting
public static final void setRouting(java.util.Map map, Edge.Routing routing)
Sets the routing attribute in the specified map to the specified value.
-
getRouting
public static final Edge.Routing getRouting(java.util.Map map)
Returns the routing attribute from the specified map.
-
setBounds
public static final void setBounds(java.util.Map map, java.awt.geom.Rectangle2D bounds)
Sets the bounds attribute in the specified map to the specified value.
-
getBounds
public static final java.awt.geom.Rectangle2D getBounds(java.util.Map map)
Returns the bounds attribute from the specified map. Note: The CellView interface offers a getBounds method!
-
setInset
public static final void setInset(java.util.Map map, int width)
Sets the inset attribute in the specified map to the specified value.
-
getInset
public static final int getInset(java.util.Map map)
Returns the inset attribute from the specified map. Note: The CellView interface offers a getBounds method!
-
setSize
public static final void setSize(java.util.Map map, java.awt.Dimension size)
Sets the size attribute in the specified map to the specified value. Not currently used in JGraph. Use setBounds to set vertex bounds instead.
-
getSize
public static final java.awt.Dimension getSize(java.util.Map map)
Returns the size attribute from the specified map. Not currently used in JGraph. Use getBounds to set vertex bounds instead.
-
setOffset
public static final void setOffset(java.util.Map map, java.awt.geom.Point2D offset)
Sets the offset attribute in the specified map to the specified value. The offset is the position of a port relative to its origin, note this attribute is only for ports.
-
getOffset
public static final java.awt.geom.Point2D getOffset(java.util.Map map)
Returns the offset attribute from the specified map. The offset is the position of a port relative to its origin, note this attribute is only for ports.
-
setBeginFill
public static final void setBeginFill(java.util.Map map, boolean flag)
Sets the beginfill attribute in the specified map to the specified value.
-
isBeginFill
public static final boolean isBeginFill(java.util.Map map)
Returns the beginfill attribute from the specified map.
-
setEndFill
public static final void setEndFill(java.util.Map map, boolean flag)
Sets the endfill attribute in the specified map to the specified value.
-
isEndFill
public static final boolean isEndFill(java.util.Map map)
Returns the endfill attribute from the specified map.
-
setAbsolute
public static final void setAbsolute(java.util.Map map, boolean flag)
Sets the absolute attributes in the specified map to the specified value.
-
setAbsoluteY
public static final void setAbsoluteY(java.util.Map map, boolean flag)
Sets the absolutey attribute in the specified map to the specified value.
-
isAbsoluteY
public static final boolean isAbsoluteY(java.util.Map map)
Returns the absolutey attribute from the specified map.
-
setAbsoluteX
public static final void setAbsoluteX(java.util.Map map, boolean flag)
Sets the absolutex attribute in the specified map to the specified value.
-
isAbsoluteX
public static final boolean isAbsoluteX(java.util.Map map)
Returns the absolutex attribute from the specified map.
-
setRemoveAll
public static final void setRemoveAll(java.util.Map map, boolean flag)
Sets the removeall attribute in the specified map to the specified value.
-
isRemoveAll
public static final boolean isRemoveAll(java.util.Map map)
Returns the removeall attribute from the specified map.
-
getROUTING_SIMPLE
public static Edge.Routing getROUTING_SIMPLE()
- Returns:
- Returns the ROUTING_SIMPLE.
-
getROUTING_DEFAULT
public static Edge.Routing getROUTING_DEFAULT()
- Returns:
- Returns the ROUTING_SIMPLE.
-
setLink
public static void setLink(java.util.Map map, java.lang.String link)
Sets the link attribute in the specified map to the specified value.- Parameters:
map
- The map to store the link attribute in.link
- The value to set the link attribute to.
-
getLink
public static java.lang.String getLink(java.util.Map map)
Returns the link for the specified attribute map.
-
-