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

Class Arc

public class Arc extends BasicShape implements DrawOperation

Draw an arc.
Field Summary
protected intheight
protected intstart
protected intstop
protected inttype
protected intwidth
Method Summary
PlanarImageexecuteDrawOperation()
{@inheritDoc }.
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(String strType)
Set the type of arc.
voidsetWidth(int width)
Set the width.

Field Detail

height

protected int height

start

protected int start

stop

protected int stop

type

protected int type

width

protected int width

Method Detail

executeDrawOperation

public PlanarImage executeDrawOperation()
{@inheritDoc }.

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.

UNKNOWN: refactor using an EnumeratedAttribute

setWidth

public void setWidth(int width)
Set the width.

Parameters: width the width of the arc.