|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.princeton.toy.TSimDetailPane
public class TSimDetailPane
TSimDetailPane is a JPanel which shows the details (in human readable terms) of what the TSimMachinePane displays.
Nested Class Summary | |
---|---|
protected class |
TSimDetailPane.Listener
The Listener of a TBaseConverterPane pays attention to the changes in the PTextFields, and fires off changes to the other PTextFields. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static Border |
DETAIL_AREA_BORDER
The border of the detail area in the TSimDetailPane. |
static int |
MAX_SCALE
The maxmimum scale which the TSimDetailPane can be scaled to. |
static int |
MIN_SCALE
The minimum scale which the TSimDetailPane can be scaled to. |
static int |
PREFERRED_SCALE
The scale used in determining the preferred size of the TSimDetailPane. |
static String |
RESCALE_COMMAND
The command to update the contents of the inputList with the stdin stream of the virtualMachine. |
static String |
UPDATE_COMMAND
The command to update the contents of the inputList with the stdin stream of the virtualMachine. |
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 |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TSimDetailPane(TVirtualMachine virtualMachine,
TSimMachinePane machinePane)
Creates a new TSimDetailPane. |
Method Summary | |
---|---|
boolean |
doCommand(String command,
Object extraInfo)
Performs a command based on the argument. |
TSimMachinePane |
getMachinePane()
Returns the machinePane attached to this TSimDetailPane. |
TVirtualMachine |
getVirtualMachine()
Returns the virtualMachine attached to this TSimDetailPane. |
protected void |
processComponentEvent(ComponentEvent e)
Intercept ComponentEvents to do resize and move the detailPanel when this component is resized. |
void |
setMachinePane(TSimMachinePane machinePane)
Sets the machinePane attached to this TSimDetailPane. |
void |
setVirtualMachine(TVirtualMachine virtualMachine)
Sets the virtualMachine attached to this TSimDetailPane. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String RESCALE_COMMAND
public static final String UPDATE_COMMAND
public static final int MIN_SCALE
public static final int MAX_SCALE
public static final int PREFERRED_SCALE
public static final Border DETAIL_AREA_BORDER
Constructor Detail |
---|
public TSimDetailPane(TVirtualMachine virtualMachine, TSimMachinePane machinePane)
Method Detail |
---|
public void setVirtualMachine(TVirtualMachine virtualMachine)
virtualMachine
- The virtualMachine to be attached to this TSimDetailPane.public TVirtualMachine getVirtualMachine()
public void setMachinePane(TSimMachinePane machinePane)
machinePane
- The machinePane to be attached to this TSimDetailPane.public TSimMachinePane getMachinePane()
public boolean doCommand(String command, Object extraInfo)
command
- A string representing the command. Note that pointer equality (not string
equality) is tested here, so it is important to use the string constants defined in this
class. An IllegalArgumentException will be thrown if the argument is invalid.
protected void processComponentEvent(ComponentEvent e)
processComponentEvent
in class Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |