experimental
Class SimpleComponentFactoryImpl2

java.lang.Object
  extended by experimental.SimpleComponentFactoryImpl2
All Implemented Interfaces:
GUIComponentFactory

public class SimpleComponentFactoryImpl2
extends java.lang.Object
implements GUIComponentFactory

This GUIComponentFactory creates simple components that can be used to test the layout of the client jFrame without running the whole game.

Author:
Luke Lindsay

Field Summary
private  MapViewJComponentConcrete mainMap
           
private  javax.swing.JScrollPane mainMapScrollPane1
           
private  MainMapAndOverviewMapMediator mediator
           
private  OverviewMapJComponent overviewMap
           
private  java.awt.Rectangle r
           
 
Constructor Summary
SimpleComponentFactoryImpl2()
          Creates new SimpleComponentFactoryImpl
 
Method Summary
private  void addMainMapAndOverviewMapMediatorIfNecessary()
           
private  void addMainmapzoomMenuItem(javax.swing.JMenu displayMenu, float scale)
           
private  void addOverviewmapzoomMenuItem(javax.swing.JMenu displayMenu, float scale)
           
 javax.swing.JMenu createBrokerMenu()
           
 javax.swing.JMenu createBuildMenu()
           
 javax.swing.JLabel createCashJLabel()
           
 javax.swing.JLabel createDateJLabel()
           
 javax.swing.JMenu createDisplayMenu()
           
 javax.swing.JMenu createGameMenu()
           
 javax.swing.JMenu createHelpMenu()
           
 javax.swing.JScrollPane createMainMap()
           
 javax.swing.JPanel createOverviewMap()
           
 javax.swing.JMenu createReportsMenu()
           
 javax.swing.JTabbedPane createTrainsJTabPane()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

overviewMap

private OverviewMapJComponent overviewMap

mainMapScrollPane1

private javax.swing.JScrollPane mainMapScrollPane1

mainMap

private MapViewJComponentConcrete mainMap

mediator

private MainMapAndOverviewMapMediator mediator

r

private java.awt.Rectangle r
Constructor Detail

SimpleComponentFactoryImpl2

public SimpleComponentFactoryImpl2()
Creates new SimpleComponentFactoryImpl

Method Detail

createBuildMenu

public javax.swing.JMenu createBuildMenu()
Specified by:
createBuildMenu in interface GUIComponentFactory

createGameMenu

public javax.swing.JMenu createGameMenu()
Specified by:
createGameMenu in interface GUIComponentFactory

createDisplayMenu

public javax.swing.JMenu createDisplayMenu()
Specified by:
createDisplayMenu in interface GUIComponentFactory

createBrokerMenu

public javax.swing.JMenu createBrokerMenu()
Specified by:
createBrokerMenu in interface GUIComponentFactory

addOverviewmapzoomMenuItem

private void addOverviewmapzoomMenuItem(javax.swing.JMenu displayMenu,
                                        float scale)

addMainmapzoomMenuItem

private void addMainmapzoomMenuItem(javax.swing.JMenu displayMenu,
                                    float scale)

createMainMap

public javax.swing.JScrollPane createMainMap()
Specified by:
createMainMap in interface GUIComponentFactory

createOverviewMap

public javax.swing.JPanel createOverviewMap()
Specified by:
createOverviewMap in interface GUIComponentFactory

addMainMapAndOverviewMapMediatorIfNecessary

private void addMainMapAndOverviewMapMediatorIfNecessary()

createCashJLabel

public javax.swing.JLabel createCashJLabel()
Specified by:
createCashJLabel in interface GUIComponentFactory

createDateJLabel

public javax.swing.JLabel createDateJLabel()
Specified by:
createDateJLabel in interface GUIComponentFactory

createHelpMenu

public javax.swing.JMenu createHelpMenu()
Specified by:
createHelpMenu in interface GUIComponentFactory

createTrainsJTabPane

public javax.swing.JTabbedPane createTrainsJTabPane()
Specified by:
createTrainsJTabPane in interface GUIComponentFactory

createReportsMenu

public javax.swing.JMenu createReportsMenu()
Specified by:
createReportsMenu in interface GUIComponentFactory