GoGraph
v1.0


gograph.base.graph
Class GGConstants

java.lang.Object
  |
  +--org.jgraph.graph.GraphConstants
        |
        +--gograph.base.graph.GGConstants

public class GGConstants
extends org.jgraph.graph.GraphConstants

Collection of attribute keys and methods to apply to a Map to get/set the properties in a typesafe manner.

See Also:
GoGraph

Field Summary
static java.lang.String BEING_VISITED
          Vertex algorithm attribute BEING_VISITED.
static java.lang.String FATHER
          Vertex algorithm attribute FATHER.
static java.lang.String PRIORITY
          Vertex algorithm attribute PRIORITY.
static java.lang.String SEEN
          Vertex algorithm attribute SEEN.
static java.lang.String TO_NEXT_VERTEX
          Edge algorithm attribute TO_NEXT_VERTEX.
static java.lang.String USED
          Edge algorithm attribute USED.
static java.lang.String VISITED
          Vertex algorithm attribute VISITED.
 
Fields inherited from class org.jgraph.graph.GraphConstants
ABSOLUTE, ARROW_CIRCLE, ARROW_CLASSIC, ARROW_DIAMOND, ARROW_DOUBLELINE, ARROW_LINE, ARROW_NONE, ARROW_SIMPLE, ARROW_TECHNICAL, AUTOSIZE, availableKeys, BACKGROUND, BEGINFILL, BEGINSIZE, BENDABLE, BORDER, BORDERCOLOR, BOUNDS, CONNECTABLE, dash, DASHPATTERN, DEFAULTDECORATIONSIZE, defaultFont, DEFAULTFONTSIZE, DEFAULTFONTSTYLE, DISCONNECTABLE, dummyPoint, EDITABLE, ENDFILL, ENDSIZE, FONT, FOREGROUND, HORIZONTAL_ALIGNMENT, HORIZONTAL_TEXT_POSITION, ICON, LABELPOSITION, LINEBEGIN, LINECOLOR, LINEEND, LINESTYLE, LINEWIDTH, MOVEABLE, OFFSET, OPAQUE, PERCENT, POINTS, REMOVEALL, REMOVEATTRIBUTES, REPLACEATTRIBUTES, ROUTING, ROUTING_SIMPLE, SELECTION_STROKE, SIZE, SIZEABLE, STYLE_BEZIER, STYLE_ORTHOGONAL, STYLE_QUADRATIC, VALUE, VERTICAL_ALIGNMENT, VERTICAL_TEXT_POSITION
 
Constructor Summary
GGConstants()
           
 
Method Summary
static java.lang.Object getFather(java.util.Map map)
          FATHER attribute getter.
static java.lang.Integer getPriority(java.util.Map map)
          PRIORITY attribute getter.
static java.lang.Integer getWeight(java.util.Map map)
          WEIGHT attribute getter.
static boolean isBeingVisited(java.util.Map map)
          BEING_VISITED attribute getter.
static boolean isSeen(java.util.Map map)
          SEEN attribute getter.
static boolean isToNextVertex(java.util.Map map)
          TO_NEXT_VERTEX attribute getter.
static boolean isUsed(java.util.Map map)
          USED attribute getter.
static boolean isVisited(java.util.Map map)
          VISITED attribute getter.
static void setBeingVisited(java.util.Map map, boolean isBeingVisited)
          BEING_VISITED attribute setter.
static void setFather(java.util.Map map, java.lang.Object aFather)
          FATHER attribute setter.
static void setPriority(java.util.Map map, int priority)
          PRIORITY attribute setter.
static void setSeen(java.util.Map map, boolean isSeen)
          SEEN attribute setter.
static void setToNextVertex(java.util.Map map, boolean isToNextVertex)
          TO_NEXT_VERTEX attribute setter.
static void setUsed(java.util.Map map, boolean isUsed)
          USED attribute setter.
static void setVisited(java.util.Map map, boolean isVisited)
          VISITED attribute setter.
static void setWeight(java.util.Map map, java.lang.String weight)
          WEIGHT attribute setter.
 
Methods inherited from class org.jgraph.graph.GraphConstants
applyMap, cloneMap, clonePoints, createAttributes, createAttributes, createAttributes, createAttributes, createAttributesFromModel, createMap, getBackground, getBeginSize, getBorder, getBorderColor, getBounds, getDashPattern, getEndSize, getFont, getForeground, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getLabelPosition, getLineBegin, getLineColor, getLineEnd, getLineStyle, getLineWidth, getOffset, getPoints, getRemoveAttributes, getRouting, getSize, getValue, getVerticalAlignment, getVerticalTextPosition, isAbsolute, isAutoSize, isBeginFill, isBendable, isConnectable, isDisconnectable, isEditable, isEndFill, isMoveable, isOpaque, isRemoveAll, isSizeable, replaceKeys, scale, setAbsolute, setAutoSize, setBackground, setBeginFill, setBeginSize, setBendable, setBorder, setBorderColor, setBounds, setConnectable, setDashPattern, setDisconnectable, setEditable, setEndFill, setEndSize, setFont, setForeground, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setLabelPosition, setLineBegin, setLineColor, setLineEnd, setLineStyle, setLineWidth, setMoveable, setOffset, setOpaque, setPoints, setRemoveAll, setRemoveAttributes, setRouting, setSize, setSizeable, setValue, setVerticalAlignment, setVerticalTextPosition, translate, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VISITED

