org.apache.tools.ant.types.optional.image

Class Arc

Implemented Interfaces:
Cloneable, DrawOperation

public class Arc
extends BasicShape
implements DrawOperation

Draw an arc.

Field Summary

protected int
height
protected int
start
protected int
stop
protected int
type
protected int
width

Fields inherited from class org.apache.tools.ant.types.optional.image.BasicShape

fill, stroke, stroke_width

Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

instructions

Fields inherited from class org.apache.tools.ant.types.DataType

checked, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

description, location, project

Method Summary

PlanarImage
executeDrawOperation()
.
void
setHeight(int height)
Set the height.
void
setStart(int start)
Set the start of the arc.
void
setStop(int stop)
Set the stop of the arc.
void
setType(String strType)
Set the type of arc.
void
setWidth(int width)
Set the width.

Methods inherited from class org.apache.tools.ant.types.optional.image.BasicShape

setFill, setStroke, setStrokewidth

Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

addDraw, addRectangle, addRotate, addScale, addText

Methods inherited from class org.apache.tools.ant.types.DataType

checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

Field Details

height

protected int height

start

protected int start

stop

protected int stop

type

protected int type

width

protected int width

Method Details

executeDrawOperation

public PlanarImage executeDrawOperation()
.
Specified by:
executeDrawOperation in interface DrawOperation

setHeight

public void setHeight(int height)
Set the height.
Parameters:
height - the height of the arc.

setStart

public void setStart(int start)
Set the start of the arc.
Parameters:
start - the start of the arc.

setStop

public void setStop(int stop)
Set the stop of the arc.
Parameters:
stop - the stop of the arc.

setType

public void setType(String strType)
Set the type of arc.
Parameters:
strType - the type to use - open, pie or chord.
To do:
refactor using an EnumeratedAttribute

setWidth

public void setWidth(int width)
Set the width.
Parameters:
width - the width of the arc.