org.jgraph.graph.GraphConstants Class Reference

List of all members.

Static Public Member Functions

static Map createAttributes (Object cell, Object key, Object value)
static Map createAttributes (Object[] cells, Object key, Object value)
static Map createAttributes (Object[] cells, Object[] keys, Object[] values)
static Map createAttributes (Object[] elements, CellMapper cm)
static Map createAttributesFromModel (Object[] elements, GraphModel model)
static Map replaceKeys (Map keyMap, Map map)
static Map merge (Map change, Map target)
static void setFont (Map map, Font font)
static Font getFont (Map map)
static final void setRemoveAttributes (Map map, Object[] value)
static final Object[] getRemoveAttributes (Map map)
static final void setMoveableAxis (Map map, int axis)
static final int getMoveableAxis (Map map)
static final void setSizeableAxis (Map map, int axis)
static final int getSizeableAxis (Map map)
static final void setIcon (Map map, Icon value)
static final Icon getIcon (Map map)
static final void setOpaque (Map map, boolean flag)
static final boolean isOpaque (Map map)
static final void setGroupOpaque (Map map, boolean flag)
static final boolean isGroupOpaque (Map map)
static final void setBorder (Map map, Border value)
static final Border getBorder (Map map)
static final void setLineColor (Map map, Color value)
static final Color getLineColor (Map map)
static final void setBorderColor (Map map, Color value)
static final Color getBorderColor (Map map)
static final void setLineWidth (Map map, float width)
static final float getLineWidth (Map map)
static final void setForeground (Map map, Color value)
static final Color getForeground (Map map)
static final void setBackground (Map map, Color value)
static final Color getBackground (Map map)
static final void setGradientColor (Map map, Color value)
static final Color getGradientColor (Map map)
static final void setVerticalAlignment (Map map, int alignment)
static final int getVerticalAlignment (Map map)
static final void setHorizontalAlignment (Map map, int alignment)
static final int getHorizontalAlignment (Map map)
static final void setVerticalTextPosition (Map map, int textPosition)
static final int getVerticalTextPosition (Map map)
static final void setHorizontalTextPosition (Map map, int textPosition)
static final int getHorizontalTextPosition (Map map)
static final void setDashPattern (Map map, float[] value)
static final float[] getDashPattern (Map map)
static final void setDashOffset (Map map, float value)
static final float getDashOffset (Map map)
static final void setLineStyle (Map map, int style)
static final int getLineStyle (Map map)
static final void setBeginSize (Map map, int style)
static final int getBeginSize (Map map)
static final void setEndSize (Map map, int style)
static final int getEndSize (Map map)
static final void setLineBegin (Map map, int style)
static final int getLineBegin (Map map)
static final void setLineEnd (Map map, int style)
static final int getLineEnd (Map map)
static final void setValue (Map map, Object value)
static final Object getValue (Map map)
static final void setLabelPosition (Map map, Point2D position)
static final Point2D getLabelPosition (Map map)
static final void setExtraLabels (Map map, Object[] definitions)
static final Object[] getExtraLabels (Map map)
static final void setExtraLabelPositions (Map map, Point2D[] positions)
static final Point2D[] getExtraLabelPositions (Map map)
static final void setLabelAlongEdge (Map map, boolean flag)
static final boolean isLabelAlongEdge (Map map)
static final void setEditable (Map map, boolean flag)
static final boolean isEditable (Map map)
static final void setMoveable (Map map, boolean flag)
static final boolean isMoveable (Map map)
static final void setSizeable (Map map, boolean flag)
static final boolean isSizeable (Map map)
static final void setAutoSize (Map map, boolean flag)
static final boolean isAutoSize (Map map)
static final void setResize (Map map, boolean flag)
static final boolean isResize (Map map)
static final void setConstrained (Map map, boolean flag)
static final boolean isConstrained (Map map)
static final void setSelectable (Map map, boolean flag)
static final boolean isSelectable (Map map)
static final void setChildrenSelectable (Map map, boolean flag)
static final boolean isChildrenSelectable (Map map)
static final void setBendable (Map map, boolean flag)
static final boolean isBendable (Map map)
static final void setConnectable (Map map, boolean flag)
static final boolean isConnectable (Map map)
static final void setDisconnectable (Map map, boolean flag)
static final boolean isDisconnectable (Map map)
static final void setPoints (Map map, java.util.List list)
static final java.util.List getPoints (Map map)
static final void setRouting (Map map, Edge.Routing routing)
static final Edge.Routing getRouting (Map map)
static final void setBounds (Map map, Rectangle2D bounds)
static final Rectangle2D getBounds (Map map)
static final void setInset (Map map, int width)
static final int getInset (Map map)
static final void setSize (Map map, Dimension size)
static final Dimension getSize (Map map)
static final void setOffset (Map map, Point2D offset)
static final Point2D getOffset (Map map)
static final void setBeginFill (Map map, boolean flag)
static final boolean isBeginFill (Map map)
static final void setEndFill (Map map, boolean flag)
static final boolean isEndFill (Map map)
static final void setAbsolute (Map map, boolean flag)
static final void setAbsoluteY (Map map, boolean flag)
static final boolean isAbsoluteY (Map map)
static final void setAbsoluteX (Map map, boolean flag)
static final boolean isAbsoluteX (Map map)
static final void setRemoveAll (Map map, boolean flag)
static final boolean isRemoveAll (Map map)
static Edge.Routing getROUTING_SIMPLE ()
static Edge.Routing getROUTING_DEFAULT ()

Static Public Attributes

static Font DEFAULTFONT = null
static int DEFAULTDECORATIONSIZE = 10
static int DEFAULTINSET = 0
static final int PERMILLE = 1000
static Stroke SELECTION_STROKE
static final int ARROW_NONE = 0
static final int ARROW_CLASSIC = 1
static final int ARROW_TECHNICAL = 2
static final int ARROW_SIMPLE = 4
static final int ARROW_CIRCLE = 5
static final int ARROW_LINE = 7
static final int ARROW_DOUBLELINE = 8
static final int ARROW_DIAMOND = 9
static final int STYLE_ORTHOGONAL = 11
static final int STYLE_BEZIER = 12
static final int STYLE_SPLINE = 13
static final int X_AXIS = 1
static final int Y_AXIS = 2
static Edge.Routing ROUTING_DEFAULT = new DefaultEdge.LoopRouting()
static final Edge.Routing ROUTING_SIMPLE = new DefaultEdge.DefaultRouting()
static final String SIZEABLEAXIS = "sizeableAxis"
static final String MOVEABLEAXIS = "moveableAxis"
static final String REPLACEATTRIBUTES = "replaceAttributes"
static final String REMOVEATTRIBUTES = "removeAttributes"
static final String REMOVEALL = "removeAll"
static final String ICON = "icon"
static final String FONT = "font"
static final String OPAQUE = "opaque"
static final String GROUPOPAQUE = "groupOpaque"
static final String BORDER = "border"
static final String LINECOLOR = "linecolor"
static final String BORDERCOLOR = "bordercolor"
static final String LINEWIDTH = "linewidth"
static final String FOREGROUND = "foregroundColor"
static final String BACKGROUND = "backgroundColor"
static final String GRADIENTCOLOR = "gradientColor"
static final String VERTICAL_ALIGNMENT = "verticalAlignment"
static final String HORIZONTAL_ALIGNMENT = "horizontalAlignment"
static final String VERTICAL_TEXT_POSITION = "verticalTextPosition"
static final String HORIZONTAL_TEXT_POSITION = "horizontalTextPosition"
static final String DASHPATTERN = "dashPattern"
static final String DASHOFFSET = "dashOffset"
static final String LINESTYLE = "lineStyle"
static final String LINEBEGIN = "lineBegin"
static final String LINEEND = "lineEnd"
static final String BEGINSIZE = "beginSize"
static final String ENDSIZE = "endSize"
static final String BEGINFILL = "beginFill"
static final String ENDFILL = "endFill"
static final String VALUE = "value"
static final String EDITABLE = "editable"
static final String MOVEABLE = "moveable"
static final String SIZEABLE = "sizeable"
static final String AUTOSIZE = "autosize"
static final String RESIZE = "resize"
static final String INSET = "inset"
static final String CONSTRAINED = "constrained"
static final String SELECTABLE = "selectable"
static final String CHILDRENSELECTABLE = "childrenSelectable"
static final String MOVEHIDDENCHILDREN = "childrenSelectable"
static final String BENDABLE = "bendable"
static final String CONNECTABLE = "connectable"
static final String DISCONNECTABLE = "disconnectable"
static final String BOUNDS = "bounds"
static final String POINTS = "points"
static final String ROUTING = "routing"
static final String LABELPOSITION = "labelposition"
static final String EXTRALABELS = "extraLabels"
static final String EXTRALABELPOSITIONS = "extraLabelPositions"
static final String LABELALONGEDGE = "labelAlongEdge"
static final String ABSOLUTEX = "absoluteX"
static final String ABSOLUTEY = "absoluteY"
static final String OFFSET = "offset"
static final String SIZE = "size"

Static Protected Attributes

static float[] dash = { 5f, 5f }

Static Package Functions

 [static initializer]

Detailed Description

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)

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Member Function Documentation

org.jgraph.graph.GraphConstants.[static initializer]  )  [static, package]
 

GetFont in UIDefaults requires a valid framebuffer, so we implement a fallback to a static default setting.

static Map org.jgraph.graph.GraphConstants.createAttributes Object[]  elements,
CellMapper  cm
[static]
 

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.

static Map org.jgraph.graph.GraphConstants.createAttributes Object[]  cells,
Object[]  keys,
Object[]  values
[static]
 

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. The keys and values parameters must match in size.

static Map org.jgraph.graph.GraphConstants.createAttributes Object[]  cells,
Object  key,
Object  value
[static]
 

Overloaded method that passes arguments on as arrays

static Map org.jgraph.graph.GraphConstants.createAttributes Object  cell,
Object  key,
Object  value
[static]
 

Overloaded method that passes arguments on as arrays

static Map org.jgraph.graph.GraphConstants.createAttributesFromModel Object[]  elements,
GraphModel  model
[static]
 

static final Color org.jgraph.graph.GraphConstants.getBackground Map  map  )  [static]
 

Returns the background attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getBeginSize Map  map  )  [static]
 

Returns the beginsize attribute from the specified map.

static final Border org.jgraph.graph.GraphConstants.getBorder Map  map  )  [static]
 

Returns the border attribute from the specified map.

static final Color org.jgraph.graph.GraphConstants.getBorderColor Map  map  )  [static]
 

Returns the bordercolor attribute from the specified map.

static final Rectangle2D org.jgraph.graph.GraphConstants.getBounds Map  map  )  [static]
 

Returns the bounds attribute from the specified map. Note: The CellView interface offers a getBounds method!

static final float org.jgraph.graph.GraphConstants.getDashOffset Map  map  )  [static]
 

Returns the dashoffset attribute from the specified map.

static final float [] org.jgraph.graph.GraphConstants.getDashPattern Map  map  )  [static]
 

Returns the dashpattern attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getEndSize Map  map  )  [static]
 

Returns the endsize attribute from the specified map.

static final Point2D [] org.jgraph.graph.GraphConstants.getExtraLabelPositions Map  map  )  [static]
 

Returns the extralabelpositions attribute from the specified map. Extra labels only work with edges currently.

static final Object [] org.jgraph.graph.GraphConstants.getExtraLabels Map  map  )  [static]
 

Returns the additional label objects from the specified map.Extra labels only work with edges currently.

static Font org.jgraph.graph.GraphConstants.getFont Map  map  )  [static]
 

Returns the font for the specified attribute map. Uses default font if no font is specified in the attribute map.

static final Color org.jgraph.graph.GraphConstants.getForeground Map  map  )  [static]
 

Returns the foreground attribute from the specified map.

static final Color org.jgraph.graph.GraphConstants.getGradientColor Map  map  )  [static]
 

Returns the gradientcolor attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getHorizontalAlignment Map  map  )  [static]
 

Returns the horizontalalignment attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getHorizontalTextPosition Map  map  )  [static]
 

Returns the horizontaltextposition attribute from the specified map.

static final Icon org.jgraph.graph.GraphConstants.getIcon Map  map  )  [static]
 

Returns the icon attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getInset Map  map  )  [static]
 

Returns the inset attribute from the specified map. Note: The CellView interface offers a getBounds method!

static final Point2D org.jgraph.graph.GraphConstants.getLabelPosition Map  map  )  [static]
 

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

static final int org.jgraph.graph.GraphConstants.getLineBegin Map  map  )  [static]
 

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.

See also:
ARROW_NONE

ARROW_CLASSIC

ARROW_TECHNICAL

ARROW_SIMPLE

ARROW_CIRCLE

ARROW_LINE

ARROW_DOUBLELINE

ARROW_DIAMOND

static final Color org.jgraph.graph.GraphConstants.getLineColor Map  map  )  [static]
 

Returns the linecolor attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getLineEnd Map  map  )  [static]
 

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.

See also:
ARROW_NONE

ARROW_CLASSIC

ARROW_TECHNICAL

ARROW_SIMPLE

ARROW_CIRCLE

ARROW_LINE

ARROW_DOUBLELINE

ARROW_DIAMOND

static final int org.jgraph.graph.GraphConstants.getLineStyle Map  map  )  [static]
 

Returns the linestyle attribute from the specified map.

static final float org.jgraph.graph.GraphConstants.getLineWidth Map  map  )  [static]
 

Returns the linewidth attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getMoveableAxis Map  map  )  [static]
 

Returns the moveableaxis attribute from the specified map.

static final Point2D org.jgraph.graph.GraphConstants.getOffset Map  map  )  [static]
 

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.

static final java.util.List org.jgraph.graph.GraphConstants.getPoints Map  map  )  [static]
 

Returns the points attribute from the specified map.

See also:
setPoints(Map, java.util.List)

static final Object [] org.jgraph.graph.GraphConstants.getRemoveAttributes Map  map  )  [static]
 

Returns the attribute marked as for removal in the specified map.

static final Edge.Routing org.jgraph.graph.GraphConstants.getRouting Map  map  )  [static]
 

Returns the routing attribute from the specified map.

static Edge.Routing org.jgraph.graph.GraphConstants.getROUTING_DEFAULT  )  [static]
 

Returns:
Returns the ROUTING_SIMPLE.

static Edge.Routing org.jgraph.graph.GraphConstants.getROUTING_SIMPLE  )  [static]
 

Returns:
Returns the ROUTING_SIMPLE.

static final Dimension org.jgraph.graph.GraphConstants.getSize Map  map  )  [static]
 

Returns the size attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getSizeableAxis Map  map  )  [static]
 

Returns the sizeableAxis attribute from the specified map.

static final Object org.jgraph.graph.GraphConstants.getValue Map  map  )  [static]
 

Returns the value attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getVerticalAlignment Map  map  )  [static]
 

Returns the verticalalignment attribute from the specified map.

static final int org.jgraph.graph.GraphConstants.getVerticalTextPosition Map  map  )  [static]
 

Returns the verticaltextposition attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isAbsoluteX Map  map  )  [static]
 

Returns the absolutex attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isAbsoluteY Map  map  )  [static]
 

Returns the absolutey attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isAutoSize Map  map  )  [static]
 

Returns the autosize attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isBeginFill Map  map  )  [static]
 

Returns the beginfill attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isBendable Map  map  )  [static]
 

Returns the bendable attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isChildrenSelectable Map  map  )  [static]
 

Returns the childrenselectable attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isConnectable Map  map  )  [static]
 

Returns the connectable attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isConstrained Map  map  )  [static]
 

Returns the constrained attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isDisconnectable Map  map  )  [static]
 

Returns the disconnectable attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isEditable Map  map  )  [static]
 

Returns the editable attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isEndFill Map  map  )  [static]
 

Returns the endfill attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isGroupOpaque Map  map  )  [static]
 

Returns the opaque attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isLabelAlongEdge Map  map  )  [static]
 

Returns the true if the label should be painted along the edge. Defaults to false.

static final boolean org.jgraph.graph.GraphConstants.isMoveable Map  map  )  [static]
 

Returns the moveable attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isOpaque Map  map  )  [static]
 

Returns the opaque attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isRemoveAll Map  map  )  [static]
 

Returns the removeall attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isResize Map  map  )  [static]
 

Returns the resize attribute from the specified map.

static final boolean org.jgraph.graph.GraphConstants.isSelectable Map  map  )  [static]
 

Returns the selectable attribute from the specified map.

See also:
setSelectable(Map, boolean)

static final boolean org.jgraph.graph.GraphConstants.isSizeable Map  map  )  [static]
 

Returns the sizeable attribute from the specified map.

static Map org.jgraph.graph.GraphConstants.merge Map  change,
Map  target
[static]
 

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 from change and adds entries to target in-place!

Returns:
a map including all attributes from change merged with target

static Map org.jgraph.graph.GraphConstants.replaceKeys Map  keyMap,
Map  map
[static]
 

Replace the keys in map using keyMap</code, which maps from old to new keys. The value in map must itself be a map, and is cloned using cloneMap.

static final void org.jgraph.graph.GraphConstants.setAbsolute Map  map,
boolean  flag
[static]
 

Sets the absolute attributes in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setAbsoluteX Map  map,
boolean  flag
[static]
 

Sets the absolutex attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setAbsoluteY Map  map,
boolean  flag
[static]
 

Sets the absolutey attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setAutoSize Map  map,
boolean  flag
[static]
 

Sets the autosize attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setBackground Map  map,
Color  value
[static]
 

Sets the background attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setBeginFill Map  map,
boolean  flag
[static]
 

Sets the beginfill attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setBeginSize Map  map,
int  style
[static]
 

Sets the beginsize attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setBendable Map  map,
boolean  flag
[static]
 

Sets the bendable attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setBorder Map  map,
Border  value
[static]
 

Sets the border attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setBorderColor Map  map,
Color  value
[static]
 

Sets the bordercolor attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setBounds Map  map,
Rectangle2D  bounds
[static]
 

Sets the bounds attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setChildrenSelectable Map  map,
boolean  flag
[static]
 

Sets the childrenselectable attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setConnectable Map  map,
boolean  flag
[static]
 

Sets the connectable attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setConstrained Map  map,
boolean  flag
[static]
 

Sets the constrained attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setDashOffset Map  map,
float  value
[static]
 

Sets the dashoffset attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setDashPattern Map  map,
float[]  value
[static]
 

Sets the dashpattern attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setDisconnectable Map  map,
boolean  flag
[static]
 

Sets the disconnectable attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setEditable Map  map,
boolean  flag
[static]
 

Sets the editable attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setEndFill Map  map,
boolean  flag
[static]
 

Sets the endfill attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setEndSize Map  map,
int  style
[static]
 

Sets the endsize attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setExtraLabelPositions Map  map,
Point2D[]  positions
[static]
 

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)

static final void org.jgraph.graph.GraphConstants.setExtraLabels Map  map,
Object[]  definitions
[static]
 

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.

static void org.jgraph.graph.GraphConstants.setFont Map  map,
Font  font
[static]
 

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.

static final void org.jgraph.graph.GraphConstants.setForeground Map  map,
Color  value
[static]
 

Sets the foregrund attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setGradientColor Map  map,
Color  value
[static]
 

Sets the gradientcolor attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setGroupOpaque Map  map,
boolean  flag
[static]
 

Sets the opaque attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setHorizontalAlignment Map  map,
int  alignment
[static]
 

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.

static final void org.jgraph.graph.GraphConstants.setHorizontalTextPosition Map  map,
int  textPosition
[static]
 

This method set the text of a label on vertext cell relative to image. See JLabel api. Default value is JLabel.CENTER.

static final void org.jgraph.graph.GraphConstants.setIcon Map  map,
Icon  value
[static]
 

Sets the icon attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setInset Map  map,
int  width
[static]
 

Sets the inset attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setLabelAlongEdge Map  map,
boolean  flag
[static]
 

Sets if the label should be painted along the edge.

static final void org.jgraph.graph.GraphConstants.setLabelPosition Map  map,
Point2D  position
[static]
 

Sets the label position attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setLineBegin Map  map,
int  style
[static]
 

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.

See also:
ARROW_NONE

ARROW_CLASSIC

ARROW_TECHNICAL

ARROW_SIMPLE

ARROW_CIRCLE

ARROW_LINE

ARROW_DOUBLELINE

ARROW_DIAMOND

static final void org.jgraph.graph.GraphConstants.setLineColor Map  map,
Color  value
[static]
 

Sets the linecolor attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setLineEnd Map  map,
int  style
[static]
 

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.

See also:
ARROW_NONE

ARROW_CLASSIC

ARROW_TECHNICAL

ARROW_SIMPLE

ARROW_CIRCLE

ARROW_LINE

ARROW_DOUBLELINE

ARROW_DIAMOND

static final void org.jgraph.graph.GraphConstants.setLineStyle Map  map,
int  style
[static]
 

Sets the linestyle attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setLineWidth Map  map,
float  width
[static]
 

Sets the linewidth attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setMoveable Map  map,
boolean  flag
[static]
 

Sets the moveable attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setMoveableAxis Map  map,
int  axis
[static]
 

Sets the moveableaxis attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setOffset Map  map,
Point2D  offset
[static]
 

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.

static final void org.jgraph.graph.GraphConstants.setOpaque Map  map,
boolean  flag
[static]
 

Sets the opaque attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setPoints Map  map,
java.util.List  list
[static]
 

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.

static final void org.jgraph.graph.GraphConstants.setRemoveAll Map  map,
boolean  flag
[static]
 

Sets the removeall attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setRemoveAttributes Map  map,
Object[]  value
[static]
 

Sets specific attributes are being marked for removal @ param map The transport map indicating the attribute removal @ param value The attributes to be removed

static final void org.jgraph.graph.GraphConstants.setResize Map  map,
boolean  flag
[static]
 

Sets the resize attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setRouting Map  map,
Edge.Routing  routing
[static]
 

Sets the routing attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setSelectable Map  map,
boolean  flag
[static]
 

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.

static final void org.jgraph.graph.GraphConstants.setSize Map  map,
Dimension  size
[static]
 

Sets the size attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setSizeable Map  map,
boolean  flag
[static]
 

Sets the sizeable attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setSizeableAxis Map  map,
int  axis
[static]
 

Sets the sizeableAxis attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setValue Map  map,
Object  value
[static]
 

Sets the value attribute in the specified map to the specified value.

static final void org.jgraph.graph.GraphConstants.setVerticalAlignment Map  map,
int  alignment
[static]
 

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.

static final void org.jgraph.graph.GraphConstants.setVerticalTextPosition Map  map,
int  textPosition
[static]
 

This method set the text of a label on vertext cell relative to image. See JLabel api. Default value is JLabel.BOTTOM.


Member Data Documentation

final String org.jgraph.graph.GraphConstants.ABSOLUTEX = "absoluteX" [static]
 

Key for the absoluteX attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.ABSOLUTEY = "absoluteY" [static]
 

Key for the absoluteY attribute. Use instances of Boolean as values for this key.

final int org.jgraph.graph.GraphConstants.ARROW_CIRCLE = 5 [static]
 

Represents a circle decoration for the beginning or ending of edges.

See also:
setLineBegin(Map, int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final int org.jgraph.graph.GraphConstants.ARROW_CLASSIC = 1 [static]
 

Represents a classic arrow decoration for the beginning or ending of edges.

See also:
setLineBegin(Map,int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final int org.jgraph.graph.GraphConstants.ARROW_DIAMOND = 9 [static]
 

Represents a diamond decoration for the beginning or ending of edges.

See also:
setLineBegin(Map, int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final int org.jgraph.graph.GraphConstants.ARROW_DOUBLELINE = 8 [static]
 

Represents a double line decoration for the beginning or ending of edges.

See also:
setLineBegin(Map, int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final int org.jgraph.graph.GraphConstants.ARROW_LINE = 7 [static]
 

Represents a line decoration for the beginning or ending of edges.

See also:
setLineBegin(Map, int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final int org.jgraph.graph.GraphConstants.ARROW_NONE = 0 [static]
 

Represents no decoration for the beginning or ending of edges.

See also:
setLineBegin(Map, int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final int org.jgraph.graph.GraphConstants.ARROW_SIMPLE = 4 [static]
 

Represents a simple arrow decoration for the beginning or ending of edges.

See also:
setLineBegin(Map,int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final int org.jgraph.graph.GraphConstants.ARROW_TECHNICAL = 2 [static]
 

Represents a technical arrow decoration for the beginning or ending of edges.

See also:
setLineBegin(Map, int)

getLineBegin(Map)

setLineEnd(Map, int)

getLineEnd(Map)

final String org.jgraph.graph.GraphConstants.AUTOSIZE = "autosize" [static]
 

Key for the autosize attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.BACKGROUND = "backgroundColor" [static]
 

Key for the background attribute. Use instances of Color as values for this key.

final String org.jgraph.graph.GraphConstants.BEGINFILL = "beginFill" [static]
 

Key for the beginFill attribute. Use instances of Integer as values for this key.

final String org.jgraph.graph.GraphConstants.BEGINSIZE = "beginSize" [static]
 

Key for the beginSize attribute. Use instances of Integer as values for this key.

final String org.jgraph.graph.GraphConstants.BENDABLE = "bendable" [static]
 

Key for the bendable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.BORDER = "border" [static]
 

Key for the border attribute. Use instances of Border as values for this key. Optionally, you can set the global instance of LineBorder.

final String org.jgraph.graph.GraphConstants.BORDERCOLOR = "bordercolor" [static]
 

Key for the bordercolor attribute. Use instances of Color as values for this key.

final String org.jgraph.graph.GraphConstants.BOUNDS = "bounds" [static]
 

Key for the bounds attribute. Use instances of Rectangle as values for this key.

final String org.jgraph.graph.GraphConstants.CHILDRENSELECTABLE = "childrenSelectable" [static]
 

Key for the childrenSelectable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.CONNECTABLE = "connectable" [static]
 

Key for the connectable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.CONSTRAINED = "constrained" [static]
 

Key for the constrained attribute. Use instances of Boolean as values for this key.

float [] org.jgraph.graph.GraphConstants.dash = { 5f, 5f } [static, protected]
 

Global Stroke To Highlight Selection

final String org.jgraph.graph.GraphConstants.DASHOFFSET = "dashOffset" [static]
 

Key for the dashOffset attribute. Use instances of float as values for this key.

final String org.jgraph.graph.GraphConstants.DASHPATTERN = "dashPattern" [static]
 

Key for the dashPattern attribute. Use instances of float[] as values for this key.

int org.jgraph.graph.GraphConstants.DEFAULTDECORATIONSIZE = 10 [static]
 

Default decoration size. Value is 0.

Font org.jgraph.graph.GraphConstants.DEFAULTFONT = null [static]
 

Default font is derived from UIManager.getDefaults().getFont("Label.font")

int org.jgraph.graph.GraphConstants.DEFAULTINSET = 0 [static]
 

Default inset size. Value is 0.

final String org.jgraph.graph.GraphConstants.DISCONNECTABLE = "disconnectable" [static]
 

Key for the disconnectable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.EDITABLE = "editable" [static]
 

Key for the editable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.ENDFILL = "endFill" [static]
 

Key for the endFill attribute. Use instances of Integer as values for this key.

final String org.jgraph.graph.GraphConstants.ENDSIZE = "endSize" [static]
 

Key for the endSize attribute. Use instances of Integer as values for this key.

final String org.jgraph.graph.GraphConstants.EXTRALABELPOSITIONS = "extraLabelPositions" [static]
 

Key for the extraLabelPositions attribute. Use arrays of Points as values for this key.

final String org.jgraph.graph.GraphConstants.EXTRALABELS = "extraLabels" [static]
 

Key for the extraLabels attribute. Use arrays of Objects as values for this key, where the toString() methods of the objects provide the label text value.

final String org.jgraph.graph.GraphConstants.FONT = "font" [static]
 

Key for the font attribute. Use instances of Font as values for this key.

final String org.jgraph.graph.GraphConstants.FOREGROUND = "foregroundColor" [static]
 

Key for the foreground attribute. Use instances of Color as values for this key.

final String org.jgraph.graph.GraphConstants.GRADIENTCOLOR = "gradientColor" [static]
 

Key for the gradient attribute. Use instances of Color as values for this key.

final String org.jgraph.graph.GraphConstants.GROUPOPAQUE = "groupOpaque" [static]
 

Key for the groupOpaque attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.HORIZONTAL_ALIGNMENT = "horizontalAlignment" [static]
 

Key for the horizontalAlignment attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This Key/Value pair is for placment of label on vertex cell. Valid values would be JLabel.LEFT, JLabel.CENTER, JLabel.RIGHT

final String org.jgraph.graph.GraphConstants.HORIZONTAL_TEXT_POSITION = "horizontalTextPosition" [static]
 

Key for the horizontalTextPosition attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This Key/Value pair affects text postion of label on vertex cell relative to image, the value is of type SwingConstant.

final String org.jgraph.graph.GraphConstants.ICON = "icon" [static]
 

Key for the icon attribute. Use instances of Icon as values for this key.

final String org.jgraph.graph.GraphConstants.INSET = "inset" [static]
 

Key for the inset attribute. Use instances of Integer as values for this key.

final String org.jgraph.graph.GraphConstants.LABELALONGEDGE = "labelAlongEdge" [static]
 

Key for the labelAlongEdge attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.LABELPOSITION = "labelposition" [static]
 

Key for the labelposition attribute. Use instances of Point as values for this key. This Key/Value pair is for position of text relative to edge cell, and has no effect on label in vertex cell.

final String org.jgraph.graph.GraphConstants.LINEBEGIN = "lineBegin" [static]
 

Key for the lineBegin attribute. Use instances of Integer as values for this key. Constants defined in this class.

final String org.jgraph.graph.GraphConstants.LINECOLOR = "linecolor" [static]
 

Key for the linecolor attribute. Use instances of Color as values for this key.

final String org.jgraph.graph.GraphConstants.LINEEND = "lineEnd" [static]
 

Key for the lineEnd attribute. Use instances of Integer as values for this key. Constants defined in this class.

final String org.jgraph.graph.GraphConstants.LINESTYLE = "lineStyle" [static]
 

Key for the lineStyle attribute. Use instances of Integer as values for this key. Constants defined in this class.

final String org.jgraph.graph.GraphConstants.LINEWIDTH = "linewidth" [static]
 

Key for the linewidth attribute. Use instances of Float as values for this key.

final String org.jgraph.graph.GraphConstants.MOVEABLE = "moveable" [static]
 

Key for the moveable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.MOVEABLEAXIS = "moveableAxis" [static]
 

Key for the moveableAxis attribute. This attribute contains an Integer value indicating along which axis a cell may be moved. Constants defined in this class.

final String org.jgraph.graph.GraphConstants.MOVEHIDDENCHILDREN = "childrenSelectable" [static]
 

Key for the childrenSelectable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.OFFSET = "offset" [static]
 

Key for the offset attribute. Use instances of Point as values for this key.

final String org.jgraph.graph.GraphConstants.OPAQUE = "opaque" [static]
 

Key for the opaque attribute. Use instances of Boolean as values for this key.

final int org.jgraph.graph.GraphConstants.PERMILLE = 1000 [static]
 

100 percent unit for relative positioning. Current value is 1000.

final String org.jgraph.graph.GraphConstants.POINTS = "points" [static]
 

Key for the points attribute. Use instances of List as values for this key. The list should contain Point instances.

final String org.jgraph.graph.GraphConstants.REMOVEALL = "removeAll" [static]
 

Key for the removeAll attribute. This causes the receivers attributes to be replaced by the the map that contains this attribute.

final String org.jgraph.graph.GraphConstants.REMOVEATTRIBUTES = "removeAttributes" [static]
 

Key for the removeAttributes attribute. This special attribute contains a list of attribute-keys which should be removed at the receiving views.

final String org.jgraph.graph.GraphConstants.REPLACEATTRIBUTES = "replaceAttributes" [static]
 

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.

final String org.jgraph.graph.GraphConstants.RESIZE = "resize" [static]
 

Key for the resize attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.ROUTING = "routing" [static]
 

Key for the routing attribute. Use instances of EdgeView.EdgeRouter as values for this key.

Edge.Routing org.jgraph.graph.GraphConstants.ROUTING_DEFAULT = new DefaultEdge.LoopRouting() [static]
 

The default routing that deals with loops. This is returned by getRouting(Map) if there is no routing assigned.

final Edge.Routing org.jgraph.graph.GraphConstants.ROUTING_SIMPLE = new DefaultEdge.DefaultRouting() [static]
 

A simple routing.

final String org.jgraph.graph.GraphConstants.SELECTABLE = "selectable" [static]
 

Key for the selectable attribute. Use instances of Boolean as values for this key.

Stroke org.jgraph.graph.GraphConstants.SELECTION_STROKE [static]
 

Initial value:

 new BasicStroke(1,
                        BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, dash, 0.0f)

final String org.jgraph.graph.GraphConstants.SIZE = "size" [static]
 

Key for the size attribute. Use instances of Dimension as values for this key.

final String org.jgraph.graph.GraphConstants.SIZEABLE = "sizeable" [static]
 

Key for the sizeable attribute. Use instances of Boolean as values for this key.

final String org.jgraph.graph.GraphConstants.SIZEABLEAXIS = "sizeableAxis" [static]
 

Key for the sizeableAxis attribute. This attribute contains an Integer value representing which axis of a cell may be resized/scaled Constants defined in this class.

final int org.jgraph.graph.GraphConstants.STYLE_BEZIER = 12 [static]
 

Represents a bezier line style

final int org.jgraph.graph.GraphConstants.STYLE_ORTHOGONAL = 11 [static]
 

Represents an orthogonal line style

final int org.jgraph.graph.GraphConstants.STYLE_SPLINE = 13 [static]
 

Represents an spline line style

final String org.jgraph.graph.GraphConstants.VALUE = "value" [static]
 

Key for the value attribute. You can use any Object as a value for this key.

final String org.jgraph.graph.GraphConstants.VERTICAL_ALIGNMENT = "verticalAlignment" [static]
 

Key for the verticalAlignment attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This key value pair is for placment of label on vertex cell. Valid values would be JLabel.TOP, JLabel.CENTER, JLABEL.BOTTOM

final String org.jgraph.graph.GraphConstants.VERTICAL_TEXT_POSITION = "verticalTextPosition" [static]
 

Key for the verticalTextPosition attribute. Use instances of Integer as values for this key. Constants defined in JLabel class. This Key/Value pair affects text postion of label on vertex cell relative to image, the value is of type SwingConstant.

final int org.jgraph.graph.GraphConstants.X_AXIS = 1 [static]
 

Represents an bezier line style

final int org.jgraph.graph.GraphConstants.Y_AXIS = 2 [static]
 

Represents an bezier line style


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:15 2006 for Digimod by  doxygen 1.4.6-NO