|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.graphic.display.dialog.OpenPatricianGameDialog
ch.sahits.game.graphic.display.dialog.TradingOfficeWeaponStorageDialog
public class TradingOfficeWeaponStorageDialog
Overview of the weapons stored in the trading office
| Nested Class Summary | |
|---|---|
private static class |
TradingOfficeWeaponStorageDialog.DialogPositions
This class holds the positions where different elements are placed on the dialog. |
| Nested classes/interfaces inherited from class ch.sahits.game.graphic.display.dialog.OpenPatricianGameDialog |
|---|
OpenPatricianGameDialog.CloseAction |
| Field Summary | |
|---|---|
private boolean |
enabled
|
private ClickablePolygons |
footerPolygons
|
private IImageUtilities |
imageUtils
reference to the utilities for image manipulation |
private IOpenPatricianPainter |
opPainter
|
private TradingOfficeWeaponStorageDialog.DialogPositions |
positions
Hold all the positioning information, initialized in initBackgroundImage |
| Fields inherited from class ch.sahits.game.graphic.display.dialog.OpenPatricianGameDialog |
|---|
city, inset, loader |
| Constructor Summary | |
|---|---|
TradingOfficeWeaponStorageDialog(Point topLeft,
double scale,
CityPlayerProxy cityProxy)
|
|
| Method Summary | |
|---|---|
private int |
drawRow(Graphics2D g2d,
int y,
int leftBorder,
String text)
Draw a text string at a defined position. |
private void |
drawTableHeader(Graphics2D g2d,
int y)
Draw the table header |
void |
gameRender(Graphics gScr)
|
void |
gameUpdate(Event e,
Object notice)
|
protected void |
init()
Initialize class specific stuff which might be need later in the initialisation |
protected BufferedImage |
initBackgroundImage(IImageLoader loader,
Point topLeft)
Initialize the background image that is stored as a reference. |
protected void |
initiatePolygons()
Instanciate the any polygon member variables. |
boolean |
isEnabled()
|
void |
setEnabled(boolean flag)
|
| Methods inherited from class ch.sahits.game.graphic.display.dialog.OpenPatricianGameDialog |
|---|
getBounds, getInset, initInsets |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.game.rendering.RenderablePart |
|---|
getBounds |
| Field Detail |
|---|
private IImageUtilities imageUtils
private IOpenPatricianPainter opPainter
private boolean enabled
private ClickablePolygons footerPolygons
private TradingOfficeWeaponStorageDialog.DialogPositions positions
| Constructor Detail |
|---|
public TradingOfficeWeaponStorageDialog(Point topLeft,
double scale,
CityPlayerProxy cityProxy)
| Method Detail |
|---|
protected void init()
OpenPatricianGameDialog
init in class OpenPatricianGameDialogprotected void initiatePolygons()
OpenPatricianGameDialog
initiatePolygons in class OpenPatricianGameDialogpublic boolean isEnabled()
isEnabled in interface Renderablepublic void setEnabled(boolean flag)
setEnabled in interface Renderable
public void gameUpdate(Event e,
Object notice)
gameUpdate in interface IEventListenergameUpdate in interface Renderable
private void drawTableHeader(Graphics2D g2d,
int y)
throws FontFormatException,
IOException
g2d - y - position of the table header baseline
FontFormatException
IOException
private int drawRow(Graphics2D g2d,
int y,
int leftBorder,
String text)
throws FontFormatException,
IOException
g2d - Graphic contexty - positionleftBorder - left insettext - to be drawn
FontFormatException
IOException
protected BufferedImage initBackgroundImage(IImageLoader loader,
Point topLeft)
OpenPatricianGameDialog
initBackgroundImage in class OpenPatricianGameDialogloader - ImageLoader to retrieve images
public void gameRender(Graphics gScr)
gameRender in interface RenderablegameRender in class OpenPatricianGameDialog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||