|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.nipax.hippo.pexeso.PGTheme
public class PGTheme
This class should hold description of visualisation. It holds images of cards, how lagre they are, spacing,... TODO: Loadtable themes from a file would be a nice feature.
Field Summary | |
---|---|
private java.awt.Image[] |
m_image
|
Constructor Summary | |
---|---|
PGTheme()
|
Method Summary | |
---|---|
int |
getH()
Gets width of pisture. |
java.awt.Image |
getImage(int ID)
Return Image associated with ID. |
int |
getSpace()
Gets spacing between pictures when drawn in grid on the screen. |
int |
getW()
Gets width of pisture. |
java.awt.Image |
loadImage(java.lang.String imageName)
Helper method to load an image file from the CLASSPATH or current dir |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.awt.Image[] m_image
Constructor Detail |
---|
public PGTheme()
Method Detail |
---|
public int getW()
public int getH()
public int getSpace()
public java.awt.Image getImage(int ID)
Image
associated with ID. Or null if no such
an ID is valid. Negative ID is allways invalid.
ID
- the ID of wanted image
public java.awt.Image loadImage(java.lang.String imageName)
imageName
- the package and name of the file to load relative to the CLASSPATH or curent dir
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |