com.jgraph.graph
Class GraphConstants

java.lang.Object
  extended bycom.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
static java.lang.String ABSOLUTE
          Key for the absolute attribute.
static java.lang.String AUTOSIZE
          Key for the sizeable attribute.
static java.lang.String BACKGROUND
          Key for the background attribute.
static java.lang.String BEGINFILL
          Key for the startsize attribute.
static java.lang.String BEGINSIZE
          Key for the startsize attribute.
static java.lang.String BENDABLE
          Key for the sizeable attribute.
static int BEZIER
          Represents an bezier line style
static java.lang.String BORDER
          Key for the border attribute.
static java.lang.String BORDERCOLOR
          Key for the bordercolor attribute.
static java.lang.String BOUNDS
          Key for the bounds attribute.
static int CIRCLE
          Represents a circle decoration
static int CLASSIC
          Represents a classic arrow decoration
static java.lang.String CONNECTABLE
          Key for the moveable attribute.
protected static float[] dash
          Global Stroke To Highlight Selection
static java.lang.String DASHPATTERN
          Key for the dashPattern attribute.
static int DEFAULTDECORATIONSIZE
          Default decoration size.
static java.awt.Font defaultFont
           
static float DEFAULTFONTSIZE
          Default Font size.
static int DEFAULTFONTSTYLE
          Default Font style.
static int DIAMOND
          Represents a diamond decoration
static java.lang.String DISCONNECTABLE
          Key for the moveable attribute.
static int DOUBLELINE
          Represents a double line decoration
static java.lang.String EDITABLE
          Key for the editable attribute.
static java.lang.String ENDFILL
          Key for the endsize attribute.
static java.lang.String ENDSIZE
          Key for the endsize attribute.
static int FILLED_CIRCLE
          Represents a filled circle decoration
static int FILLED_DIAMOND
          Represents a filled diamond decoration
static int FILLED_TECHNICAL
          Represents a filled technical arrow decoration
static java.lang.String FONTNAME
          Key for the fontname attribute.
static java.lang.String FONTSIZE
          Key for the fontsize attribute.
static java.lang.String FONTSTYLE
          Key for the fontstyle attribute.
static java.lang.String FOREGROUND
          Key for the foreground attribute.
static java.lang.String HORIZONTAL_ALIGNMENT
          Key for the horizontalAlignment attribute.
static java.lang.String HORIZONTAL_TEXT_POSITION
          Key for the horizontalTextPosition attribute.
static java.lang.String ICON
          Key for the icon attribute.
static java.lang.String LABELPOSITION
          Key for the labelposition attribute.
static int LINE
          Represents a line decoration
static java.lang.String LINEBEGIN
          Key for the start attribute.
static java.lang.String LINECOLOR
          Key for the linecolor attribute.
static java.lang.String LINEEND
          Key for the start attribute.
static java.lang.String LINESTYLE
          Key for the lineStyle attribute.
static java.lang.String LINEWIDTH
          Key for the linewidth attribute.
static java.lang.String MOVEABLE
          Key for the moveable attribute.
static int NONE
          Represents no decoration
static java.lang.String OFFSET
          Key for the translate attribute.
static java.lang.String OPAQUE
          Key for the opaque attribute.
static int ORTHOGONAL
          Represents an orthogonal line style
static int PERCENT
          100 percent unit for relative positioning.
static java.lang.String POINTS
          Key for the points attribute.
static int QUADRATIC
          Represents an quadratic line style
static java.lang.String REMOVEALL
          Key for the removeAll attribute.
static java.lang.String REMOVEATTRIBUTES
          Key for the removeAttributes attribute.
static java.lang.String REPLACEATTRIBUTES
          Key for the replaceAttributes attribute.
static java.awt.Stroke SELECTION_STROKE
           
static int SIMPLE
          Represents a simple arrow decoration
static java.lang.String SIZE
          Key for the resize attribute.
static java.lang.String SIZEABLE
          Key for the sizeable attribute.
static int TECHNICAL
          Represents a technical arrow decoration
static java.lang.String VALUE
          Key for the value attribute.
static java.lang.String VERTICAL_ALIGNMENT
          Key for the verticalAlignment attribute.
static java.lang.String VERTICAL_TEXT_POSITION
          Key for the verticalTextPosition attribute.
static java.lang.String VISIBLE
          Key for the visible attribute.
 
Constructor Summary
GraphConstants()
           
 
Method Summary
static void applyMap(java.util.Map change, java.util.Map target)
          Apply the change to the target.
static java.util.Map cloneMap(java.util.Map map)
          Returns a clone of map, from keys to values.
static java.util.Map createAttributeMap(CellView[] views, CellMapper cm)
          Returns a new map, from CellViews to maps, which in turn map from keys to values.
static java.util.Map createMap()
          Creates an empty map.
static java.util.Map createPropertyMap(java.lang.Object[] elements, CellMapper cm)
          Returns a new map, from cells to property maps.
static java.awt.Color getBackground(java.util.Map map)
          Returns the value attribute from the specified map.
static int getBeginSize(java.util.Map map)
          Returns the opaque attribute from the specified map.
static javax.swing.border.Border getBorder(java.util.Map map)
          Returns the value attribute from the specified map.
static java.awt.Color getBorderColor(java.util.Map map)
          Returns the value attribute from the specified map.
static java.awt.Rectangle getBounds(java.util.Map map)
          Returns the bounds attribute from the specified map.
static float[] getDashPattern(java.util.Map map)
          Returns the value attribute from the specified map.
static int getEndSize(java.util.Map map)
          Returns the opaque attribute from the specified map.
static java.awt.Font getFont(java.util.Map map)
          Returns the font for the specified attribute map.
static java.lang.String getFontName(java.util.Map map)
          Returns the value attribute from the specified map.
static float getFontSize(java.util.Map map)
          Returns the value attribute from the specified map.
static int getFontStyle(java.util.Map map)
          Returns the value attribute from the specified map.
static java.awt.Color getForeground(java.util.Map map)
          Returns the value attribute from the specified map.
static int getHorizontalAlignment(java.util.Map map)
          Returns the opaque attribute from the specified map.
static int getHorizontalTextPosition(java.util.Map map)
          Returns the opaque attribute from the specified map.
static javax.swing.ImageIcon getIcon(java.util.Map map)
          Returns the value attribute from the specified map.
static java.awt.Point getLabelPosition(java.util.Map map)
          Returns the label position attribute from the specified map.
static int getLineBegin(java.util.Map map)
          Returns the opaque attribute from the specified map.
static java.awt.Color getLineColor(java.util.Map map)
          Returns the value attribute from the specified map.
static int getLineEnd(java.util.Map map)
          Returns the opaque attribute from the specified map.
static int getLineStyle(java.util.Map map)
          Returns the opaque attribute from the specified map.
static float getLineWidth(java.util.Map map)
          Returns the opaque attribute from the specified map.
static java.awt.Point 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 value attribute from the specified map.
static java.awt.Dimension getSize(java.util.Map map)
          Returns the size 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 opaque attribute from the specified map.
static int getVerticalTextPosition(java.util.Map map)
          Returns the opaque attribute from the specified map.
static boolean isAbsolute(java.util.Map map)
          Returns the offset attribute from the specified map.
static boolean isAutoSize(java.util.Map map)
          Returns the points attribute from the specified map.
static boolean isBeginFill(java.util.Map map)
          Returns the offset attribute from the specified map.
static boolean isBendable(java.util.Map map)
          Returns the points attribute from the specified map.
static boolean isConnectable(java.util.Map map)
          Returns the points attribute from the specified map.
static boolean isDisconnectable(java.util.Map map)
          Returns the points attribute from the specified map.
static boolean isEditable(java.util.Map map)
          Returns the points attribute from the specified map.
static boolean isEndFill(java.util.Map map)
          Returns the offset attribute from the specified map.
static boolean isMoveable(java.util.Map map)
          Returns the points 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 offset attribute from the specified map.
static boolean isSizeable(java.util.Map map)
          Returns the sizeable attribute from the specified map.
static boolean isVisible(java.util.Map map)
          Returns the points attribute from the specified map.
static java.util.Map replaceKeys(java.util.Map keyMap, java.util.Map map)
          Replace the keys in map using keyMap
