| 
 | ||||||||
| 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 Graphics2Dcontext. | 
|  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)
WorldImageGraphics2D context.
draw in interface WorldImagedraw in class RasterImageg - the provided Graphics2D contextpublic boolean equals(Object other)
WorldImage
equals in interface WorldImageequals in class RasterImageother - the object to compare with this
public int getBottom()
WorldImage
getBottom in interface WorldImagegetBottom in class RasterImagepublic int getRight()
WorldImage
getRight in interface WorldImagegetRight in class RasterImagestatic 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 | |||||||