edu.brook.ascape.view
Class BatchView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--edu.brook.ascape.view.PanelImp
                                |
                                +--edu.brook.ascape.view.PanelView
                                      |
                                      +--edu.brook.ascape.view.BatchView

public class BatchView
extends PanelView

A panel for making live changes to a model's settings.

Since:
1.2
Version:
1.2
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
protected  edu.brook.ascape.view.BatchView.ScapeControlAction addHistAction
          Scape control for creating a new histogram.
protected  javax.swing.JButton addHistButton
           
protected  edu.brook.ascape.view.BatchView.ScapeControlAction addPieAction
          Scape control for creating a new pie chart.
protected  javax.swing.JButton addPieButton
           
protected  edu.brook.ascape.view.BatchView.ScapeControlAction addTSAction
          Scape control for creating a new time series graph.
protected  javax.swing.JButton addTSButton
           
protected  javax.swing.JComboBox frameList
           
protected  edu.brook.ascape.view.BatchView.ScapeControlAction infoAction
          Scape control for getting information about a scape.
protected  javax.swing.JButton infoButton
           
protected  boolean lastScapeAppearsPaused
          Did the scape appear to be paused last iteration?
protected  boolean lastScapeAppearsRunning
          Did the scape appear to be running last iteration?
protected  edu.brook.ascape.view.BatchView.ScapeControlAction openAction
          Scape control for opening a new scape.
protected  javax.swing.JButton openButton
           
protected  edu.brook.ascape.view.BatchView.ScapeControlAction pauseToggleAction
          Scape control for pausing a scape.
protected  javax.swing.JButton pauseToggleButton
           
protected  edu.brook.ascape.view.BatchView.ScapeControlAction quitAction
          Scape control for quiting the model.
protected  javax.swing.JButton quitButton
           
protected  boolean scapeAppearsPaused
          Does the scape appear to be paused?
protected  boolean scapeAppearsRunning
          Does the scape appear to be running?
protected  edu.brook.ascape.view.BatchView.ScapeControlAction settingsAction
          Scape control for starting a scape.
protected  javax.swing.JButton settingsButton
           
protected  edu.brook.ascape.view.BatchView.ScapeControlAction startStopAction
          Scape control for starting a scape.
protected  javax.swing.JButton startStopButton
           
protected  javax.swing.JLabel statusLabel
           
protected  javax.swing.JToolBar toolBar
           
 
Fields inherited from class edu.brook.ascape.view.PanelView
awaitingUpdate, frame, name, recorder, recordNext, scape
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
BatchView()
           
 
Method Summary
 void addScape(Scape scape)
          Sets the scape that this view will be viewed within.
 void build()
           
 DataOutputView getDataView()
           
 SweepControlView getSweepView()
           
 void onUpdate()
          Update the components.
 java.lang.String toString()
           
 
Methods inherited from class edu.brook.ascape.view.PanelView
getGraphicsRecorder, getName, getScape, getViewFrame, onIterate, onSetup, onStart, onStop, paint, removeScape, scapeUpdated, setGraphicsRecorder, setName, setViewFrame, updated
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

toolBar

protected javax.swing.JToolBar toolBar

statusLabel

protected javax.swing.JLabel statusLabel

frameList

protected javax.swing.JComboBox frameList

openAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction openAction
Scape control for opening a new scape.

openButton

protected javax.swing.JButton openButton

startStopAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction startStopAction
Scape control for starting a scape.

startStopButton

protected javax.swing.JButton startStopButton

pauseToggleAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction pauseToggleAction
Scape control for pausing a scape.

pauseToggleButton

protected javax.swing.JButton pauseToggleButton

settingsAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction settingsAction
Scape control for starting a scape.

settingsButton

protected javax.swing.JButton settingsButton

infoAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction infoAction
Scape control for getting information about a scape.

infoButton

protected javax.swing.JButton infoButton

quitAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction quitAction
Scape control for quiting the model.

quitButton

protected javax.swing.JButton quitButton

addTSAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction addTSAction
Scape control for creating a new time series graph.

addTSButton

protected javax.swing.JButton addTSButton

addHistAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction addHistAction
Scape control for creating a new histogram.

addHistButton

protected javax.swing.JButton addHistButton

addPieAction

protected edu.brook.ascape.view.BatchView.ScapeControlAction addPieAction
Scape control for creating a new pie chart.

addPieButton

protected javax.swing.JButton addPieButton

scapeAppearsRunning

protected boolean scapeAppearsRunning
Does the scape appear to be running?

lastScapeAppearsRunning

protected boolean lastScapeAppearsRunning
Did the scape appear to be running last iteration?

scapeAppearsPaused

protected boolean scapeAppearsPaused
Does the scape appear to be paused?

lastScapeAppearsPaused

protected boolean lastScapeAppearsPaused
Did the scape appear to be paused last iteration?
Constructor Detail

BatchView

public BatchView()
Method Detail

build

public void build()
Overrides:
build in class PanelView

onUpdate

public void onUpdate()
Update the components. Ensures that the state of all buttons matchhes the state of the observed getViewFrame().
Overrides:
onUpdate in class PanelView

getSweepView

public SweepControlView getSweepView()

getDataView

public DataOutputView getDataView()

addScape

public void addScape(Scape scape)
              throws java.util.TooManyListenersException
Sets the scape that this view will be viewed within. Also adds the underlying SweepControlView and DataOutputView to the Scape.
Parameters:
agent - the target agent.
Throws:
java.util.TooManyListenersException - on attempt to add a scape when one is allready added
Overrides:
addScape in class PanelView

toString

public java.lang.String toString()
Overrides:
toString in class PanelView

(c) 1998-2000 The Brookings Insitution
Webpage