org.gjt.universe.gui
Class GUIFactoryJFC

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

public final class GUIFactoryJFC
extends GUIFactory

This is the "main" window of the Universe game. This window has such things as the tool bar, the menu, and some other game information.

Version:
$Id: GUIFactoryJFC.java,v 1.5 2001/05/13 16:46:29 noordvyk Exp $

Nested Class Summary
(package private)  class GUIFactoryJFC.MainWindowListener
           
private  class GUIFactoryJFC.MouseClicked
           
 
Field Summary
private  GUICommandBarJFC commandbar
           
private  UniverseJFrame frame
           
private  javax.swing.JPanel infoPanel
           
private  javax.swing.JPanel mainPanel
           
private  GUIMainMenuJFC menu
           
private  GUIResultsJFC results
           
private  javax.swing.JList resultsList
           
private  javax.swing.DefaultListModel resultsListModel
           
private  javax.swing.JPanel resultsPanel
           
private  javax.swing.JLabel turnLabel
           
private  javax.swing.JLabel viewerLabel
           
 
Fields inherited from class org.gjt.universe.GUIFactory
GUITypeJFC, GUITypeOne, GUITypeText
 
Constructor Summary
GUIFactoryJFC()
          Main Constructor
 
Method Summary
 void clearStatusArea()
           
 void errorMessage(java.lang.String errorMessage)
          Display error message
 void gameOptionsProcessed()
           
 void getAlphaOptions()
          Get Alpha options
 javax.swing.JFrame getJFrame()
           
 javax.swing.JMenuBar getMainMenu()
           
 java.lang.Object getToolBar()
           
 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
(package private) static void spawnSubWindow(CivID viewer, Index idx)
           
 void statusLine(java.lang.String stringToAdd, boolean refresh)
          Display line to status area
 void updateCivInfo()
          This method is called after each turn is generated.
 
Methods inherited from class org.gjt.universe.GUIFactory
getEditor, getEditor, getInstance, getViewer, init, registerEditor, shutDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

private UniverseJFrame frame

commandbar

private GUICommandBarJFC commandbar

menu

private GUIMainMenuJFC menu

mainPanel

private javax.swing.JPanel mainPanel

infoPanel

private javax.swing.JPanel infoPanel

turnLabel

private javax.swing.JLabel turnLabel

viewerLabel

private javax.swing.JLabel viewerLabel

resultsPanel

private javax.swing.JPanel resultsPanel

resultsList

private javax.swing.JList resultsList

resultsListModel

private javax.swing.DefaultListModel resultsListModel

results

private GUIResultsJFC results
Constructor Detail

GUIFactoryJFC

public GUIFactoryJFC()
Main Constructor

Method Detail

getToolBar

public java.lang.Object getToolBar()
Overrides:
getToolBar in class GUIFactory

getJFrame

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

getMainMenu

public javax.swing.JMenuBar getMainMenu()

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 stringToAdd,
                       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

getAlphaOptions

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

Specified by:
getAlphaOptions in class GUIFactory

spawnSubWindow

static void spawnSubWindow(CivID viewer,
                           Index idx)

showMainWindow

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

updateCivInfo

public void updateCivInfo()
This method is called after each turn is generated. This method should update the screen information that might change after each turn.

Specified by:
updateCivInfo in class GUIFactory

launchResultsScreen

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

gameOptionsProcessed

public void gameOptionsProcessed()
Specified by:
gameOptionsProcessed 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.