|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.ShapeDecoration
public class ShapeDecoration
That class contained an array of shape template elements that define shape decorations. Can contain lines, arcs and Bézier curves. The shape is closed and filled.
Constructor Summary | |
---|---|
ShapeDecoration(ElementTemplate[] elements,
Brush brush,
int fillMode,
Pen pen)
Initializes a new instance of the ShapeDecoration class with the specified outline, brush, pen and rule. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D graphics,
double rotation)
|
static ShapeDecoration |
fromXmlElement(org.w3c.dom.Element e)
|
Brush |
getBrush()
Gets the brush used to fill the interior of this shape. |
int |
getFillMode()
Gets a value indicating how the area is filled. |
Pen |
getPen()
Gets the pen used to paint the frame of the shape. |
void |
setBrush(Brush brush)
Sets the brush used to fill the interior of this shape. |
void |
setFillMode(int fillMode)
Sets a value indicating how the area is filled. |
void |
setPen(Pen pen)
Sets the pen used to paint the frame of the shape. |
static org.w3c.dom.Element |
toDOM(ShapeDecoration decoration,
org.w3c.dom.Document owner)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeDecoration(ElementTemplate[] elements, Brush brush, int fillMode, Pen pen)
elements
- An array of shape template elements that define shape decoration.brush
- Used to fill the interior of the shape.fillMode
- Specifies how areas are filled.pen
- Used to paint the frame of the shape.Method Detail |
---|
public void draw(java.awt.Graphics2D graphics, double rotation)
public static org.w3c.dom.Element toDOM(ShapeDecoration decoration, org.w3c.dom.Document owner)
public static ShapeDecoration fromXmlElement(org.w3c.dom.Element e) throws javax.xml.transform.TransformerException, XmlException
javax.xml.transform.TransformerException
XmlException
public Brush getBrush()
public void setBrush(Brush brush)
brush
- public int getFillMode()
public void setFillMode(int fillMode)
fillMode
- public Pen getPen()
public void setPen(Pen pen)
pen
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |