org.apache.pivot.wtk.media.drawing
Class Arc
java.lang.Object
org.apache.pivot.wtk.media.drawing.Shape
org.apache.pivot.wtk.media.drawing.Arc
public class Arc
- extends Shape
Shape representing an arc.
Nested Class Summary |
static class |
Arc.Type
Enum representing an arc closure type. |
Constructor Summary |
Arc()
|
Methods inherited from class org.apache.pivot.wtk.media.drawing.Shape |
getBounds, getFill, getOrigin, getParent, getShapeListeners, getShapeTransformListeners, getStroke, getStrokeThickness, getTransformedBounds, getTransforms, getX, getY, invalidate, isValid, isVisible, setBounds, setFill, setFill, setOrigin, setOrigin, setParent, setStroke, setStroke, setStrokeThickness, setVisible, setX, setY, update, update, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Arc
public Arc()
getWidth
public int getWidth()
setWidth
public void setWidth(int width)
getHeight
public int getHeight()
setHeight
public void setHeight(int height)
setSize
public void setSize(int width,
int height)
getStart
public float getStart()
setStart
public void setStart(float start)
getExtent
public float getExtent()
setExtent
public void setExtent(float extent)
getType
public Arc.Type getType()
setType
public void setType(Arc.Type type)
setType
public void setType(String type)
draw
public void draw(Graphics2D graphics)
- Specified by:
draw
in class Shape
validate
protected void validate()
- Overrides:
validate
in class Shape
getArcListeners
public ListenerList<ArcListener> getArcListeners()