JGraphpad Pro
v6.0.5.0


com.jgraph.pad.graph
Class JGraphpadGraphConstants

java.lang.Object
  extended byorg.jgraph.graph.GraphConstants
      extended bycom.jgraph.pad.graph.JGraphpadGraphConstants

public class JGraphpadGraphConstants
extends org.jgraph.graph.GraphConstants

JGraphpad graph constants. Contains special constants supported by the renderers or other functionality.


Field Summary
static String GROUPREPOSITION
          Key for the groupReposition attribute.
static String GROUPRESIZE
          Key for the groupResize attribute.
static org.jgraph.graph.Edge.Routing ROUTING_PARALLEL
          Shared routing instance for parallel routing.
static org.jgraph.graph.Edge.Routing ROUTING_PARALLELSPLINE
          Shared routing instance for parallel spline routing.
static String SOURCEPORTOFFSET
          Key for the sourcePortOffset attribute.
static String STRETCHIMAGE
          Key for the stretchImage attribute.
static String TARGETPORTOFFSET
          Key for the targetPortOffset attribute.
static String VERTEXSHAPE
          Key for the vertexShape attribute.
 
Fields inherited from class org.jgraph.graph.GraphConstants
ABSOLUTEX, ABSOLUTEY, ARROW_CIRCLE, ARROW_CLASSIC, ARROW_DIAMOND, ARROW_DOUBLELINE, ARROW_LINE, ARROW_NONE, ARROW_SIMPLE, ARROW_TECHNICAL, AUTOSIZE, BACKGROUND, BEGINFILL, BEGINSIZE, BENDABLE, BORDER, BORDERCOLOR, BOUNDS, CHILDRENSELECTABLE, CONNECTABLE, CONSTRAINED, dash, DASHOFFSET, DASHPATTERN, DEFAULTDECORATIONSIZE, DEFAULTFONT, DEFAULTINSET, DISCONNECTABLE, EDITABLE, ENDFILL, ENDSIZE, EXTRALABELPOSITIONS, EXTRALABELS, FONT, FOREGROUND, GRADIENTCOLOR, GROUPOPAQUE, HORIZONTAL_ALIGNMENT, HORIZONTAL_TEXT_POSITION, ICON, INSET, LABELALONGEDGE, LABELPOSITION, LINEBEGIN, LINECOLOR, LINEEND, LINESTYLE, LINEWIDTH, LINK, MOVEABLE, MOVEABLEAXIS, MOVEHIDDENCHILDREN, OFFSET, OPAQUE, PERMILLE, POINTS, REMOVEALL, REMOVEATTRIBUTES, REPLACEATTRIBUTES, RESIZE, ROUTING, ROUTING_DEFAULT, ROUTING_SIMPLE, SELECTABLE, SELECTION_STROKE, SIZE, SIZEABLE, SIZEABLEAXIS, STYLE_BEZIER, STYLE_ORTHOGONAL, STYLE_SPLINE, VALUE, VERTICAL_ALIGNMENT, VERTICAL_TEXT_POSITION, X_AXIS, Y_AXIS
 
Constructor Summary
JGraphpadGraphConstants()
           
 
Method Summary
static org.jgraph.graph.Edge.Routing getParallelEdgeRouting()
          Returns the shared instance of the parallel routing.
static org.jgraph.graph.Edge.Routing getParallelSplineRouting()
          Returns the shared instance of the parallel spline routing.
static Point2D getSourcePortOffset(Map map)
          Returns sourcePortOffset from the specified map.
static Point2D getTargetPortOffset(Map map)
          Returns targetPortOffset from the specified map.
static int getVertexShape(Map map)
          Returns vertexShape from the specified map.
static boolean isGroupReposition(Map map)
          Returns true if groupReposition in this map is true.
static boolean isGroupResize(Map map)
          Returns true if groupResize in this map is true.
static boolean isStretchImage(Map map)
          Returns true if stretchImage in this map is true.
static void setGroupReposition(Map map, boolean stretchImage)
          Sets groupReposition in the specified map to the specified value.
static void setGroupResize(Map map, boolean stretchImage)
          Sets groupResize in the specified map to the specified value.
static void setSourcePortOffset(Map map, Point2D offset)
          Sets sourcePortOffset in the specified map to the specified value.
static void setStretchImage(Map map, boolean stretchImage)
          Sets stretchImage in the specified map to the specified value.
static void setTargetPortOffset(Map map, Point2D offset)
          Sets targetPortOffset in the specified map to the specified value.
static void setVertexShape(Map map, int shape)
          Sets vertexShape in the specified map to the specified value.
 