static void scale(java.util.Map map, double sx, double sy, java.awt.Point origin)
          Scales map by the given amount.
static void setAbsolute(java.util.Map map, boolean flag)
          Sets the offset attribute in the specified map to the specified value.
static void setAutoSize(java.util.Map map, boolean flag)
          Sets the points attribute in the specified map to the specified value.
static void setBackground(java.util.Map map, java.awt.Color value)
          Sets the value attribute in the specified map to the specified value.
static void setBeginFill(java.util.Map map, boolean flag)
          Sets the offset attribute in the specified map to the specified value.
static void setBeginSize(java.util.Map map, int style)
          Sets the opaque attribute in the specified map to the specified value.
static void setBendable(java.util.Map map, boolean flag)
          Sets the points attribute in the specified map to the specified value.
static void setBorder(java.util.Map map, javax.swing.border.Border value)
          Sets the value attribute in the specified map to the specified value.
static void setBorderColor(java.util.Map map, java.awt.Color value)
          Sets the value attribute in the specified map to the specified value.
static void setBounds(java.util.Map map, java.awt.Rectangle bounds)
          Sets the bounds attribute in the specified map to the specified value.
static void setConnectable(java.util.Map map, boolean flag)
          Sets the points attribute in the specified map to the specified value.
static void setDashPattern(java.util.Map map, float[] value)
          Sets the value attribute in the specified map to the specified value.
static void setDisconnectable(java.util.Map map, boolean flag)
          Sets the points attribute in the specified map to the specified value.
static void setEditable(java.util.Map map, boolean flag)
          Sets the points attribute in the specified map to the specified value.
static void setEndFill(java.util.Map map, boolean flag)
          Sets the offset attribute in the specified map to the specified value.
static void setEndSize(java.util.Map map, int style)
          Sets the opaque attribute in the specified map to the specified value.
static void setFontName(java.util.Map map, java.lang.String fontName)
          Sets the value attribute in the specified map to the specified value.
static void setFontSize(java.util.Map map, float size)
          Sets the value attribute in the specified map to the specified value.
static void setFontStyle(java.util.Map map, int size)
          Sets the value attribute in the specified map to the specified value.
static void setForeground(java.util.Map map, java.awt.Color value)
          Sets the value attribute in the specified map to the specified value.
static void setHorizontalAlignment(java.util.Map map, int width)
          Sets the opaque attribute in the specified map to the specified value.
static void setHorizontalTextPosition(java.util.Map map, int width)
          Sets the opaque attribute in the specified map to the specified value.
static void setIcon(java.util.Map map, javax.swing.ImageIcon value)
          Sets the value attribute in the specified map to the specified value.
