Class SVGGraphConstants
java.lang.Object
com.jgraph.io.svg.SVGGraphConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intThe current default shape to be usedstatic final intRepresents the lack of allocation of a shapestatic final intRepresents an cylinder shape typestatic final intRepresents an diamond shape typestatic final intRepresents an ellipse shape typestatic final intRepresents a rectangle shape typestatic final intRepresents an rounded rectangle shape typestatic final StringKey for thehexBorderColorattribute.static final StringKey for thevertexShapeattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the font for the specified attribute map.static booleanReturns the shadow for the specified attribute map.static voidSets the value attribute in the specified map to the specified shadow value.static voidSets the value attribute in the specified map to the specified shape type value.
-
Field Details
-
NO_SHAPE_SPECIFIED
public static final int NO_SHAPE_SPECIFIEDRepresents the lack of allocation of a shape- See Also:
-
SHAPE_RECTANGLE
public static final int SHAPE_RECTANGLERepresents a rectangle shape type- See Also:
-
SHAPE_ELLIPSE
public static final int SHAPE_ELLIPSERepresents an ellipse shape type- See Also:
-
SHAPE_ROUNDRECT
public static final int SHAPE_ROUNDRECTRepresents an rounded rectangle shape type- See Also:
-
SHAPE_CYLINDER
public static final int SHAPE_CYLINDERRepresents an cylinder shape type- See Also:
-
SHAPE_DIAMOND
public static final int SHAPE_DIAMONDRepresents an diamond shape type- See Also:
-
defaultShape
protected static int defaultShapeThe current default shape to be used -
VERTEXSHAPE
Key for thevertexShapeattribute. Use instances of int as values for this key.- See Also:
-
VERTEXSHADOW
Key for thehexBorderColorattribute. Use instances of String as values for this key.- See Also:
-
-
Constructor Details
-
SVGGraphConstants
public SVGGraphConstants()
-
-
Method Details
-
setShape
Sets the value attribute in the specified map to the specified shape type value.- Parameters:
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 file
-
getShape
Returns the font for the specified attribute map. Uses default font if no font is specified in the attribute map. -
setShadow
Sets the value attribute in the specified map to the specified shadow value.- Parameters:
map- The map to store the shape attribute in.isShadow- The value to set the shadow attribute to.
-
isShadow
Returns the shadow for the specified attribute map. Uses no shadow by default if none set
-