Methods inherited from class org.jgraph.graph.GraphConstants
createAttributes, createAttributes, createAttributes, createAttributes, createAttributesFromModel, getBackground, getBeginSize, getBorder, getBorderColor, getBounds, getDashOffset, getDashPattern, getEndSize, getExtraLabelPositions, getExtraLabels, getFont, getForeground, getGradientColor, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getInset, getLabelPosition, getLineBegin, getLineColor, getLineEnd, getLineStyle, getLineWidth, getLink, getMoveableAxis, getOffset, getPoints, getRemoveAttributes, getROUTING_DEFAULT, getROUTING_SIMPLE, getRouting, getSize, getSizeableAxis, getValue, getVerticalAlignment, getVerticalTextPosition, isAbsoluteX, isAbsoluteY, isAutoSize, isBeginFill, isBendable, isChildrenSelectable, isConnectable, isConstrained, isDisconnectable, isEditable, isEndFill, isGroupOpaque, isLabelAlongEdge, isMoveable, isOpaque, isRemoveAll, isResize, isSelectable, isSizeable, merge, replaceKeys, setAbsolute, setAbsoluteX, setAbsoluteY, setAutoSize, setBackground, setBeginFill, setBeginSize, setBendable, setBorder, setBorderColor, setBounds, setChildrenSelectable, setConnectable, setConstrained, setDashOffset, setDashPattern, setDisconnectable, setEditable, setEndFill, setEndSize, setExtraLabelPositions, setExtraLabels, setFont, setForeground, setGradientColor, setGroupOpaque, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setInset, setLabelAlongEdge, setLabelPosition, setLineBegin, setLineColor, setLineEnd, setLineStyle, setLineWidth, setLink, setMoveable, setMoveableAxis, setOffset, setOpaque, setPoints, setRemoveAll, setRemoveAttributes, setResize, setRouting, setSelectable, setSize, setSizeable, setSizeableAxis, setValue, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROUTING_PARALLEL

public static final org.jgraph.graph.Edge.Routing ROUTING_PARALLEL
Shared routing instance for parallel routing.


ROUTING_PARALLELSPLINE

public static final org.jgraph.graph.Edge.Routing ROUTING_PARALLELSPLINE
Shared routing instance for parallel spline routing.


STRETCHIMAGE

public static final String STRETCHIMAGE
Key for the stretchImage attribute. This special attribute contains a Boolean instance indicating whether the background image should be stretched.

See Also:
Constant Field Values

GROUPRESIZE

public static final String GROUPRESIZE
Key for the groupResize attribute. This special attribute contains a Boolean instance indicating if the group should be resized when it is collapsed. This is usually set to true before the first collapse and then removed.

See Also:
Constant Field Values

GROUPREPOSITION

public static final String GROUPREPOSITION
Key for the groupReposition attribute. This special attribute contains a Boolean instance indicating if the collapsed group should be moved to the top left corner of it's child area when it is collapsed.

See Also:
Constant Field Values

VERTEXSHAPE

public static final String VERTEXSHAPE
Key for the vertexShape attribute. This special attribute contains an Integer instance indicating which shape should be drawn by the renderer.

See Also:
Constant Field Values

SOURCEPORTOFFSET

public static final String SOURCEPORTOFFSET
Key for the sourcePortOffset attribute. This special attribute contains a Point2D instance indicating the relative position of a port in its parents coordinate space seen from a specific edge.

See Also:
Constant Field Values

TARGETPORTOFFSET

public static final String TARGETPORTOFFSET
Key for the targetPortOffset attribute. This special attribute contains a Point2D instance indicating the relative position of a port in its parents coordinate space seen from a specific edge.

See Also:
Constant Field Values
Constructor Detail

JGraphpadGraphConstants

public JGraphpadGraphConstants()
Method Detail

isStretchImage

public static final boolean isStretchImage(Map map)
Returns true if stretchImage in this map is true. Default is false.


setStretchImage

public static final void setStretchImage(Map map,
                                         boolean stretchImage)
Sets stretchImage in the specified map to the specified value.


isGroupResize

public static final boolean isGroupResize(Map map)
Returns true if groupResize in this map is true. Default is false.


setGroupResize

public static final void setGroupResize(Map map,
                                        boolean stretchImage)
Sets groupResize in the specified map to the specified value.


isGroupReposition

public static final boolean isGroupReposition(Map map)
Returns true if groupReposition in this map is true. Default is true.


setGroupReposition

public static final void setGroupReposition(Map map,
                                            boolean stretchImage)
Sets groupReposition in the specified map to the specified value.


setVertexShape

public static final void setVertexShape(Map map,
                                        int shape)
Sets vertexShape in the specified map to the specified value.


getVertexShape

public static final int getVertexShape(Map map)
Returns vertexShape from the specified map.


setSourcePortOffset

public static final void setSourcePortOffset(Map map,
                                             Point2D offset)
Sets sourcePortOffset in the specified map to the specified value.


getSourcePortOffset

public static final Point2D getSourcePortOffset(Map map)
Returns sourcePortOffset from the specified map.


setTargetPortOffset

public static final void setTargetPortOffset(Map map,
                                             Point2D offset)
Sets targetPortOffset in the specified map to the specified value.


getTargetPortOffset

public static final Point2D getTargetPortOffset(Map map)
Returns targetPortOffset from the specified map.


getParallelEdgeRouting

public static org.jgraph.graph.Edge.Routing getParallelEdgeRouting()
Returns the shared instance of the parallel routing.


getParallelSplineRouting

public static org.jgraph.graph.Edge.Routing getParallelSplineRouting()
Returns the shared instance of the parallel spline routing.


JGraphpad Pro
v6.0.5.0


Copyright (C) 2005 JGraph.com. All rights reserved.