|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--world.WinEnv
A WinEnv contains windowing and panel code.
Nested Class Summary | |
private class |
WinEnv.SimPanel
Our main panel class simply contains a white panel that always requests to have the focus |
Field Summary | |
private javax.swing.JPanel |
buttons
|
private javax.swing.JFrame |
frame
|
private WinEnv.SimPanel |
panel
|
(package private) World |
theWorld
|
Constructor Summary | |
WinEnv(World world)
Create our window and buttons and registers the world. |
Method Summary | |
private javax.swing.JPanel |
createButtons()
Creates all the buttons and puts them in a panel. |
java.awt.Dimension |
getPanelSize()
Gets the size of the main panel |
void |
redraw()
Redraws the entire main content panel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private javax.swing.JFrame frame
private WinEnv.SimPanel panel
private javax.swing.JPanel buttons
World theWorld
Constructor Detail |
public WinEnv(World world)
world
- the World that this WinEnv is used forMethod Detail |
public java.awt.Dimension getPanelSize()
public void redraw()
private javax.swing.JPanel createButtons()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |