public class SVGGraphConstants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
defaultShape
The current default shape to be used
|
static int |
NO_SHAPE_SPECIFIED
Represents the lack of allocation of a shape
|
static int |
SHAPE_CYLINDER
Represents an cylinder shape type
|
static int |
SHAPE_DIAMOND
Represents an diamond shape type
|
static int |
SHAPE_ELLIPSE
Represents an ellipse shape type
|
static int |
SHAPE_RECTANGLE
Represents a rectangle shape type
|
static int |
SHAPE_ROUNDRECT
Represents an rounded rectangle shape type
|
static java.lang.String |
VERTEXSHADOW
Key for the
hexBorderColor attribute. |
static java.lang.String |
VERTEXSHAPE
Key for the
vertexShape attribute. |
Constructor and Description |
---|
SVGGraphConstants() |
Modifier and Type | Method and Description |
---|---|
static int |
getShape(java.util.Map map)
Returns the font for the specified attribute map.
|
static boolean |
isShadow(java.util.Map map)
Returns the shadow for the specified attribute map.
|
static void |
setShadow(java.util.Map map,
boolean isShadow)
Sets the value attribute in the specified map to the specified shadow
value.
|
static void |
setShape(java.util.Map map,
int shapeType)
Sets the value attribute in the specified map to the specified shape type
value.
|
public static final int NO_SHAPE_SPECIFIED
public static final int SHAPE_RECTANGLE
public static final int SHAPE_ELLIPSE
public static final int SHAPE_ROUNDRECT
public static final int SHAPE_CYLINDER
public static final int SHAPE_DIAMOND
protected static int defaultShape
public static final java.lang.String VERTEXSHAPE
vertexShape
attribute. Use instances of int as
values for this key.public static final java.lang.String VERTEXSHADOW
hexBorderColor
attribute. Use instances of
String as values for this key.public static void setShape(java.util.Map map, int shapeType)
map
- The map to store the shape attribute in.shapeType
- The value to set the share tpye attribute to. The possible
values for this are defined near the top of this filepublic static int getShape(java.util.Map map)
public static void setShadow(java.util.Map map, boolean isShadow)
map
- The map to store the shape attribute in.isShadow
- The value to set the shadow attribute to.public static boolean isShadow(java.util.Map map)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.