|
dLife Home Page | |||||||||
| 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
dlife.gui.GUIPanel
dlife.robot.gui.DeviceDisplay
dlife.robot.gui.ArraySensorDisplay<VTYPE>
public abstract class ArraySensorDisplay<VTYPE>
GUI display for an ArraySensor. The values are displayed in a table with two columns. The left hand column displays a label for each value. The right hand column displays the value corresponding to each label. If the number of elements requires more space than is available a vertical scrollbar appears on the right. In addition a frozen check box appears at the bottom of the list. Checking this checkbox will prevent the displayed values from being updated. Note that this checkbox does not stop the updating of the underlying ArraySensor.
| Nested Class Summary |
|---|
| 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 | |
|---|---|
protected ArraySensor<VTYPE> |
sensor
|
| Fields inherited from class dlife.robot.gui.DeviceDisplay |
|---|
myDevice |
| 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 | |
|---|---|
ArraySensorDisplay(ArraySensor<VTYPE> mySensor)
Construct a new ArrayValueDisplay for the specified ArraySensor. |
|
| Method Summary | |
|---|---|
protected void |
buildGUI()
Assemble the pieces of the GUI. |
void |
columnHeaderChange()
Indicate to this ArraySensorDisplay that the column headings have changed. |
protected void |
disableGUI()
Nothing to disable in an ArraySensorDisplay. |
protected void |
enableGUI()
Nothing to enable in an ArraySensorDisplay. |
abstract String |
getSensorColumnHeader()
Get the name to be used at the top of the column of sensor names in the GUI display (e.g. |
abstract String |
getSensorName(int row)
Get the name of the sensor for each row of the GUI display. |
abstract String |
getValueColumnHeader()
Get the name to be used at the top of the column of sensor values in the GUI display (e.g. |
boolean |
isFrozen()
Determine if this display is frozen or not. |
static void |
main(String[] args)
A little test method for the ArrayValueDisplay. |
void |
updateGUIFromDevice()
Update the display. |
| Methods inherited from class dlife.robot.gui.DeviceDisplay |
|---|
getContentPanel, getGUIName, isActive, isEnabled, replaceContentPanel, setActive, setEnabled, update |
| Methods inherited from class dlife.gui.GUIPanel |
|---|
invokeBuildGUI |
| 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 |
|---|
protected ArraySensor<VTYPE> sensor
| Constructor Detail |
|---|
public ArraySensorDisplay(ArraySensor<VTYPE> mySensor)
mySensor - the ArraySensor for which to display its values.| Method Detail |
|---|
protected void buildGUI()
buildGUI in class GUIPanelpublic abstract String getSensorColumnHeader()
public abstract String getValueColumnHeader()
public abstract String getSensorName(int row)
row - the row of the table.
public boolean isFrozen()
public void updateGUIFromDevice()
updateGUIFromDevice in class DeviceDisplaypublic void columnHeaderChange()
protected void disableGUI()
disableGUI in class DeviceDisplayprotected void enableGUI()
enableGUI in class DeviceDisplaypublic static void main(String[] args)
args -
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||