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 SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected intprotected Stringprotected intprotected intFields inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperationinstructionsFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperationaddDraw, addRotate, addScaleMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, 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 org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tools.ant.types.optional.imageio.DrawOperationexecuteDrawOperation
- 
Field Details- 
widthprotected int width
- 
heightprotected int height
- 
strokeWidthprotected int strokeWidth
- 
stroke
- 
fill
 
- 
- 
Constructor Details- 
BasicShapepublic BasicShape()
 
- 
- 
Method Details- 
setWidthpublic void setWidth(int w) Set the width.- Parameters:
- w- the width of the shape.
 
- 
setHeightpublic void setHeight(int h) Set the height.- Parameters:
- h- the height of the shape.
 
- 
setStrokewidthpublic void setStrokewidth(int sw) Set the stroke width attribute.- Parameters:
- sw- the value to use.
 
- 
setStrokeSet the stroke attribute.- Parameters:
- col- the color value to use.
 
- 
setFillSet the fill attribute.- Parameters:
- col- the color value to use.
 
 
-