org.apache.tools.ant.types.optional.image

Class BasicShape

Implemented Interfaces:
Cloneable, DrawOperation
Known Direct Subclasses:
Arc, Ellipse, Rectangle

public abstract class BasicShape
extends ImageOperation
implements DrawOperation

Draw a basic shape

Field Summary

protected String
fill
protected String
stroke
protected int
stroke_width

Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

instructions

Fields inherited from class org.apache.tools.ant.types.DataType

checked, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

description, location, project

Method Summary

void
setFill(String col)
Set the fill attribute.
void
setStroke(String col)
Set the stroke attribute.
void
setStrokewidth(int width)
Set the stroke width attribute.

Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

addDraw, addRectangle, addRotate, addScale, addText

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, toString, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

Field Details

fill

protected String fill

stroke

protected String stroke

stroke_width

protected int stroke_width

Method Details

setFill

public void setFill(String col)
Set the fill attribute.
Parameters:
col - the color value to use.

setStroke

public void setStroke(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.