|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfunworld.WorldImage
funworld.OvalImage
public class OvalImage
The class to represent filled oval images drawn by the
when drawing on its
World.Canvas
| Field Summary | |
|---|---|
int |
height
the height of this frame |
int |
width
the width of this frame |
| Fields inherited from class funworld.WorldImage |
|---|
color, pinhole |
| Constructor Summary | |
|---|---|
OvalImage(geometry.Posn pinhole,
int width,
int height,
java.awt.Color color)
A full constructor for this frame image. |
|
OvalImage(geometry.Posn pinhole,
int width,
int height,
colors.IColor color)
A convenience constructor to supply the color in the form of . |
|
| Method Summary | |
|---|---|
int |
getHeight()
Produce the height of this image |
int |
getWidth()
Produce the width of this image |
WorldImage |
movePinhole(int dx,
int dy)
Produce the oval with the pinhole moved by the given (dx, dy) |
WorldImage |
moveTo(geometry.Posn p)
Produce the oval with the pinhole moved to the given location |
| Methods inherited from class funworld.WorldImage |
|---|
overlayImages |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int width
public int height
| Constructor Detail |
|---|
public OvalImage(geometry.Posn pinhole,
int width,
int height,
java.awt.Color color)
pinhole - the pinhole location for this imagewidth - the width of this frameheight - the height of this framecolor - the color for this image
public OvalImage(geometry.Posn pinhole,
int width,
int height,
colors.IColor color)
IColor.
pinhole - the pinhole location for this imagewidth - the width of this frameheight - the height of this framecolor - the color for this image| Method Detail |
|---|
public WorldImage movePinhole(int dx,
int dy)
movePinhole in class WorldImagedx - the horizontal offsetdy - the vertical offsetpublic WorldImage moveTo(geometry.Posn p)
moveTo in class WorldImagep - the given locationpublic int getWidth()
getWidth in class WorldImagepublic int getHeight()
getHeight in class WorldImage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||