|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfunworld.WorldImage
funworld.OverlayImagesXY
public class OverlayImagesXY
The class to represent an overlay of the top image on the bottom one
with the top offset by the given dx and dy
combined into to be drawn by the
WorldImage when drawing on its
World.Canvas
| Field Summary | |
|---|---|
WorldImage |
bot
the bottom image for the combined image |
int |
dx
the horizontal offset for the top image |
int |
dy
the vertical offset for the top image |
WorldImage |
top
the top image for the combined image |
| Fields inherited from class funworld.WorldImage |
|---|
color, pinhole |
| Constructor Summary | |
|---|---|
OverlayImagesXY(WorldImage bot,
WorldImage top,
int dx,
int dy)
The full constructor that produces the top image overlaid over the bottom one with the given offset. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Produce the height of this image |
int |
getWidth()
Produce the width of this image |
WorldImage |
movePinhole(int ddx,
int ddy)
Produce the overlay of images with the pinhole moved by the given (dx, dy) |
WorldImage |
moveTo(geometry.Posn p)
Produce the overlay of images 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 WorldImage bot
public WorldImage top
public int dx
public int dy
| Constructor Detail |
|---|
public OverlayImagesXY(WorldImage bot,
WorldImage top,
int dx,
int dy)
bot - the bottom image for the combined imagetop - the bottom image for the combined imagedx - the horizontal offset for the top imagedy - the vertical offset for the top image| Method Detail |
|---|
public WorldImage movePinhole(int ddx,
int ddy)
movePinhole in class WorldImageddx - the horizontal offsetddy - 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 | ||||||||