edu.cmu.sun.view
Class SceneView

java.lang.Object
  extended by Component3D
      extended by edu.cmu.sun.view.SceneView
All Implemented Interfaces:
ModelListener

public class SceneView
extends Component3D
implements ModelListener


Field Summary
private static int COLUMN_POSITION_MSEC
           
(package private)  java.util.List<ColumnView> columns
           
(package private)  SceneModel model
           
 
Constructor Summary
SceneView(SceneModel model)
           
 
Method Summary
 SceneModel getModel()
           
 ColumnView getPrevColumn(ColumnView toThisColumn)
           
private  ColumnView getViewForModel(ColumnModel colModel)
          returns the columnView with the corresponding ColumnModel.
 void modelChanged(Model m)
           
private  void positionColumns()
           
private  void syncViewsToModel()
           
private  void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

SceneModel model

columns

java.util.List<ColumnView> columns

COLUMN_POSITION_MSEC

private static final int COLUMN_POSITION_MSEC
See Also:
Constant Field Values
Constructor Detail

SceneView

public SceneView(SceneModel model)
Method Detail

update

private void update()

syncViewsToModel

private void syncViewsToModel()

getViewForModel

private ColumnView getViewForModel(ColumnModel colModel)
returns the columnView with the corresponding ColumnModel. However, if no view can be found, it returns null;

Parameters:
colModel -
Returns:

positionColumns

private void positionColumns()

modelChanged

public void modelChanged(Model m)
Specified by:
modelChanged in interface ModelListener

getPrevColumn

public ColumnView getPrevColumn(ColumnView toThisColumn)

getModel

public SceneModel getModel()