Class CellConstants

java.lang.Object
org.jgraph.graph.GraphConstants
com.jgraph.components.labels.CellConstants

public class CellConstants extends GraphConstants
JGraphpad graph constants. Contains special constants supported by the renderers or other functionality.
  • Field Details

    • 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:
    • 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:
  • Constructor Details

    • CellConstants

      public CellConstants()
  • Method Details

    • 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.
    • 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.