org.boxed_economy.components.control
クラス ControlPanel

java.lang.Object
  拡張java.awt.Component
      拡張java.awt.Container
          拡張javax.swing.JComponent
              拡張javax.swing.JInternalFrame
                  拡張org.boxed_economy.besp.presentation.guifw.AbstractInternalFrameComponent
                      拡張org.boxed_economy.components.control.ControlPanel
すべての実装インタフェース:
javax.accessibility.Accessible, java.util.EventListener, GUIComponent, java.awt.image.ImageObserver, java.awt.MenuContainer, ModelContainerListener, PresentationComponent, javax.swing.RootPaneContainer, java.io.Serializable, SimulationStateListener, UpdateEventDeliverer, javax.swing.WindowConstants

public class ControlPanel
extends AbstractInternalFrameComponent
implements SimulationStateListener, ModelContainerListener

ModelThreadの状態をパネルで表現し、またModelThreadを制御するパネルです。

バージョン:
$Id: ControlPanel.java,v 1.1 2004/03/21 12:07:50 macchan Exp $
作成者:
macchan
関連項目:
直列化された形式

入れ子クラスの概要
 
クラス javax.swing.JInternalFrame から継承した入れ子クラス
javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIcon
 
クラス javax.swing.JComponent から継承した入れ子クラス
javax.swing.JComponent.AccessibleJComponent
 
クラス java.awt.Container から継承した入れ子クラス
java.awt.Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承した入れ子クラス
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
フィールドの概要
static java.lang.String BUTTON_EXTEND
           
static java.lang.String LABEL_NOWORLD
           
static java.util.ResourceBundle resource
           
static java.lang.String SPACE
           
static java.lang.String TITLE
           
static java.lang.String TITLE_RUNNING
           
static java.lang.String TITLE_STOPPED
           
static java.lang.String TITLE_STOPPING
           
 
クラス javax.swing.JInternalFrame から継承したフィールド
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
 
クラス javax.swing.JComponent から継承したフィールド
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
インタフェース javax.swing.WindowConstants から継承したフィールド
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
インタフェース java.awt.image.ImageObserver から継承したフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
ControlPanel(ControlManager controlManager)
          コンストラクタ
 
メソッドの概要
 void initialize()
          このコンポーネントの初期化処理を記述するメソッドです。
protected  void initializeDefaultCloseOperation()
          ウインドウの閉じ動作を初期化します デフォルトの実装です。
protected  void initializeFrame()
          ウインドウの設定を初期化します デフォルトの実装です。
protected  void initializeFramePolicy()
          ウインドウポリシーを初期化します デフォルトの実装です。
protected  void initializeIcon()
          フレームアイコンを初期化します(Boxのアイコンにします) デフォルトの実装です。
 void installExtendPanel(javax.swing.JPanel panel)
          拡張パネルをインストールします
 void prepareWorldClose(ModelContainerEvent ev)
          現在のモデルが破棄される直前に呼ばれます
 void prepareWorldOpen(ModelContainerEvent ev)
          世界(モデル)が設定され、初期化される前のタイミングで呼ばれます
 void simulationStarted(SimulationStateEvent ev)
          シミュレーションが開始されたことを通知します
 void simulationStopped(SimulationStateEvent ev)
          シミュレーションが停止されたことを通知します
 void simulationStopping(SimulationStateEvent ev)
          シミュレーションが停止処理にはいったことを通知します
 void terminate()
          このプレゼンテーションコンポーネントを終了します。
 void worldClosed(ModelContainerEvent ev)
          現在のモデルが破棄された直後に呼ばれます
 void worldOpened(ModelContainerEvent ev)
          世界(モデル)が設定され、初期化された後のタイミングで呼ばれます
 
クラス org.boxed_economy.besp.presentation.guifw.AbstractInternalFrameComponent から継承したメソッド
addTradeListener, addUpdateAgentListener, addUpdateBehaviorListener, addUpdateChannelListener, addUpdateClockListener, addUpdateInformationListener, addUpdateRelationListener, addUpdateStepListener, addUpdateWorldListener, close, dispose, getMainFrame, getPresentationContainer, getWorld, initializeWindow, open, removeTradeListener, removeUpdateAgentListener, removeUpdateBehaviorListener, removeUpdateChannelListener, removeUpdateClockListener, removeUpdateInformationListener, removeUpdateRelationListener, removeUpdateStepListener, removeUpdateWorldListener, setPresentationContainer
 
クラス javax.swing.JInternalFrame から継承したメソッド
addImpl, addInternalFrameListener, createRootPane, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
クラス javax.swing.JComponent から継承したメソッド
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
クラス java.awt.Container から継承したメソッド
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
クラス java.awt.Component から継承したメソッド
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

