org.apache.tools.ant.types.optional.image
Class BasicShape
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.optional.image.ImageOperation
org.apache.tools.ant.types.optional.image.BasicShape
- All Implemented Interfaces:
- java.lang.Cloneable, DrawOperation
- Direct Known Subclasses:
- Arc, Ellipse, Rectangle
public abstract class BasicShape
- extends ImageOperation
- implements DrawOperation
Draw a basic shape
Method Summary |
void |
setFill(java.lang.String col)
Set the fill attribute. |
void |
setStroke(java.lang.String col)
Set the stroke attribute. |
void |
setStrokewidth(int width)
Set the stroke width attribute. |
Methods inherited from class org.apache.tools.ant.types.DataType |
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
stroke_width
protected int stroke_width
fill
protected java.lang.String fill
stroke
protected java.lang.String stroke
BasicShape
public BasicShape()
setFill
public void setFill(java.lang.String col)
- Set the fill attribute.
- Parameters:
col
- the color value to use.
setStroke
public void setStroke(java.lang.String col)
- Set the stroke attribute.
- Parameters:
col
- the color value to use.
setStrokewidth
public void setStrokewidth(int width)
- Set the stroke width attribute.
- Parameters:
width
- the value to use.