Package org.jgraph.graph
Class GraphConstants
- java.lang.Object
-
- org.jgraph.graph.GraphConstants
-
public class GraphConstants extends java.lang.ObjectA 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.StringABSOLUTEXKey for theabsoluteXattribute.static java.lang.StringABSOLUTEYKey for theabsoluteYattribute.static intARROW_CIRCLERepresents a circle decoration for the beginning or ending of edges.static intARROW_CLASSICRepresents a classic arrow decoration for the beginning or ending of edges.static intARROW_DIAMONDRepresents a diamond decoration for the beginning or ending of edges.static intARROW_DOUBLELINERepresents a double line decoration for the beginning or ending of edges.static intARROW_LINERepresents a line decoration for the beginning or ending of edges.static intARROW_NONERepresents no decoration for the beginning or ending of edges.static intARROW_SIMPLERepresents a simple arrow decoration for the beginning or ending of edges.static intARROW_TECHNICALRepresents a technical arrow decoration for the beginning or ending of edges.static java.lang.StringAUTOSIZEKey for theautosizeattribute.static java.lang.StringBACKGROUNDKey for thebackgroundattribute.static java.lang.StringBEGINFILLKey for thebeginFillattribute.static java.lang.StringBEGINSIZEKey for thebeginSizeattribute.static java.lang.StringBENDABLEKey for thebendableattribute.static java.lang.StringBORDERKey for theborderattribute.static java.lang.StringBORDERCOLORKey for thebordercolorattribute.static java.lang.StringBOUNDSKey for theboundsattribute.static java.lang.StringCHILDRENSELECTABLEKey for thechildrenSelectableattribute.static java.lang.StringCONNECTABLEKey for theconnectableattribute.static java.lang.StringCONSTRAINEDKey for theconstrainedattribute.protected static float[]dashGlobal Stroke To Highlight Selectionstatic java.lang.StringDASHOFFSETKey for thedashOffsetattribute.static java.lang.StringDASHPATTERNKey for thedashPatternattribute.static intDEFAULTDECORATIONSIZEDefault decoration size.static java.awt.FontDEFAULTFONTDefault font is derived from UIManager.getDefaults().getFont("Label.font")static intDEFAULTINSETDefault inset size.static java.lang.StringDISCONNECTABLEKey for thedisconnectableattribute.static java.lang.StringEDITABLEKey for theeditableattribute.static java.lang.StringENDFILLKey for theendFillattribute.static java.lang.StringENDSIZEKey for theendSizeattribute.static java.lang.StringEXACTSEGMENTRELATIVEKey for thelabelEnabledattribute.static java.lang.StringEXTRALABELPOSITIONSKey for theextraLabelPositionsattribute.static java.lang.StringEXTRALABELSKey for theextraLabelsattribute.static java.lang.StringFONTKey for thefontattribute.static java.lang.StringFOREGROUNDKey for theforegroundattribute.static java.lang.StringGRADIENTCOLORKey for thegradientattribute.static java.lang.StringGROUPOPAQUEKey for thegroupOpaqueattribute.static java.lang.StringHORIZONTAL_ALIGNMENTKey for thehorizontalAlignmentattribute.static java.lang.StringHORIZONTAL_TEXT_POSITIONKey for thehorizontalTextPositionattribute.static java.lang.StringICONKey for theiconattribute.static java.lang.StringINSETKey for theinsetattribute.static java.lang.StringLABELALONGEDGEKey for thelabelAlongEdgeattribute.static java.lang.StringLABELENABLEDKey for thelabelEnabledattribute.static java.lang.StringLABELPOSITIONKey for thelabelpositionattribute.static java.lang.StringLINEBEGINKey for thelineBeginattribute.static java.lang.StringLINECOLORKey for thelinecolorattribute.static java.lang.StringLINEENDKey for thelineEndattribute.static java.lang.StringLINESTYLEKey for thelineStyleattribute.static java.lang.StringLINEWIDTHKey for thelinewidthattribute.static java.lang.StringLINKKey for thelinkattribute.static java.lang.StringMOVEABLEKey for themoveableattribute.static java.lang.StringMOVEABLEAXISKey for themoveableAxisattribute.static java.lang.StringMOVEHIDDENCHILDRENKey for thechildrenSelectableattribute.static java.lang.StringOFFSETKey for theoffsetattribute.static java.lang.StringOPAQUEKey for theopaqueattribute.static intPERMILLE100 percent unit for relative positioning.static java.lang.StringPOINTSKey for thepointsattribute.static java.lang.StringREMOVEALLKey for theremoveAllattribute.static java.lang.StringREMOVEATTRIBUTESKey for theremoveAttributesattribute.static java.lang.StringREPLACEATTRIBUTESKey for thereplaceAttributesattribute.static java.lang.StringRESIZEKey for theresizeattribute.static java.lang.StringROUTINGKey for theroutingattribute.static Edge.RoutingROUTING_DEFAULTThe default routing that deals with loops.static Edge.RoutingROUTING_SIMPLEA simple routing.static java.lang.StringSELECTABLEKey for theselectableattribute.static java.awt.StrokeSELECTION_STROKEstatic java.lang.StringSIZEKey for thesizeattribute.static java.lang.StringSIZEABLEKey for thesizeableattribute.static java.lang.StringSIZEABLEAXISKey for thesizeableAxisattribute.static intSTYLE_BEZIERRepresents a bezier line stylestatic intSTYLE_ORTHOGONALRepresents an orthogonal line stylestatic intSTYLE_SPLINERepresents an spline line stylestatic java.lang.StringVALUEKey for thevalueattribute.static java.lang.StringVERTICAL_ALIGNMENTKey for theverticalAlignmentattribute.static java.lang.StringVERTICAL_TEXT_POSITIONKey for theverticalTextPositionattribute.static intX_AXISRepresents an bezier line stylestatic intY_AXISRepresents 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.MapcreateAttributes(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.MapcreateAttributes(java.lang.Object[] cells, java.lang.Object key, java.lang.Object value)Overloaded method that passes arguments on as arraysstatic java.util.MapcreateAttributes(java.lang.Object[] elements, CellMapper cm)Returns a new map, from cells to property maps.static java.util.MapcreateAttributes(java.lang.Object cell, java.lang.Object key, java.lang.Object value)Overloaded method that passes arguments on as arraysstatic java.util.MapcreateAttributesFromModel(java.lang.Object[] elements, GraphModel model)static java.awt.ColorgetBackground(java.util.Map map)Returns the background attribute from the specified map.static intgetBeginSize(java.util.Map map)Returns the beginsize attribute from the specified map.static javax.swing.border.BordergetBorder(java.util.Map map)Returns the border attribute from the specified map.static java.awt.ColorgetBorderColor(java.util.Map map)Returns the bordercolor attribute from the specified map.static java.awt.geom.Rectangle2DgetBounds(java.util.Map map)Returns the bounds attribute from the specified map.static floatgetDashOffset(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 intgetEndSize(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.FontgetFont(java.util.Map map)Returns the font for the specified attribute map.static java.awt.ColorgetForeground(java.util.Map map)Returns the foreground attribute from the specified map.static java.awt.ColorgetGradientColor(java.util.Map map)Returns the gradientcolor attribute from the specified map.static intgetHorizontalAlignment(java.util.Map map)Returns the horizontalalignment attribute from the specified map.static intgetHorizontalTextPosition(java.util.Map map)Returns the horizontaltextposition attribute from the specified map.static javax.swing.IcongetIcon(java.util.Map map)Returns the icon attribute from the specified map.static intgetInset(java.util.Map map)Returns the inset attribute from the specified map.static java.awt.geom.Point2DgetLabelPosition(java.util.Map map)Returns the label position attribute from the specified map.static intgetLineBegin(java.util.Map map)Returns the LINEBEGIN attribute from the specified map.static java.awt.ColorgetLineColor(java.util.Map map)Returns the linecolor attribute from the specified map.static intgetLineEnd(java.util.Map map)Returns the LINEEND attribute from the specified map.static intgetLineStyle(java.util.Map map)Returns the linestyle attribute from the specified map.static floatgetLineWidth(java.util.Map map)Returns the linewidth attribute from the specified map.static java.lang.StringgetLink(java.util.Map map)Returns the link for the specified attribute map.static intgetMoveableAxis(java.util.Map map)Returns the moveableaxis attribute from the specified map.static java.awt.geom.Point2DgetOffset(java.util.Map map)Returns the offset attribute from the specified map.static java.util.ListgetPoints(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.RoutinggetRouting(java.util.Map map)Returns the routing attribute from the specified map.static Edge.RoutinggetROUTING_DEFAULT()static Edge.RoutinggetROUTING_SIMPLE()static java.awt.DimensiongetSize(java.util.Map map)Returns the size attribute from the specified map.static intgetSizeableAxis(java.util.Map map)Returns the sizeableAxis attribute from the specified map.static java.lang.ObjectgetValue(java.util.Map map)Returns the value attribute from the specified map.static intgetVerticalAlignment(java.util.Map map)Returns the verticalalignment attribute from the specified map.static intgetVerticalTextPosition(java.util.Map map)Returns the verticaltextposition attribute from the specified map.static booleanisAbsoluteX(java.util.Map map)Returns the absolutex attribute from the specified map.static booleanisAbsoluteY(java.util.Map map)Returns the absolutey attribute from the specified map.static booleanisAutoSize(java.util.Map map)Returns the autosize attribute from the specified map.static booleanisBeginFill(java.util.Map map)Returns the beginfill attribute from the specified map.static booleanisBendable(java.util.Map map)Returns the bendable attribute from the specified map.static booleanisChildrenSelectable(java.util.Map map)Returns the childrenselectable attribute from the specified map.static booleanisConnectable(java.util.Map map)Returns the connectable attribute from the specified map.static booleanisConstrained(java.util.Map map)Returns the constrained attribute from the specified map.static booleanisDisconnectable(java.util.Map map)Returns the disconnectable attribute from the specified map.static booleanisEditable(java.util.Map map)Returns the editable attribute from the specified map.static booleanisEndFill(java.util.Map map)Returns the endfill attribute from the specified map.static booleanisExactSegmentLabel(java.util.Map map)Returns whether the exact segment is worked out for placement of labels along edges for the specified cell.static booleanisGroupOpaque(java.util.Map map)Returns the opaque attribute from the specified map.static booleanisLabelAlongEdge(java.util.Map map)Returns the true if the label should be painted along the edge.static booleanisLabelEnabled(java.util.Map map)Returns whether the label is enabled for the specified cell.static booleanisMoveable(java.util.Map map)Returns the moveable attribute from the specified map.static booleanisOpaque(java.util.Map map)Returns the opaque attribute from the specified map.static booleanisRemoveAll(java.util.Map map)Returns the removeall attribute from the specified map.static booleanisResize(java.util.Map map)Returns the resize attribute from the specified map.static booleanisSelectable(java.util.Map map)Returns the selectable attribute from the specified map.static booleanisSizeable(java.util.Map map)Returns the sizeable attribute from the specified map.static java.util.Mapmerge(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.MapreplaceKeys(java.util.Map keyMap, java.util.Map map)Replace the keys inmapusingkeyMapstatic voidsetAbsolute(java.util.Map map, boolean flag)Sets the absolute attributes in the specified map to the specified value.static voidsetAbsoluteX(java.util.Map map, boolean flag)Sets the absolutex attribute in the specified map to the specified value.static voidsetAbsoluteY(java.util.Map map, boolean flag)Sets the absolutey attribute in the specified map to the specified value.static voidsetAutoSize(java.util.Map map, boolean flag)Sets the autosize attribute in the specified map to the specified value.static voidsetBackground(java.util.Map map, java.awt.Color value)Sets the background attribute in the specified map to the specified value.static voidsetBeginFill(java.util.Map map, boolean flag)Sets the beginfill attribute in the specified map to the specified value.static voidsetBeginSize(java.util.Map map, int style)Sets the beginsize attribute in the specified map to the specified value.static voidsetBendable(java.util.Map map, boolean flag)Sets the bendable attribute in the specified map to the specified value.static voidsetBorder(java.util.Map map, javax.swing.border.Border value)Sets the border attribute in the specified map to the specified value.static voidsetBorderColor(java.util.Map map, java.awt.Color value)Sets the bordercolor attribute in the specified map to the specified value.static voidsetBounds(java.util.Map map, java.awt.geom.Rectangle2D bounds)Sets the bounds attribute in the specified map to the specified value.static voidsetChildrenSelectable(java.util.Map map, boolean flag)Sets the childrenselectable attribute in the specified map to the specified value.static voidsetConnectable(java.util.Map map, boolean flag)Sets the connectable attribute in the specified map to the specified value.static voidsetConstrained(java.util.Map map, boolean flag)Sets the constrained attribute in the specified map to the specified value.static voidsetDashOffset(java.util.Map map, float value)Sets the dashoffset attribute in the specified map to the specified value.static voidsetDashPattern(java.util.Map map, float[] value)Sets the dashpattern attribute in the specified map to the specified value.static voidsetDisconnectable(java.util.Map map, boolean flag)Sets the disconnectable attribute in the specified map to the specified value.static voidsetEditable(java.util.Map map, boolean flag)Sets the editable attribute in the specified map to the specified value.static voidsetEndFill(java.util.Map map, boolean flag)Sets the endfill attribute in the specified map to the specified value.static voidsetEndSize(java.util.Map map, int style)Sets the endsize attribute in the specified map to the specified value.static voidsetExactSegmentLabel(java.util.Map map, boolean flag)Sets the exact segment attribute in the specified map to the specified value.static voidsetExtraLabelPositions(java.util.Map map, java.awt.geom.Point2D[] positions)Sets the labelpositions attribute in the specified map to the specified value.static voidsetExtraLabels(java.util.Map map, java.lang.Object[] definitions)Sets the array of additional labels.static voidsetFont(java.util.Map map, java.awt.Font font)Sets the value attribute in the specified map to the specified font value.static voidsetForeground(java.util.Map map, java.awt.Color value)Sets the foregrund attribute in the specified map to the specified value.static voidsetGradientColor(java.util.Map map, java.awt.Color value)Sets the gradientcolor attribute in the specified map to the specified value.static voidsetGroupOpaque(java.util.Map map, boolean flag)Sets the opaque attribute in the specified map to the specified value.static voidsetHorizontalAlignment(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 voidsetHorizontalTextPosition(java.util.Map map, int textPosition)This method set the text of a label on vertext cell relative to image.static voidsetIcon(java.util.Map map, javax.swing.Icon value)Sets the icon attribute in the specified map to the specified value.static voidsetInset(java.util.Map map, int width)Sets the inset attribute in the specified map to the specified value.static voidsetLabelAlongEdge(java.util.Map map, boolean flag)Sets if the label should be painted along the edge.static voidsetLabelEnabled(java.util.Map map, boolean flag)Sets the label enabled attribute in the specified map to the specified value.static voidsetLabelPosition(java.util.Map map, java.awt.geom.Point2D position)Sets the label position attribute in the specified map to the specified value.static voidsetLineBegin(java.util.Map map, int style)Sets the LINEBEGIN attribute in the specified map to the specified value.static voidsetLineColor(java.util.Map map, java.awt.Color value)Sets the linecolor attribute in the specified map to the specified value.static voidsetLineEnd(java.util.Map map, int style)Sets the LINEEND attribute in the specified map to the specified value.static voidsetLineStyle(java.util.Map map, int style)Sets the linestyle attribute in the specified map to the specified value.static voidsetLineWidth(java.util.Map map, float width)Sets the linewidth attribute in the specified map to the specified value.static voidsetLink(java.util.Map map, java.lang.String link)Sets the link attribute in the specified map to the specified value.static voidsetMoveable(java.util.Map map, boolean flag)Sets the moveable attribute in the specified map to the specified value.static voidsetMoveableAxis(java.util.Map map, int axis)Sets the moveableaxis attribute in the specified map to the specified value.static voidsetOffset(java.util.Map map, java.awt.geom.Point2D offset)Sets the offset attribute in the specified map to the specified value.static voidsetOpaque(java.util.Map map, boolean flag)Sets the opaque attribute in the specified map to the specified value.static voidsetPoints(java.util.Map map, java.util.List list)Sets the points attribute in the specified map to the specified value.static voidsetRemoveAll(java.util.Map map, boolean flag)Sets the removeall attribute in the specified map to the specified value.static voidsetRemoveAttributes(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 voidsetResize(java.util.Map map, boolean flag)Sets the resize attribute in the specified map to the specified value.static voidsetRouting(java.util.Map map, Edge.Routing routing)Sets the routing attribute in the specified map to the specified value.static voidsetSelectable(java.util.Map map, boolean flag)Sets the selectable attribute in the specified map to the specified value.static voidsetSize(java.util.Map map, java.awt.Dimension size)Sets the size attribute in the specified map to the specified value.static voidsetSizeable(java.util.Map map, boolean flag)Sets the sizeable attribute in the specified map to the specified value.static voidsetSizeableAxis(java.util.Map map, int axis)Sets the sizeableAxis attribute in the specified map to the specified value.static voidsetValue(java.util.Map map, java.lang.Object value)Sets the value attribute in the specified map to the specified value.static voidsetVerticalAlignment(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 voidsetVerticalTextPosition(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 thesizeableAxisattribute. 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 themoveableAxisattribute. 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 thereplaceAttributesattribute. 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 theremoveAttributesattribute. 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 theremoveAllattribute. 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 theiconattribute. Use instances of Icon as values for this key.- See Also:
- Constant Field Values
-
FONT
public static final java.lang.String FONT
Key for thefontattribute. Use instances of Font as values for this key.- See Also:
- Constant Field Values
-
OPAQUE
public static final java.lang.String OPAQUE
Key for theopaqueattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
GROUPOPAQUE
public static final java.lang.String GROUPOPAQUE
Key for thegroupOpaqueattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
BORDER
public static final java.lang.String BORDER
Key for theborderattribute. 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 thelinecolorattribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
BORDERCOLOR
public static final java.lang.String BORDERCOLOR
Key for thebordercolorattribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
LINEWIDTH
public static final java.lang.String LINEWIDTH
Key for thelinewidthattribute. Use instances of Float as values for this key.- See Also:
- Constant Field Values
-
FOREGROUND
public static final java.lang.String FOREGROUND
Key for theforegroundattribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
BACKGROUND
public static final java.lang.String BACKGROUND
Key for thebackgroundattribute. Use instances of Color as values for this key.- See Also:
- Constant Field Values
-
GRADIENTCOLOR
public static final java.lang.String GRADIENTCOLOR
Key for thegradientattribute. 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 theverticalAlignmentattribute. 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 thehorizontalAlignmentattribute. 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 theverticalTextPositionattribute. 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 thehorizontalTextPositionattribute. 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 thedashPatternattribute. Use instances of float[] as values for this key.- See Also:
- Constant Field Values
-
DASHOFFSET
public static final java.lang.String DASHOFFSET
Key for thedashOffsetattribute. Use instances of float as values for this key.- See Also:
- Constant Field Values
-
LINESTYLE
public static final java.lang.String LINESTYLE
Key for thelineStyleattribute. 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 thelineBeginattribute. 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 thelineEndattribute. 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 thebeginSizeattribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
ENDSIZE
public static final java.lang.String ENDSIZE
Key for theendSizeattribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
BEGINFILL
public static final java.lang.String BEGINFILL
Key for thebeginFillattribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
ENDFILL
public static final java.lang.String ENDFILL
Key for theendFillattribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
VALUE
public static final java.lang.String VALUE
Key for thevalueattribute. 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 theeditableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
MOVEABLE
public static final java.lang.String MOVEABLE
Key for themoveableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
SIZEABLE
public static final java.lang.String SIZEABLE
Key for thesizeableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
AUTOSIZE
public static final java.lang.String AUTOSIZE
Key for theautosizeattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
RESIZE
public static final java.lang.String RESIZE
Key for theresizeattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
INSET
public static final java.lang.String INSET
Key for theinsetattribute. Use instances of Integer as values for this key.- See Also:
- Constant Field Values
-
CONSTRAINED
public static final java.lang.String CONSTRAINED
Key for theconstrainedattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
SELECTABLE
public static final java.lang.String SELECTABLE
Key for theselectableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
CHILDRENSELECTABLE
public static final java.lang.String CHILDRENSELECTABLE
Key for thechildrenSelectableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
MOVEHIDDENCHILDREN
public static final java.lang.String MOVEHIDDENCHILDREN
Key for thechildrenSelectableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
BENDABLE
public static final java.lang.String BENDABLE
Key for thebendableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
CONNECTABLE
public static final java.lang.String CONNECTABLE
Key for theconnectableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
DISCONNECTABLE
public static final java.lang.String DISCONNECTABLE
Key for thedisconnectableattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
BOUNDS
public static final java.lang.String BOUNDS
Key for theboundsattribute. Use instances of Rectangle as values for this key.- See Also:
- Constant Field Values
-
POINTS
public static final java.lang.String POINTS
Key for thepointsattribute. 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 theroutingattribute. 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 thelabelpositionattribute. 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 theextraLabelsattribute. 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 theextraLabelPositionsattribute. Use arrays of Points as values for this key.- See Also:
- Constant Field Values
-
LABELALONGEDGE
public static final java.lang.String LABELALONGEDGE
Key for thelabelAlongEdgeattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
ABSOLUTEX
public static final java.lang.String ABSOLUTEX
Key for theabsoluteXattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
ABSOLUTEY
public static final java.lang.String ABSOLUTEY
Key for theabsoluteYattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
OFFSET
public static final java.lang.String OFFSET
Key for theoffsetattribute. Use instances of Point as values for this key.- See Also:
- Constant Field Values
-
SIZE
public static final java.lang.String SIZE
Key for thesizeattribute. Use instances of Dimension as values for this key.- See Also:
- Constant Field Values
-
LINK
public static final java.lang.String LINK
Key for thelinkattribute. Use instances of String as values for this key.- See Also:
- Constant Field Values
-
LABELENABLED
public static final java.lang.String LABELENABLED
Key for thelabelEnabledattribute. Use instances of Boolean as values for this key.- See Also:
- Constant Field Values
-
EXACTSEGMENTRELATIVE
public static final java.lang.String EXACTSEGMENTRELATIVE
Key for thelabelEnabledattribute. Use instances of Boolean 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. Thekeysandvaluesparameters 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. Theelementsmay 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, theelementis 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 inmapusingkeyMapmap 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 fromchangeand adds entries totargetin-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.
-
setLabelEnabled
public static void setLabelEnabled(java.util.Map map, boolean flag)Sets the label enabled attribute in the specified map to the specified value.- Parameters:
map- The map to store the label enabled attribute in.flag- The value to set the label enabled attribute to.
-
isLabelEnabled
public static boolean isLabelEnabled(java.util.Map map)
Returns whether the label is enabled for the specified cell.- Parameters:
map- the attribute map for the cell being tested for this condition.- Returns:
- whether or not labels should be displayed on this cell
-
setExactSegmentLabel
public static void setExactSegmentLabel(java.util.Map map, boolean flag)Sets the exact segment attribute in the specified map to the specified value.- Parameters:
map- The map to store the exact segment attribute in.flag- The value to set the exact segment attribute to.
-
isExactSegmentLabel
public static boolean isExactSegmentLabel(java.util.Map map)
Returns whether the exact segment is worked out for placement of labels along edges for the specified cell.- Parameters:
map- the attribute map for the cell being tested for this condition.- Returns:
- whether or not exact segments should be calculated on this cell
-
-