resource

public static java.util.ResourceBundle resource

TITLE

public static final java.lang.String TITLE

SPACE

public static final java.lang.String SPACE
関連項目:
定数フィールド値

TITLE_RUNNING

public static final java.lang.String TITLE_RUNNING

TITLE_STOPPING

public static final java.lang.String TITLE_STOPPING

TITLE_STOPPED

public static final java.lang.String TITLE_STOPPED

LABEL_NOWORLD

public static final java.lang.String LABEL_NOWORLD

BUTTON_EXTEND

public static final java.lang.String BUTTON_EXTEND
コンストラクタの詳細

ControlPanel

public ControlPanel(ControlManager controlManager)
コンストラクタ

メソッドの詳細

initializeDefaultCloseOperation

protected void initializeDefaultCloseOperation()
クラス AbstractInternalFrameComponent の記述:
ウインドウの閉じ動作を初期化します デフォルトの実装です。気に入らなければ、オーバーライドするか、設定しなおします

オーバーライド:
クラス AbstractInternalFrameComponent 内の initializeDefaultCloseOperation
関連項目:
AbstractInternalFrameComponent.initializeDefaultCloseOperation()

initializeFrame

protected void initializeFrame()
クラス AbstractInternalFrameComponent の記述:
ウインドウの設定を初期化します デフォルトの実装です。気に入らなければ、オーバーライドするか、設定しなおします

オーバーライド:
クラス AbstractInternalFrameComponent 内の initializeFrame
関連項目:
AbstractInternalFrameComponent.initializeFrame()

initializeFramePolicy

protected void initializeFramePolicy()
クラス AbstractInternalFrameComponent の記述:
ウインドウポリシーを初期化します デフォルトの実装です。気に入らなければ、オーバーライドするか、設定しなおします

オーバーライド:
クラス AbstractInternalFrameComponent 内の initializeFramePolicy
関連項目:
AbstractInternalFrameComponent.initializeFramePolicy()

initializeIcon

protected void initializeIcon()
クラス AbstractInternalFrameComponent の記述:
フレームアイコンを初期化します(Boxのアイコンにします) デフォルトの実装です。気に入らなければ、オーバーライドするか、設定しなおします

オーバーライド:
クラス AbstractInternalFrameComponent 内の initializeIcon
関連項目:
AbstractInternalFrameComponent.initializeIcon()

initialize

public void initialize()
インタフェース PresentationComponent の記述:
このコンポーネントの初期化処理を記述するメソッドです。 プレゼンテーションコンポーネントがコンテナーに追加された後に呼ばれます。

定義:
インタフェース PresentationComponent 内の initialize
関連項目:
PresentationComponent.initialize()

terminate

public void terminate()
インタフェース PresentationComponent の記述:
このプレゼンテーションコンポーネントを終了します。 コンテナーのremoveメソッドから呼ばれます。(modelが存在していれば、 先にcloseWorldが呼ばれます。)

定義:
インタフェース PresentationComponent 内の terminate
関連項目:
PresentationComponent.terminate()

installExtendPanel

public void installExtendPanel(javax.swing.JPanel panel)
拡張パネルをインストールします


prepareWorldOpen

public void prepareWorldOpen(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
世界(モデル)が設定され、初期化される前のタイミングで呼ばれます

定義:
インタフェース ModelContainerListener 内の prepareWorldOpen
関連項目:
ModelContainerListener.prepareWorldOpen(ModelContainerEvent)

worldOpened

public void worldOpened(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
世界(モデル)が設定され、初期化された後のタイミングで呼ばれます

定義:
インタフェース ModelContainerListener 内の worldOpened
関連項目:
ModelContainerListener.worldOpened(ModelContainerEvent)

prepareWorldClose

public void prepareWorldClose(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
現在のモデルが破棄される直前に呼ばれます

定義:
インタフェース ModelContainerListener 内の prepareWorldClose
関連項目:
ModelContainerListener.prepareWorldClose(ModelContainerEvent)

worldClosed

public void worldClosed(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
現在のモデルが破棄された直後に呼ばれます

定義:
インタフェース ModelContainerListener 内の worldClosed
関連項目:
ModelContainerListener.worldClosed(ModelContainerEvent)

simulationStarted

public void simulationStarted(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが開始されたことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStarted
関連項目:
SimulationStateListener.simulationStarted(SimulationStateEvent)

simulationStopped

public void simulationStopped(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが停止されたことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStopped
関連項目:
SimulationStateListener.simulationStopped(SimulationStateEvent)

simulationStopping

public void simulationStopping(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが停止処理にはいったことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStopping
関連項目:
SimulationStateListener.simulationStopping(SimulationStateEvent)