Package PamView
Class PamView
java.lang.Object
PamView.PamView
- All Implemented Interfaces:
PamViewInterface
- Direct Known Subclasses:
PamGui
- Author:
- Doug Gillespie
Makes a simple display with a main GUI and a list of data objects.
-
Constructor Summary
ConstructorDescriptionPamView
(PamControllerInterface pamControllerInterface, PamModel pamModelInterface, int frameNumber) -
Method Summary
Modifier and TypeMethodDescriptionint
abstract String
abstract void
renameControlledUnit
(PamControlledUnit pamControlledUnit) void
setFrameNumber
(int frameNumber) abstract void
showControlledUnit
(PamControlledUnit pamControlledUnit) tells the view to show the main display panel of a pamControlledUnitMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface PamView.PamViewInterface
addControlledUnit, enableGUIControl, modelChanged, pamEnded, pamStarted, removeControlledUnit, setTitle
-
Constructor Details
-
PamView
public PamView(PamControllerInterface pamControllerInterface, PamModel pamModelInterface, int frameNumber)
-
-
Method Details
-
showControlledUnit
tells the view to show the main display panel of a pamControlledUnit- Specified by:
showControlledUnit
in interfacePamViewInterface
- Parameters:
pamControlledUnit
-
-
renameControlledUnit
-
getViewName
-
getFrameNumber
public int getFrameNumber()- Specified by:
getFrameNumber
in interfacePamViewInterface
- Returns:
- Frame number used by the multiple GUI frames. All other objects, such as the model view should return invalid input: '<' 0.
-
getGuiFrame
- Specified by:
getGuiFrame
in interfacePamViewInterface
-
setFrameNumber
public void setFrameNumber(int frameNumber)
-