|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.pegacat.vcf.Skin
A utility grab bag class allowing a common access point to different gifs that make up a 'skin'.
A skin is simply a large .png file the various regions of which correspond to button backgrounds, window backgrounds, general backgrounds and so on.
Normally the main background is a 100x100 base pane that is found in
the top left corner of the skin, and is tesselated around the back of
the main client frame. However, if a large background image is desired,
an auxiliary skin file with the name
Field Summary | |
static int |
backgroundTileSize
|
static int |
buttonHeight
|
static int |
buttonStart
|
static int |
buttonWidth
|
static int |
connectionDialogHeight
|
static int |
connectionDialogStart
|
static int |
connectionDialogWidth
|
static int |
iconStart
|
static int |
logoSize
|
static int |
logoStart
|
static java.lang.String |
skinDirectory
|
int |
tileHeight
|
int |
tileWidth
|
static int |
welcomeHeight
|
static int |
welcomeStartX
|
static int |
welcomeStartY
|
static int |
welcomeWidth
|
Constructor Summary | |
Skin(java.lang.String fileName,
java.awt.Frame baseFrame)
|
Method Summary | |
int |
getBackgroundTileHeight()
|
int |
getBackgroundTileWidth()
|
java.awt.Image[] |
getButton()
Returns a set of 4 small buttons images 50 x 100 pixels, in order normal, highlit, pressed, and inactive. |
java.awt.Image |
getConnectionDialog()
Returns a small (400 x 300) image used as the backdrop to the connection dialog box. |
int |
getHeight()
Returns the total height of the skin (useful for determining if any 'extra' graphics have been added). |
java.awt.Image |
getIcon()
Returns a 16 x 16 icon for decorating the top left of the main window. |
java.awt.Image |
getLogo()
Returns the welcome image used as a place holder on the main window. |
java.awt.Image |
getRegion(java.awt.Rectangle region)
Skins may be any size greater than the minimum required. |
java.awt.Image |
getSkin()
Returns the entire skin image. |
java.awt.Image |
getTesselatedBackground()
Returns a generic background image 'tile' of size 100 x 100, (or arbitrary if using a separate image...) |
java.awt.Image |
getWelcome()
Returns the welcome image used as a place holder on the main window. |
int |
getWidth()
Returns the total width of the skin (useful for determining if any 'extra' graphics have been added). |
static java.awt.Image |
loadImage(java.awt.Image image,
java.awt.Component component)
Utility function that fully loads an image before returning. |
static java.awt.Image |
loadImage(java.lang.String fileName,
java.awt.Component component)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int backgroundTileSize
public static final int connectionDialogStart
public static final int connectionDialogWidth
public static final int connectionDialogHeight
public static final int buttonStart
public static final int buttonWidth
public static final int buttonHeight
public static final int iconStart
public static final int logoStart
public static final int logoSize
public static final int welcomeStartX
public static final int welcomeStartY
public static final int welcomeWidth
public static final int welcomeHeight
public static final java.lang.String skinDirectory
public int tileWidth
public int tileHeight
Constructor Detail |
public Skin(java.lang.String fileName, java.awt.Frame baseFrame)
Method Detail |
public java.awt.Image getSkin()
public int getWidth()
public int getHeight()
public java.awt.Image getIcon()
public java.awt.Image getWelcome()
public java.awt.Image getLogo()
public int getBackgroundTileWidth()
public int getBackgroundTileHeight()
public java.awt.Image getTesselatedBackground()
public java.awt.Image getConnectionDialog()
public java.awt.Image[] getButton()
public java.awt.Image getRegion(java.awt.Rectangle region)
public static java.awt.Image loadImage(java.awt.Image image, java.awt.Component component)
fileName
- the name of the image file to loadcomponent
- an awt component, required for bizarre MediaTracker doo-hicky.public static java.awt.Image loadImage(java.lang.String fileName, java.awt.Component component)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |