Class SVGGraphConstants

java.lang.Object
com.jgraph.io.svg.SVGGraphConstants

public class SVGGraphConstants extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static int
    The current default shape to be used
    static final int
    Represents the lack of allocation of a shape
    static final int
    Represents an cylinder shape type
    static final int
    Represents an diamond shape type
    static final int
    Represents an ellipse shape type
    static final int
    Represents a rectangle shape type
    static final int
    Represents an rounded rectangle shape type
    static final String
    Key for the hexBorderColor attribute.
    static final String
    Key for the vertexShape attribute.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Returns the font for the specified attribute map.
    static boolean
    Returns the shadow for the specified attribute map.
    static void
    setShadow(Map map, boolean isShadow)
    Sets the value attribute in the specified map to the specified shadow value.
    static void
    setShape(Map map, int shapeType)
    Sets the value attribute in the specified map to the specified shape type value.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NO_SHAPE_SPECIFIED

      public static final int NO_SHAPE_SPECIFIED
      Represents the lack of allocation of a shape
      See Also:
    • SHAPE_RECTANGLE

      public static final int SHAPE_RECTANGLE
      Represents a rectangle shape type
      See Also:
    • SHAPE_ELLIPSE

      public static final int SHAPE_ELLIPSE
      Represents an ellipse shape type
      See Also:
    • SHAPE_ROUNDRECT

      public static final int SHAPE_ROUNDRECT
      Represents an rounded rectangle shape type
      See Also:
    • SHAPE_CYLINDER

      public static final int SHAPE_CYLINDER
      Represents an cylinder shape type
      See Also:
    • SHAPE_DIAMOND

      public static final int SHAPE_DIAMOND
      Represents an diamond shape type
      See Also:
    • defaultShape

      protected static int defaultShape
      The current default shape to be used
    • VERTEXSHAPE

      public static final String VERTEXSHAPE
      Key for the vertexShape attribute. Use instances of int as values for this key.
      See Also:
    • VERTEXSHADOW

      public static final String VERTEXSHADOW
      Key for the hexBorderColor attribute. Use instances of String as values for this key.
      See Also:
  • Constructor Details

    • SVGGraphConstants

      public SVGGraphConstants()
  • Method Details

    • setShape

      public static void setShape(Map map, int shapeType)
      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

      public static int getShape(Map map)
      Returns the font for the specified attribute map. Uses default font if no font is specified in the attribute map.
    • setShadow

      public static void setShadow(Map map, boolean isShadow)
      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

      public static boolean isShadow(Map map)
      Returns the shadow for the specified attribute map. Uses no shadow by default if none set