|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavalib.worldimages.AImage
javalib.worldimages.RasterImage
javalib.worldimages.FreezeImage
public class FreezeImage
An image with a memoized raster rendering.
Field Summary |
---|
Fields inherited from class javalib.worldimages.RasterImage |
---|
id, rendering, transparent |
Fields inherited from interface javalib.worldimages.WorldImage |
---|
LOOKS_SAME |
Method Summary | |
---|---|
void |
draw(Graphics2D g)
Draw this image in the provided Graphics2D context. |
boolean |
equals(Object other)
Is this the same as another WorldImage, as expression trees? Define this at every level that has instance variables. |
int |
getBottom()
Produce the bottom of the bounding box. |
int |
getRight()
Produce the bottom of the bounding box. |
(package private) static RasterImage |
make(WorldImage base)
Pseudo-constructor for a frozen (memoized) image. |
protected void |
renderIfNecessary()
make sure rendering isn't null |
Methods inherited from class javalib.worldimages.RasterImage |
---|
build, frozen, getPixelColor, hashCode, make, map, save, setRendering, toIndentedString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void draw(Graphics2D g)
WorldImage
Graphics2D
context.
draw
in interface WorldImage
draw
in class RasterImage
g
- the provided Graphics2D
contextpublic boolean equals(Object other)
WorldImage
equals
in interface WorldImage
equals
in class RasterImage
other
- the object to compare with this
public int getBottom()
WorldImage
getBottom
in interface WorldImage
getBottom
in class RasterImage
public int getRight()
WorldImage
getRight
in interface WorldImage
getRight
in class RasterImage
static RasterImage make(WorldImage base)
base
- the existing image to freezeprotected void renderIfNecessary()
RasterImage
renderIfNecessary
in class RasterImage
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |