com.mindfusion.diagramming
Class ElementTemplate
java.lang.Object
com.mindfusion.diagramming.ElementTemplate
- Direct Known Subclasses:
- ArcTemplate, BezierTemplate, LineTemplate, RoundRectangleTemplate
public abstract class ElementTemplate
- extends java.lang.Object
This is the base class for the elements that can be used in
Shape
definitions. You will use its descendants -
LineTemplate
, ArcTemplate
and BezierTemplate
-
when defining custom shapes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementTemplate
public ElementTemplate()
toDOM
public static org.w3c.dom.Element toDOM(org.w3c.dom.Document owner,
ElementTemplate[] outline,
java.lang.String name)
toDOM
public org.w3c.dom.Element toDOM(org.w3c.dom.Document owner)
getElementPen
protected Pen getElementPen(Pen pen)
getColor
public java.awt.Color getColor()
setColor
public void setColor(java.awt.Color color)
getWidth
public float getWidth()
setWidth
public void setWidth(float width)
getDashStyle
public DashStyle getDashStyle()
setDashStyle
public void setDashStyle(DashStyle dashStyle)