org.gjt.universe.gui.one
Class GUIFactoryOne

java.lang.Object
  |
  +--org.gjt.universe.GUIFactory
        |
        +--org.gjt.universe.gui.one.GUIFactoryOne

public class GUIFactoryOne
extends GUIFactory

This is the factory class for the "one" GUI option. The one GUI option is the Universe screen on one window.


Nested Class Summary
(package private)  class GUIFactoryOne.TreeClicked
           
 
Field Summary
private  CommandBar commandbar
           
private  javax.swing.JFrame frame
           
private  javax.swing.border.TitledBorder infoBorder
           
private  Index infoIndex
           
private  javax.swing.JPanel infoPanel
           
private  javax.swing.JLabel timeLabel
           
private  javax.swing.border.TitledBorder treeBorder
           
private  Index treeIndex
           
private  javax.swing.JPanel treePanel
           
 
Fields inherited from class org.gjt.universe.GUIFactory
GUITypeJFC, GUITypeOne, GUITypeText
 
Constructor Summary
GUIFactoryOne()
          Main Constructor
 
Method Summary
 void clearStatusArea()
           
 void errorMessage(java.lang.String errorMessage)
          Display error message
 void gameOptionsProcessed()
           
 void getAlphaOptions()
          Get Alpha options
 void getGameOptions()
           
(package private)  javax.swing.JPanel getInfoPanel()
           
 javax.swing.JFrame getJFrame()
           
(package private)  javax.swing.JPanel getMapControlPanel()
           
(package private)  javax.swing.JPanel getMapInfoPanel()
           
(package private)  javax.swing.JPanel getMapPanel()
           
(package private)  javax.swing.JPanel getResultsPanel()
           
(package private)  javax.swing.JPanel getTreePanel()
           
 void launchResultsScreen()
           
 void messageListWindow(java.util.Vector messages)
           
 void showEditor(Index idx)
          Show an editor for the item referred by an Index.
 void showMainWindow()
           
 void showStartupOptions()
          Prompts for game options
 void shutDown()
          Shutdown routine
 void statusLine(java.lang.String statusMessage, boolean refresh)
          Display line to status area
 void updateCivInfo()
           
 void updateInfo(Index idx)
           
 void updateInfoName(java.lang.String text)
           
 void updateTree(Index idx)
           
 void updateTreeName(java.lang.String text)
           
 
Methods inherited from class org.gjt.universe.GUIFactory
getEditor, getEditor, getInstance, getToolBar, getViewer, init, registerEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

private javax.swing.JFrame frame

commandbar

private CommandBar commandbar

timeLabel

private javax.swing.JLabel timeLabel

treeBorder

private javax.swing.border.TitledBorder treeBorder

treeIndex

private Index treeIndex

treePanel

private javax.swing.JPanel treePanel

infoBorder

private javax.swing.border.TitledBorder infoBorder

infoIndex

private Index infoIndex

infoPanel

private javax.swing.JPanel infoPanel
Constructor Detail

GUIFactoryOne

public GUIFactoryOne()
Main Constructor

Method Detail

gameOptionsProcessed

public void gameOptionsProcessed()
Specified by:
gameOptionsProcessed in class GUIFactory

getMapPanel

javax.swing.JPanel getMapPanel()

getMapControlPanel

javax.swing.JPanel getMapControlPanel()

getMapInfoPanel

javax.swing.JPanel getMapInfoPanel()

getInfoPanel

javax.swing.JPanel getInfoPanel()

getTreePanel

javax.swing.JPanel getTreePanel()

getResultsPanel

javax.swing.JPanel getResultsPanel()

getGameOptions

public void getGameOptions()

showStartupOptions

public void showStartupOptions()
Description copied from class: GUIFactory
Prompts for game options

Specified by:
showStartupOptions in class GUIFactory

errorMessage

public void errorMessage(java.lang.String errorMessage)
Description copied from class: GUIFactory
Display error message

Specified by:
errorMessage in class GUIFactory

statusLine

public void statusLine(java.lang.String statusMessage,
                       boolean refresh)
Description copied from class: GUIFactory
Display line to status area

Specified by:
statusLine in class GUIFactory

clearStatusArea

public void clearStatusArea()
Specified by:
clearStatusArea in class GUIFactory

updateCivInfo

public void updateCivInfo()
Specified by:
updateCivInfo in class GUIFactory

getAlphaOptions

public void getAlphaOptions()
Description copied from class: GUIFactory
Get Alpha options

Specified by:
getAlphaOptions in class GUIFactory

launchResultsScreen

public void launchResultsScreen()
Specified by:
launchResultsScreen in class GUIFactory

updateTree

public void updateTree(Index idx)

updateTreeName

public void updateTreeName(java.lang.String text)

updateInfo

public void updateInfo(Index idx)

updateInfoName

public void updateInfoName(java.lang.String text)

showMainWindow

public void showMainWindow()
Specified by:
showMainWindow in class GUIFactory

getJFrame

public javax.swing.JFrame getJFrame()
Specified by:
getJFrame in class GUIFactory

shutDown

public void shutDown()
Description copied from class: GUIFactory
Shutdown routine

Overrides:
shutDown in class GUIFactory

messageListWindow

public void messageListWindow(java.util.Vector messages)
Specified by:
messageListWindow in class GUIFactory

showEditor

public void showEditor(Index idx)
Description copied from class: GUIFactory
Show an editor for the item referred by an Index. This method should be overridden as desired by the subclasses, to wrap the GUIEditor returned by getEditor according to the subclass of GUIFactory.

Specified by:
showEditor in class GUIFactory


Copyright © 2001 Universe Dev Team All Rights Reserved.