com.mindfusion.diagramming
Class ElementTemplate

java.lang.Object
  extended by 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.


Constructor Summary
ElementTemplate()
           
 
Method Summary
 java.awt.Color getColor()
           
 DashStyle getDashStyle()
           
protected  Pen getElementPen(Pen pen)
           
 float getWidth()
           
 void setColor(java.awt.Color color)
           
 void setDashStyle(DashStyle dashStyle)
           
 void setWidth(float width)
           
 org.w3c.dom.Element toDOM(org.w3c.dom.Document owner)
           
static org.w3c.dom.Element toDOM(org.w3c.dom.Document owner, ElementTemplate[] outline, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementTemplate

public ElementTemplate()
Method Detail

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)