Class Rectangle
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
org.apache.tools.ant.types.optional.image.Rectangle
- All Implemented Interfaces:
Cloneable, DrawOperation
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intFields inherited from class BasicShape
fill, stroke, stroke_widthFields inherited from class ImageOperation
instructionsFields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPlanarImageAbstract method which is intended to create an image buffer and return it so it can be drawn into another object.voidsetArcheight(int h) Set the arc height.voidsetArcwidth(int w) Set the arc width.voidsetHeight(int h) Set the height.voidsetWidth(int w) Set the width.Methods inherited from class BasicShape
setFill, setStroke, setStrokewidthMethods 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, setProject
-
Field Details
-
width
protected int width -
height
protected int height -
arcwidth
protected int arcwidth -
archeight
protected int archeight
-
-
Constructor Details
-
Rectangle
public Rectangle()
-
-
Method Details
-
setWidth
public void setWidth(int w) Set the width.- Parameters:
w- the value to use.
-
setHeight
public void setHeight(int h) Set the height.- Parameters:
h- the value to use.
-
setArcwidth
public void setArcwidth(int w) Set the arc width.- Parameters:
w- the value to use.
-
setArcheight
public void setArcheight(int h) Set the arc height.- Parameters:
h- the value to use.
-
executeDrawOperation
public PlanarImage executeDrawOperation()Abstract method which is intended to create an image buffer and return it so it can be drawn into another object. Use an Alpha channel for a "transparent" background..- Specified by:
executeDrawOperationin interfaceDrawOperation- Returns:
- a planar image
-