com.mxgraph.shape
Class mxStencil
- java.lang.Object
-
- com.mxgraph.shape.mxStencil
-
-
Constructor Summary
Constructors Constructor and Description mxStencil(org.w3c.dom.Element description)Constructs a new stencil for the given mxGraph shape description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleandrawShape(mxGraphicsCanvas2D canvas, mxCellState state, mxRectangle bounds, mxRectangle aspect, boolean background)Draws this stencil inside the given bounds.java.lang.StringevaluateAttribute(org.w3c.dom.Element elt, java.lang.String attribute, mxCellState state)Gets the attribute for the given name from the given node.org.w3c.dom.ElementgetDescription()Returns the description.voidpaintShape(mxGraphics2DCanvas gc, mxCellState state)Paints the stencil for the given state.voidsetDescription(org.w3c.dom.Element value)Sets the description.
-
-
-
Constructor Detail
-
mxStencil
public mxStencil(org.w3c.dom.Element description)
Constructs a new stencil for the given mxGraph shape description.
-
-
Method Detail
-
getDescription
public org.w3c.dom.Element getDescription()
Returns the description.
-
setDescription
public void setDescription(org.w3c.dom.Element value)
Sets the description.
-
paintShape
public void paintShape(mxGraphics2DCanvas gc, mxCellState state)
Paints the stencil for the given state.- Specified by:
paintShapein interfacemxIShape
-
drawShape
public boolean drawShape(mxGraphicsCanvas2D canvas, mxCellState state, mxRectangle bounds, mxRectangle aspect, boolean background)
Draws this stencil inside the given bounds.
-
evaluateAttribute
public java.lang.String evaluateAttribute(org.w3c.dom.Element elt, java.lang.String attribute, mxCellState state)Gets the attribute for the given name from the given node. If the attribute does not exist then the text content of the node is evaluated and if it is a function it is invoked withas the only argument and the return value is used as the attribute value to be returned.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG