|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nankin.zheng.gatem.view.DrawCommand
DrawCommand is an object which is passed to DisplayCache, telling it what to draw onto the screen and where and how. It contains an anchored image, a position which contains the logical coordonate of the background, and a depth, which indicates the priority of drawing.
Field Summary | |
private AnchoredImage |
anchoredImage
|
private static int |
createdInstanceCount
|
private int |
depth
|
private static int |
finalizedInstanceCount
|
private Position |
position
|
Constructor Summary | |
DrawCommand(AnchoredImage aimg,
Position pos,
int dep)
Constructor. |
Method Summary | |
int |
getAnchorX()
Get anchor x. |
int |
getAnchorY()
Get anchor y. |
static int |
getCreatedInstanceCount()
|
int |
getDepth()
Get depth, which represents the drawing priority of this command. |
static int |
getFinalizedInstanceCount()
|
java.awt.Image |
getImage()
Get image. |
Position |
getPosition()
Get position. |
java.lang.String |
toString()
Convert to String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static int createdInstanceCount
private static int finalizedInstanceCount
private AnchoredImage anchoredImage
private Position position
private int depth
Constructor Detail |
public DrawCommand(AnchoredImage aimg, Position pos, int dep)
aimg
- anchored imagepos
- position of the background, indicating where to drawdep
- depth, indicating the priority of drawing
java.lang.NullPointerException
- if aimg or pos is null.Method Detail |
public static int getCreatedInstanceCount()
public static int getFinalizedInstanceCount()
public java.awt.Image getImage()
public int getAnchorX()
public int getAnchorY()
public Position getPosition()
public int getDepth()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |