com.jgraph.components.labels

Class CellConstants

public class CellConstants extends GraphConstants

JGraphpad graph constants. Contains special constants supported by the renderers or other functionality.
Field Summary
static StringSTRETCHIMAGE
Key for the stretchImage attribute.
static StringVERTEXSHAPE
Key for the vertexShape attribute.
Method Summary
static intgetVertexShape(Map map)
Returns vertexShape from the specified map.
static booleanisStretchImage(Map map)
Returns true if stretchImage in this map is true.
static voidsetStretchImage(Map map, boolean stretchImage)
Sets stretchImage in the specified map to the specified value.
static voidsetVertexShape(Map map, int shape)
Sets vertexShape in the specified map to the specified value.

Field Detail

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.

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.

Method Detail

getVertexShape

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

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.
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.