|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.tools.StatePicture
public class StatePicture
StatePicture.java Created on 3 mars 2004 Followin the state, draw a picture at a determined position.
| Constructor Summary | |
|---|---|
StatePicture(java.io.InputStream inputFile)
read from the specified stream the state picture options. |
|
| Method Summary | |
|---|---|
boolean |
hasState(int fullState)
Indicates if this state suits to the specified stete |
boolean |
paint(MCard owner,
java.awt.Graphics g,
int currentX,
int currentY)
Draw this state on the specified card using the given graphics. |
java.lang.String |
toString()
Return the state name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatePicture(java.io.InputStream inputFile)
throws java.io.IOException
inputFile - file containing the states picture
java.io.IOException - If some other I/O error occurs| Method Detail |
|---|
public boolean paint(MCard owner,
java.awt.Graphics g,
int currentX,
int currentY)
false, no picture and no text
will be drawn and false value will be returned.
owner - the card this state is applied on.g - the graphics.currentX - current relative X position of cursorcurrentY - current relative Y position of cursor
Component.paint(java.awt.Graphics)public boolean hasState(int fullState)
fullState - the full state number
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 | |||||||||