Class Arc
- 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.Arc
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- DrawOperation
 
 public class Arc extends BasicShape implements DrawOperation Draw an arc.
- 
- 
Field SummaryFields Modifier and Type Field Description protected intheightprotected intstartprotected intstopprotected inttypeprotected intwidth- 
Fields inherited from class org.apache.tools.ant.types.optional.image.BasicShapefill, stroke, stroke_width
 - 
Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperationinstructions
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description Arc()
 - 
Method SummaryModifier and Type Method Description javax.media.jai.PlanarImageexecuteDrawOperation()Abstract method which is intended to create an image buffer and return it so it can be drawn into another object.voidsetHeight(int height)Set the height.voidsetStart(int start)Set the start of the arc.voidsetStop(int stop)Set the stop of the arc.voidsetType(java.lang.String strType)Set the type of arc.voidsetWidth(int width)Set the width.- 
Methods inherited from class org.apache.tools.ant.types.optional.image.BasicShapesetFill, setStroke, setStrokewidth
 - 
Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperationaddDraw, addRectangle, addRotate, addScale, addText
 - 
Methods 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, toString
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setWidthpublic void setWidth(int width) Set the width.- Parameters:
- width- the width of the arc.
 
 - 
setHeightpublic void setHeight(int height) Set the height.- Parameters:
- height- the height of the arc.
 
 - 
setStartpublic void setStart(int start) Set the start of the arc.- Parameters:
- start- the start of the arc.
 
 - 
setStoppublic void setStop(int stop) Set the stop of the arc.- Parameters:
- stop- the stop of the arc.
 
 - 
setTypepublic void setType(java.lang.String strType) Set the type of arc.- Parameters:
- strType- the type to use - open, pie or chord.
- To do:
- refactor using an EnumeratedAttribute
 
 - 
executeDrawOperationpublic javax.media.jai.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 interface- DrawOperation
- Returns:
- a planar image
 
 
- 
 
-