|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.client.gui.panel.ImageProvider
public abstract class ImageProvider
An object that should be able to provide images upon request.
Constructor Summary | |
---|---|
ImageProvider()
|
Method Summary | |
---|---|
abstract java.awt.Image |
getColorChip(java.awt.Color color)
Should return the Image of the color chip with the given color. |
abstract java.awt.Image |
getGoodsImage(GoodsType type)
Should return the Image of the graphic with the given type. |
abstract javax.swing.ImageIcon |
getGoodsImageIcon(GoodsType type)
Should return the Image of the graphic with the given type. |
abstract java.awt.Image |
getMiscImage(java.lang.String type)
Should return the Image of the graphic with the given type. |
abstract java.awt.Image |
getTerrainImage(TileType type,
int x,
int y)
Should return the Image of the terrain with the given type. |
abstract int |
getTerrainImageHeight(TileType type)
Should return the height of the terrain-image at the given index. |
abstract int |
getTerrainImageWidth(TileType type)
Should return the width of the terrain-image at the given index. |
abstract javax.swing.ImageIcon |
getUnitButtonImageIcon(int index,
int state)
Should return the ImageIcon of the Unit Button with the given index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageProvider()
Method Detail |
---|
public abstract java.awt.Image getTerrainImage(TileType type, int x, int y)
type
- The type of the terrain of which we need the Image.x
- The x-coordinate of the location of the tile that is being
drawn.y
- The x-coordinate of the location of the tile that is being
drawn.
public abstract java.awt.Image getGoodsImage(GoodsType type)
type
- The type of the graphic of which we need the Image.
public abstract javax.swing.ImageIcon getGoodsImageIcon(GoodsType type)
type
- The type of the graphic of which we need the Image.
public abstract java.awt.Image getMiscImage(java.lang.String type)
type
- The type of the graphic of which we need the Image.
public abstract java.awt.Image getColorChip(java.awt.Color color)
color
- The color of the color chip of which we need the Image.
public abstract javax.swing.ImageIcon getUnitButtonImageIcon(int index, int state)
index
- The index of the image to return.state
- The state (normal, highlighted, pressed, disabled)
public abstract int getTerrainImageWidth(TileType type)
type
- The type of the terrain-image.
public abstract int getTerrainImageHeight(TileType type)
type
- The type of the terrain-image.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |