|
|||||||||
| 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
public abstract class OpenPatricianGameDialog
This is a dialog that renderes a wooden frame with an inlaid parchment at a given
position. Based on what the dialog represents the subclass may implement a RenderablePart.
| Nested Class Summary | |
|---|---|
protected static class |
OpenPatricianGameDialog.CloseAction
|
| Field Summary | |
|---|---|
private Rectangle |
bounds
Top left corner of the frame |
protected CityPlayerProxy |
city
Reference to the city view model |
private BufferedImage |
img
Frame that is rendered |
protected Insets |
inset
|
protected IImageLoader |
loader
|
| Constructor Summary | |
|---|---|
OpenPatricianGameDialog(Point topLeft,
IImageLoader loader,
double scale,
CityPlayerProxy cityProxy)
|
|
| Method Summary | |
|---|---|
private static BufferedImage |
deepCopy(BufferedImage bi)
Create a copy of an image |
void |
gameRender(Graphics gScr)
|
Rectangle |
getBounds()
|
Insets |
getInset()
Retrieve the insets of the dialog border |
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. |
protected void |
initInsets(double scale)
Compute the insets as a factor of the scaling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final BufferedImage img
private final Rectangle bounds
protected Insets inset
protected IImageLoader loader
protected final CityPlayerProxy city
| Constructor Detail |
|---|
public OpenPatricianGameDialog(Point topLeft,
IImageLoader loader,
double scale,
CityPlayerProxy cityProxy)
| Method Detail |
|---|
protected void initInsets(double scale)
scale - protected void init()
protected void initiatePolygons()
protected BufferedImage initBackgroundImage(IImageLoader loader,
Point topLeft)
loader - ImageLoader to retrieve images
public final Rectangle getBounds()
public void gameRender(Graphics gScr)
public Insets getInset()
private static BufferedImage deepCopy(BufferedImage bi)
bi -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||