public static final java.lang.String VISITED
Vertex algorithm attribute VISITED.

See Also:
Constant Field Values

SEEN

public static final java.lang.String SEEN
Vertex algorithm attribute SEEN.

See Also:
Constant Field Values

BEING_VISITED

public static final java.lang.String BEING_VISITED
Vertex algorithm attribute BEING_VISITED.

See Also:
Constant Field Values

PRIORITY

public static final java.lang.String PRIORITY
Vertex algorithm attribute PRIORITY.

See Also:
Constant Field Values

FATHER

public static final java.lang.String FATHER
Vertex algorithm attribute FATHER.

See Also:
Constant Field Values

USED

public static final java.lang.String USED
Edge algorithm attribute USED.

See Also:
Constant Field Values

TO_NEXT_VERTEX

public static final java.lang.String TO_NEXT_VERTEX
Edge algorithm attribute TO_NEXT_VERTEX.

See Also:
Constant Field Values
Constructor Detail

GGConstants

public GGConstants()
Method Detail

setVisited

public static final void setVisited(java.util.Map map,
                                    boolean isVisited)
VISITED attribute setter.

Parameters:
map - Vertex attributes map.
isVisited - Boolean to set attribute with.

setSeen

public static final void setSeen(java.util.Map map,
                                 boolean isSeen)
SEEN attribute setter.

Parameters:
map - Vertex attributes map.
isSeen - Boolean to set attribute with.

setBeingVisited

public static final void setBeingVisited(java.util.Map map,
                                         boolean isBeingVisited)
BEING_VISITED attribute setter.

Parameters:
map - Vertex attributes map.
isBeingVisited - Boolean to set attribute with.

setPriority

public static final void setPriority(java.util.Map map,
                                     int priority)
PRIORITY attribute setter.

Parameters:
map - Vertex attributes map.
priority - int to set attribute with.

setFather

public static final void setFather(java.util.Map map,
                                   java.lang.Object aFather)
FATHER attribute setter.

Parameters:
map - Vertex attributes map.
aFather - Vertex to set attribute with.

setUsed

public static final void setUsed(java.util.Map map,
                                 boolean isUsed)
USED attribute setter.

Parameters:
map - Edge attributes map.
isUsed - Boolean to set attribute with.

setToNextVertex

public static final void setToNextVertex(java.util.Map map,
                                         boolean isToNextVertex)
TO_NEXT_VERTEX attribute setter.

Parameters:
map - Edge attributes map.
isToNextVertex - Boolean to set attribute with.

setWeight

public static final void setWeight(java.util.Map map,
                                   java.lang.String weight)
WEIGHT attribute setter.

Parameters:
map - Vertex attributes map.
weight - int to set attribute with.

isVisited

public static final boolean isVisited(java.util.Map map)
VISITED attribute getter.

Parameters:
map - Vertex attributes map.
Returns:
VISITED boolean.

isSeen

public static final boolean isSeen(java.util.Map map)
SEEN attribute getter.

Parameters:
map - Vertex attributes map.
Returns:
SEEN boolean.

isBeingVisited

public static final boolean isBeingVisited(java.util.Map map)
BEING_VISITED attribute getter.

Parameters:
map - Vertex attributes map.
Returns:
BEING_VISITED boolean.

getPriority

public static final java.lang.Integer getPriority(java.util.Map map)
PRIORITY attribute getter.

Parameters:
map - Vertex attributes map.
Returns:
PRIORITY integer.

getFather

public static final java.lang.Object getFather(java.util.Map map)
FATHER attribute getter.

Parameters:
map - Vertex attributes map.
Returns:
FATHER name.

isUsed

public static final boolean isUsed(java.util.Map map)
USED attribute getter.

Parameters:
map - Edge attributes map.
Returns:
USED boolean.

isToNextVertex

public static final boolean isToNextVertex(java.util.Map map)
TO_NEXT_VERTEX attribute getter.

Parameters:
map - Edge attributes map.
Returns:
TO_NEXT_VERTEX boolean.

getWeight

public static final java.lang.Integer getWeight(java.util.Map map)
WEIGHT attribute getter.

Parameters:
map - Edge attributes map.
Returns:
WEIGHT Integer.

GoGraph
v1.0


Copyright (C) 2003 Stewe Frei. All rights reserved.