static void setLabelPosition(java.util.Map map, java.awt.Point 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 opaque attribute in the specified map to the specified value.
static void setLineColor(java.util.Map map, java.awt.Color value)
          Sets the value attribute in the specified map to the specified value.
static void setLineEnd(java.util.Map map, int style)
          Sets the opaque attribute in the specified map to the specified value.
static void setLineStyle(java.util.Map map, int style)
          Sets the opaque attribute in the specified map to the specified value.
static void setLineWidth(java.util.Map map, float width)
          Sets the opaque attribute in the specified map to the specified value.
static void setMoveable(java.util.Map map, boolean flag)
          Sets the points attribute in the specified map to the specified value.
static void setOffset(java.util.Map map, java.awt.Point 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 offset attribute in the specified map to the specified value.
static void setRemoveAttributes(java.util.Map map, java.lang.Object[] value)
          Sets the value 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 points 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 width)
          Sets the opaque attribute in the specified map to the specified value.
static void setVerticalTextPosition(java.util.Map map, int width)
          Sets the opaque attribute in the specified map to the specified value.
static void setVisible(java.util.Map map, boolean flag)
          Sets the points attribute in the specified map to the specified value.
static void translate(java.util.Collection c, int dx, int dy)
          Translates the maps in c using translate(Map, int, int).
static void translate(java.util.Map map, int dx, int dy)
          Translates map by the given amount.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultFont

public static final java.awt.Font defaultFont

DEFAULTFONTSIZE

public static final float DEFAULTFONTSIZE
Default Font size.

See Also:
Constant Field Values

DEFAULTFONTSTYLE

public static final int DEFAULTFONTSTYLE
Default Font style.

See Also:
Constant Field Values

DEFAULTDECORATIONSIZE

public static final int DEFAULTDECORATIONSIZE
Default decoration size.

See Also:
Constant Field Values

PERCENT

public static final int PERCENT
100 percent unit for relative positioning.

See Also:
Constant Field Values

dash

protected static float[] dash
Global Stroke To Highlight Selection


SELECTION_STROKE

public static java.awt.Stroke SELECTION_STROKE

NONE

public static final int NONE
Represents no decoration

See Also:
Constant Field Values

CLASSIC

public static final int CLASSIC
Represents a classic arrow decoration

See Also:
Constant Field Values

TECHNICAL

public static final int TECHNICAL
Represents a technical arrow decoration

See Also:
Constant Field Values

FILLED_TECHNICAL

public static final int FILLED_TECHNICAL
Represents a filled technical arrow decoration

See Also:
Constant Field Values

SIMPLE

public static final int SIMPLE
Represents a simple arrow decoration

See Also:
Constant Field Values

CIRCLE

public static final int CIRCLE
Represents a circle decoration

See Also:
Constant Field Values

FILLED_CIRCLE

public static final int FILLED_CIRCLE
Represents a filled circle decoration

See Also:
Constant Field Values

LINE

public static final int LINE
Represents a line decoration

See Also:
Constant Field Values

DOUBLELINE

public static final int DOUBLELINE
Represents a double line decoration

See Also:
Constant Field Values

DIAMOND

public static final int DIAMOND
Represents a diamond decoration

See Also:
Constant Field Values

FILLED_DIAMOND

public static final int FILLED_DIAMOND
Represents a filled diamond decoration

See Also:
Constant Field Values

ORTHOGONAL

public static final int ORTHOGONAL
Represents an orthogonal line style

See Also:
Constant Field Values

QUADRATIC

public static final int QUADRATIC
Represents an quadratic line style

See Also:
Constant Field Values

BEZIER

public static final int BEZIER
Represents an bezier line style

See Also:
Constant Field Values

REPLACEATTRIBUTES

public static final java.lang.String REPLACEATTRIBUTES
Key for the replaceAttributes 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 the removeAttributes 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 the removeAll 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 the icon attribute. Use instances of ImageIcon as values for this key.

See Also:
Constant Field Values

FONTNAME

public static final java.lang.String FONTNAME
Key for the fontname attribute. Use instances of String as values for this key.

See Also:
Constant Field Values

FONTSIZE

public static final java.lang.String FONTSIZE
Key for the fontsize attribute. Use instances of Integer as values for this key.

See Also:
Constant Field Values

FONTSTYLE

public static final java.lang.String FONTSTYLE
Key for the fontstyle attribute. Use instances of Integer as values for this key.

See Also:
Constant Field Values

OPAQUE

public static final java.lang.String OPAQUE
Key for the opaque 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 the border 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 the linecolor 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 the bordercolor 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 the linewidth 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 the foreground 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 the background 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 the verticalAlignment attribute. Use instances of Integer as values for this key. Constants defined in JLabel class.

See Also:
Constant Field Values

HORIZONTAL_ALIGNMENT

public static final java.lang.String HORIZONTAL_ALIGNMENT
Key for the horizontalAlignment attribute. Use instances of Integer as values for this key. Constants defined in JLabel class.

See Also:
Constant Field Values

VERTICAL_TEXT_POSITION

public static final java.lang.String VERTICAL_TEXT_POSITION
Key for the verticalTextPosition attribute. Use instances of Integer as values for this key. Constants defined in JLabel class.

See Also:
Constant Field Values

HORIZONTAL_TEXT_POSITION

public static final java.lang.String HORIZONTAL_TEXT_POSITION
Key for the horizontalTextPosition attribute. Use instances of Integer as values for this key. Constants defined in JLabel class.

See Also:
Constant Field Values

DASHPATTERN

public static final java.lang.String DASHPATTERN
Key for the dashPattern 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 the lineStyle 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 the start 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 the start 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 the startsize 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 the endsize 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 the startsize 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 the endsize 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 the value attribute. You can use any Object as a value for this key.


EDITABLE

public static final java.lang.String EDITABLE
Key for the editable attribute. Use instances of Boolean as values for this key.


MOVEABLE

public static final java.lang.String MOVEABLE
Key for the moveable attribute. Use instances of Boolean as values for this key.


SIZEABLE

public static final java.lang.String SIZEABLE
Key for the sizeable attribute. Use instances of Boolean as values for this key.


AUTOSIZE

public static final java.lang.String AUTOSIZE
Key for the sizeable attribute. Use instances of Boolean as values for this key.


BENDABLE

public static final java.lang.String BENDABLE
Key for the sizeable attribute. Use instances of Boolean as values for this key.


CONNECTABLE

public static final java.lang.String CONNECTABLE
Key for the moveable attribute. Use instances of Boolean as values for this key.


DISCONNECTABLE

public static final java.lang.String DISCONNECTABLE
Key for the moveable attribute. Use instances of Boolean as values for this key.


BOUNDS

public static final java.lang.String BOUNDS
Key for the bounds attribute. Use instances of Rectangle as values for this key.


POINTS

public static final java.lang.String POINTS
Key for the points attribute. Use instances of List as values for this key. The list should contain Point instances.


LABELPOSITION

public static final java.lang.String LABELPOSITION
Key for the labelposition attribute. Use instances of Point as values for this key.


ABSOLUTE

public static final java.lang.String ABSOLUTE
Key for the absolute attribute. Use instances of Boolean as values for this key.


OFFSET

public static final java.lang.String OFFSET
Key for the translate attribute. Use instances of Point as values for this key.


SIZE

public static final java.lang.String SIZE
Key for the resize attribute. Use instances of Dimension as values for this key.


VISIBLE

public static final java.lang.String VISIBLE
Key for the visible attribute. Use instances of Boolean as values for this key.

Constructor Detail

GraphConstants

public GraphConstants()
Method Detail

createAttributeMap

public static java.util.Map createAttributeMap(CellView[] views,
                                               CellMapper cm)
Returns a new map, from CellViews to maps, which in turn map from keys to values. The maps are retrieved from the views attributes, and the view returned by cm is used 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 cell views to maps, which in turn map from keys to values.


createPropertyMap

public static java.util.Map createPropertyMap(java.lang.Object[] elements,
                                              CellMapper cm)
Returns a new map, from cells to property maps. The elements may be instances of CellView, 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, the element 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.


createMap

public static java.util.Map createMap()
Creates an empty map. This method returns a new instance of Hashtable.


replaceKeys

public static java.util.Map replaceKeys(java.util.Map keyMap,
                                        java.util.Map map)
Replace the keys in map using keyMapmap must itself be a map, and is cloned using cloneMap.


cloneMap

public static java.util.Map cloneMap(java.util.Map map)
Returns a clone of map, from keys to values. If the map contains bounds or points, these are cloned as well. References to PortViews are replaces by points.


translate

public static void translate(java.util.Collection c,
                             int dx,
                             int dy)
Translates the maps in c using translate(Map, int, int).


translate

public static void translate(java.util.Map map,
                             int dx,
                             int dy)
Translates map by the given amount.


scale

public static void scale(java.util.Map map,
                         double sx,
                         double sy,
                         java.awt.Point origin)
Scales map by the given amount.


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 the value attribute in the specified map to the specified value.


getRemoveAttributes

public static final java.lang.Object[] getRemoveAttributes(java.util.Map map)
Returns the value attribute from the specified map.


applyMap

public static void applyMap(java.util.Map change,
                            java.util.Map target)
Apply the change to the target. change must be a Map previously obtained from this object.


setIcon

public static final void setIcon(java.util.Map map,
                                 javax.swing.ImageIcon value)
Sets the value attribute in the specified map to the specified value.


getIcon

public static final javax.swing.ImageIcon getIcon(java.util.Map map)
Returns the value attribute from the specified map.


setFontName

public static final void setFontName(java.util.Map map,
                                     java.lang.String fontName)
Sets the value attribute in the specified map to the specified value.


getFontName

public static final java.lang.String getFontName(java.util.Map map)
Returns the value attribute from the specified map.


setFontSize

public static final void setFontSize(java.util.Map map,
                                     float size)
Sets the value attribute in the specified map to the specified value.


getFontSize

public static final float getFontSize(java.util.Map map)
Returns the value attribute from the specified map.


setFontStyle

public static final void setFontStyle(java.util.Map map,
                                      int size)
Sets the value attribute in the specified map to the specified value.


getFontStyle

public static final int getFontStyle(java.util.Map map)
Returns the value 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.


setBorder

public static final void setBorder(java.util.Map map,
                                   javax.swing.border.Border value)
Sets the value attribute in the specified map to the specified value.


getBorder

public static final javax.swing.border.Border getBorder(java.util.Map map)
Returns the value attribute from the specified map.


setLineColor

public static final void setLineColor(java.util.Map map,
                                      java.awt.Color value)
Sets the value attribute in the specified map to the specified value.


getLineColor

public static final java.awt.Color getLineColor(java.util.Map map)
Returns the value attribute from the specified map.


setBorderColor

public static final void setBorderColor(java.util.Map map,
                                        java.awt.Color value)
Sets the value attribute in the specified map to the specified value.


getBorderColor

public static final java.awt.Color getBorderColor(java.util.Map map)
Returns the value attribute from the specified map.


setLineWidth

public static final void setLineWidth(java.util.Map map,
                                      float width)
Sets the opaque attribute in the specified map to the specified value.


getLineWidth

public static final float getLineWidth(java.util.Map map)
Returns the opaque attribute from the specified map.


setForeground

public static final void setForeground(java.util.Map map,
                                       java.awt.Color value)
Sets the value attribute in the specified map to the specified value.


getForeground

public static final java.awt.Color getForeground(java.util.Map map)
Returns the value attribute from the specified map.


setBackground

public static final void setBackground(java.util.Map map,
                                       java.awt.Color value)
Sets the value attribute in the specified map to the specified value.


getBackground

public static final java.awt.Color getBackground(java.util.Map map)
Returns the value attribute from the specified map.


setVerticalAlignment

public static final void setVerticalAlignment(java.util.Map map,
                                              int width)
Sets the opaque attribute in the specified map to the specified value.


getVerticalAlignment

public static final int getVerticalAlignment(java.util.Map map)
Returns the opaque attribute from the specified map.


setHorizontalAlignment

public static final void setHorizontalAlignment(java.util.Map map,
                                                int width)
Sets the opaque attribute in the specified map to the specified value.


getHorizontalAlignment

public static final int getHorizontalAlignment(java.util.Map map)
Returns the opaque attribute from the specified map.


setVerticalTextPosition

public static final void setVerticalTextPosition(java.util.Map map,
                                                 int width)
Sets the opaque attribute in the specified map to the specified value.


getVerticalTextPosition

public static final int getVerticalTextPosition(java.util.Map map)
Returns the opaque attribute from the specified map.


setHorizontalTextPosition

public static final void setHorizontalTextPosition(java.util.Map map,
                                                   int width)
Sets the opaque attribute in the specified map to the specified value.


getHorizontalTextPosition

public static final int getHorizontalTextPosition(java.util.Map map)
Returns the opaque attribute from the specified map.


setDashPattern

public static final void setDashPattern(java.util.Map map,
                                        float[] value)
Sets the value attribute in the specified map to the specified value.


getDashPattern

public static final float[] getDashPattern(java.util.Map map)
Returns the value attribute from the specified map.


setLineStyle

public static final void setLineStyle(java.util.Map map,
                                      int style)
Sets the opaque attribute in the specified map to the specified value.


getLineStyle

public static final int getLineStyle(java.util.Map map)
Returns the opaque attribute from the specified map.


setBeginSize

public static final void setBeginSize(java.util.Map map,
                                      int style)
Sets the opaque attribute in the specified map to the specified value.


getBeginSize

public static final int getBeginSize(java.util.Map map)
Returns the opaque attribute from the specified map.


setEndSize

public static final void setEndSize(java.util.Map map,
                                    int style)
Sets the opaque attribute in the specified map to the specified value.


getEndSize

public static final int getEndSize(java.util.Map map)
Returns the opaque attribute from the specified map.


setLineBegin

public static final void setLineBegin(java.util.Map map,
                                      int style)
Sets the opaque attribute in the specified map to the specified value.


getLineBegin

public static final int getLineBegin(java.util.Map map)
Returns the opaque attribute from the specified map.


setLineEnd

public static final void setLineEnd(java.util.Map map,
                                    int style)
Sets the opaque attribute in the specified map to the specified value.


getLineEnd

public static final int getLineEnd(java.util.Map map)
Returns the opaque attribute from the specified map.


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.


setLabelPosition

public static final void setLabelPosition(java.util.Map map,
                                          java.awt.Point position)
Sets the label position attribute in the specified map to the specified value.


getLabelPosition

public static final java.awt.Point getLabelPosition(java.util.Map map)
Returns the label position attribute from the specified map.


setEditable

public static final void setEditable(java.util.Map map,
                                     boolean flag)
Sets the points attribute in the specified map to the specified value.


isEditable

public static final boolean isEditable(java.util.Map map)
Returns the points attribute from the specified map.


setMoveable

public static final void setMoveable(java.util.Map map,
                                     boolean flag)
Sets the points attribute in the specified map to the specified value.


isMoveable

public static final boolean isMoveable(java.util.Map map)
Returns the points attribute from the specified map.


setSizeable

public static final void setSizeable(java.util.Map map,
                                     boolean flag)
Sets the points 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 points attribute in the specified map to the specified value.


isAutoSize

public static final boolean isAutoSize(java.util.Map map)
Returns the points attribute from the specified map.


setBendable

public static final void setBendable(java.util.Map map,
                                     boolean flag)
Sets the points attribute in the specified map to the specified value.


isBendable

public static final boolean isBendable(java.util.Map map)
Returns the points attribute from the specified map.


setConnectable

public static final void setConnectable(java.util.Map map,
                                        boolean flag)
Sets the points attribute in the specified map to the specified value.


isConnectable

public static final boolean isConnectable(java.util.Map map)
Returns the points attribute from the specified map.


setDisconnectable

public static final void setDisconnectable(java.util.Map map,
                                           boolean flag)
Sets the points attribute in the specified map to the specified value.


isDisconnectable

public static final boolean isDisconnectable(java.util.Map map)
Returns the points 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.


getPoints

public static final java.util.List getPoints(java.util.Map map)
Returns the points attribute from the specified map.


setBounds

public static final void setBounds(java.util.Map map,
                                   java.awt.Rectangle bounds)
Sets the bounds attribute in the specified map to the specified value.


getBounds

public static final java.awt.Rectangle getBounds(java.util.Map map)
Returns the bounds 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.


getSize

public static final java.awt.Dimension getSize(java.util.Map map)
Returns the size attribute from the specified map.


setVisible

public static final void setVisible(java.util.Map map,
                                    boolean flag)
Sets the points attribute in the specified map to the specified value.


isVisible

public static final boolean isVisible(java.util.Map map)
Returns the points attribute from the specified map.


setOffset

public static final void setOffset(java.util.Map map,
                                   java.awt.Point offset)
Sets the offset attribute in the specified map to the specified value.


getOffset

public static final java.awt.Point getOffset(java.util.Map map)
Returns the offset attribute from the specified map.


setBeginFill

public static final void setBeginFill(java.util.Map map,
                                      boolean flag)
Sets the offset attribute in the specified map to the specified value.


isBeginFill

public static final boolean isBeginFill(java.util.Map map)
Returns the offset attribute from the specified map.


setEndFill

public static final void setEndFill(java.util.Map map,
                                    boolean flag)
Sets the offset attribute in the specified map to the specified value.


isEndFill

public static final boolean isEndFill(java.util.Map map)
Returns the offset attribute from the specified map.


setAbsolute

public static final void setAbsolute(java.util.Map map,
                                     boolean flag)
Sets the offset attribute in the specified map to the specified value.


isAbsolute

public static final boolean isAbsolute(java.util.Map map)
Returns the offset attribute from the specified map.


setRemoveAll

public static final void setRemoveAll(java.util.Map map,
                                      boolean flag)
Sets the offset attribute in the specified map to the specified value.


isRemoveAll

public static final boolean isRemoveAll(java.util.Map map)
Returns the offset attribute from the specified map.