|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.triplea.image.UnitImageFactory
public class UnitImageFactory
| Field Summary | |
|---|---|
static int |
UNIT_ICON_HEIGHT
Height of all icons. |
static int |
UNIT_ICON_WIDTH
Width of all icons. |
| Constructor Summary | |
|---|---|
UnitImageFactory()
Creates new IconImageFactory |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseImageName(UnitType type,
PlayerID id,
GameData data,
boolean damaged)
|
java.awt.Image |
getHighlightImage(UnitType type,
PlayerID player,
GameData data,
boolean damaged)
|
javax.swing.ImageIcon |
getIcon(UnitType type,
PlayerID player,
GameData data,
boolean damaged)
Return a icon image for a unit. |
java.awt.Image |
getImage(UnitType type,
PlayerID player,
GameData data,
boolean damaged)
Return the appropriate unit image. |
double |
getScaleFactor()
Return the unit scaling factor |
int |
getUnitImageHeight()
Return the height of scaled units |
int |
getUnitImageWidth()
Return the width of scaled units |
void |
setResourceLoader(ResourceLoader loader,
double scaleFactor)
|
void |
setScaleFactor(double scaleFactor)
Set the unitScaling factor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNIT_ICON_WIDTH
public static final int UNIT_ICON_HEIGHT
| Constructor Detail |
|---|
public UnitImageFactory()
| Method Detail |
|---|
public void setResourceLoader(ResourceLoader loader,
double scaleFactor)
public void setScaleFactor(double scaleFactor)
public double getScaleFactor()
public int getUnitImageWidth()
public int getUnitImageHeight()
public java.awt.Image getImage(UnitType type,
PlayerID player,
GameData data,
boolean damaged)
public java.awt.Image getHighlightImage(UnitType type,
PlayerID player,
GameData data,
boolean damaged)
public javax.swing.ImageIcon getIcon(UnitType type,
PlayerID player,
GameData data,
boolean damaged)
public java.lang.String getBaseImageName(UnitType type,
PlayerID id,
GameData data,
boolean damaged)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||