|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.media.drawing.Shape
pivot.wtk.media.drawing.Rectangle
public class Rectangle
Shape representing a rectangle.
Constructor Summary | |
---|---|
Rectangle()
|
Method Summary | |
---|---|
boolean |
contains(int x,
int y)
TODO Subclasses should override this method to perform an inverse transformation and map to the untransformed coordinate space. |
int |
getHeight()
Returns the visual's height. |
Dimensions |
getSize()
|
int |
getWidth()
Returns the visual's width. |
void |
paint(java.awt.Graphics2D graphics)
Paints the visual. |
void |
setHeight(int height)
|
void |
setSize(Dimensions size)
|
void |
setSize(int width,
int height)
|
void |
setWidth(int width)
|
Methods inherited from class pivot.wtk.media.drawing.Shape |
---|
getBounds, getFill, getOrigin, getParent, getRotation, getScaleX, getScaleY, getStroke, getStrokeThickness, getTransform, getTranslateX, getTranslateY, getX, getY, setFill, setFill, setOrigin, setOrigin, setParent, setRotation, setScaleX, setScaleY, setStroke, setStroke, setStrokeThickness, setTranslateX, setTranslateY, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rectangle()
Method Detail |
---|
public int getWidth()
Visual
public void setWidth(int width)
public int getHeight()
Visual
public void setHeight(int height)
public Dimensions getSize()
public void setSize(int width, int height)
public void setSize(Dimensions size)
public void paint(java.awt.Graphics2D graphics)
Visual
graphics
- The graphics context in which to paint the visual.public boolean contains(int x, int y)
Shape
contains
in class Shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |