|
||||||||
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.FromFileImage
public class FromFileImage
The class to represent an image that came from a .png file and
is to be drawn by the
world when drawing on its Canvas
.
Field Summary |
---|
Fields inherited from class javalib.worldimages.RasterImage |
---|
id, rendering, transparent |
Fields inherited from interface javalib.worldimages.WorldImage |
---|
LOOKS_SAME |
Method Summary | |
---|---|
boolean |
equals(Object other)
Is this the same as another WorldImage, as expression trees? Define this at every level that has instance variables. |
int |
hashCode()
The hashCode to match the equals method |
(package private) static WorldImage |
make(String fileName)
Pseudo-constructor for objects of class FromFileImage |
(package private) static void |
setIsApplet(boolean flag)
Record whether we're in an applet. |
String |
toIndentedString(String indent)
Produce a String that represents this image,
indented by the given indent |
Methods inherited from class javalib.worldimages.RasterImage |
---|
build, draw, frozen, getBottom, getPixelColor, getRight, make, map, renderIfNecessary, save, setRendering |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(Object other)
WorldImage
equals
in interface WorldImage
equals
in class RasterImage
other
- the object to compare with this
public int hashCode()
hashCode
in interface WorldImage
hashCode
in class RasterImage
static WorldImage make(String fileName)
fileName
- static void setIsApplet(boolean flag)
flag
- true if we're in an applet, false if we're not.public String toIndentedString(String indent)
String
that represents this image,
indented by the given indent
toIndentedString
in interface WorldImage
toIndentedString
in class RasterImage
indent
- the given prefix representing the desired indentation
String
representation of this image
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |