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:
Cloneable, DrawOperation
Draw a basic shape
-
Field Summary
FieldsFields inherited from class ImageOperation
instructionsFields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet the fill attribute.voidSet the stroke attribute.voidsetStrokewidth(int width) Set the stroke width attribute.Methods inherited from class ImageOperation
addDraw, addRectangle, addRotate, addScale, addTextMethods 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
-
stroke_width
protected int stroke_width -
fill
-
stroke
-
-
Constructor Details
-
BasicShape
public BasicShape()
-
-
Method Details
-
setFill
-
setStroke
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.
-