Class BasicShape
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.optional.imageio.ImageOperation
org.apache.tools.ant.types.optional.imageio.BasicShape
- All Implemented Interfaces:
Cloneable, DrawOperation
Draw a basic shape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected intprotected Stringprotected intprotected intFields inherited from class ImageOperation
instructionsFields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ImageOperation
addDraw, addRotate, addScaleMethods inherited from class DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringMethods inherited from class ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DrawOperation
executeDrawOperation
-
Field Details
-
width
protected int width -
height
protected int height -
strokeWidth
protected int strokeWidth -
stroke
-
fill
-
-
Constructor Details
-
BasicShape
public BasicShape()
-
-
Method Details
-
setWidth
public void setWidth(int w) Set the width.- Parameters:
w- the width of the shape.
-
setHeight
public void setHeight(int h) Set the height.- Parameters:
h- the height of the shape.
-
setStrokewidth
public void setStrokewidth(int sw) Set the stroke width attribute.- Parameters:
sw- the value to use.
-
setStroke
Set the stroke attribute.- Parameters:
col- the color value to use.
-
setFill
-