faa.tg.eco.ecogui.spwcfg
Class AbstractLabLayout

java.lang.Object
  extended by faa.tg.eco.ecogui.spwcfg.AbstractLabLayout
All Implemented Interfaces:
SpMgrEventListener
Direct Known Subclasses:
SpLabLayoutComponent, SpwUsageComponent

public abstract class AbstractLabLayout
extends java.lang.Object
implements SpMgrEventListener

 This object defines the required methods needed to build an
 object which represents the phyiscal layout of a sim pilot
 workstation lab.  Child objects should define how they
 will represent the lab, and what EcoEvents to listen for.
 
See the source AbstractLabLayout.java

Version:
$Id: AbstractLabLayout.java,v 3.1 2006/03/14 15:56:09 samf Exp $
Author:
Timothy Swantek

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
protected  int numColumns
           
protected  int numRows
           
protected  SimpilotManager simpilotManager
           
protected  SpLabLayoutDataModel spdm
           
 
Constructor Summary
AbstractLabLayout(SimpilotManager spMgr, SpLabLayoutDataModel spdm)
           
 
Method Summary
abstract  void handleSpMgrEvent(SimpilotManagerEvent se)
          This method is needed to implement the EcoEventListener interface.
abstract  javax.swing.JComponent makeBlankSpace()
          Thie method should be defined in the extending classes.
 javax.swing.JPanel makePrimaryPanel(java.lang.Class ale)
          Child classes should define how they will build this representation (of the simpilot lab layout) in a JPanel format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

numRows

protected int numRows

numColumns

protected int numColumns

spdm

protected SpLabLayoutDataModel spdm

simpilotManager

protected SimpilotManager simpilotManager
Constructor Detail

AbstractLabLayout

public AbstractLabLayout(SimpilotManager spMgr,
                         SpLabLayoutDataModel spdm)
Method Detail

makePrimaryPanel

public javax.swing.JPanel makePrimaryPanel(java.lang.Class ale)
Child classes should define how they will build this representation (of the simpilot lab layout) in a JPanel format.


makeBlankSpace

public abstract javax.swing.JComponent makeBlankSpace()
Thie method should be defined in the extending classes. It would define the blank space returned to mimic a true lab layout. (By spaces = space between rows/columns.)

Returns:
a JComponent which represents the size of the blank space.

handleSpMgrEvent

public abstract void handleSpMgrEvent(SimpilotManagerEvent se)
This method is needed to implement the EcoEventListener interface. It describes which EcoEvents to listener for, and how to react upon hearing them. Child classes must define how to respond to these events.

Specified by:
handleSpMgrEvent in interface SpMgrEventListener
Parameters:
ee - is the EcoEvent to handle.
See Also:
EcoEventListener