org.apache.pivot.wtk.media.drawing
Class Rectangle

java.lang.Object
  extended by org.apache.pivot.wtk.media.drawing.Shape
      extended by org.apache.pivot.wtk.media.drawing.Rectangle

public class Rectangle
extends Shape

Shape representing a rectangle.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.media.drawing.Shape
Shape.Rotate, Shape.Scale, Shape.Transform, Shape.TransformSequence, Shape.Translate
 
Constructor Summary
Rectangle()
           
 
Method Summary
 void draw(Graphics2D graphics)
           
 int getCornerRadius()
           
 int getHeight()
           
 ListenerList<RectangleListener> getRectangleListeners()
           
 int getWidth()
           
 void setCornerRadius(int cornerRadius)
           
 void setHeight(int height)
           
 void setSize(int width, int height)
           
 void setWidth(int width)
           
protected  void validate()
           
 
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
 

Constructor Detail

Rectangle

public Rectangle()
Method Detail

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)

getCornerRadius

public int getCornerRadius()

setCornerRadius

public void setCornerRadius(int cornerRadius)

draw

public void draw(Graphics2D graphics)
Specified by:
draw in class Shape

validate

protected void validate()
Overrides:
validate in class Shape

getRectangleListeners

public ListenerList<RectangleListener> getRectangleListeners()