All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.GUI.ObservePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----JObserve.GUI.ObservePanel
- public class ObservePanel
- extends Panel
Generic (Virtual) Observe Panel
Create panel with GridBag Layout manager
-
BOTH
-
-
CENTER
- Local copies of GridbagConstraints anchor Constants.
-
EAST
-
-
HORIZONTAL
- Local copies of GridbagConstraints fill Constants.
-
myButton
- Associated button bar
-
myChangeList
- Associated ObserveList change order
-
myName
- Who am I?
-
NONE
-
-
NORTH
-
-
NORTHEAST
-
-
NORTHWEST
-
-
RELATIVE
- Local copies of GridbagConstraints width/height Constants.
-
REMAINDER
-
-
SOUTH
-
-
SOUTHEAST
-
-
SOUTHWEST
-
-
VERTICAL
-
-
WEST
-
-
ObservePanel()
- Constructor
-
AddComponent(Component, int, int, int, int, int, int, double, double)
- Add component to panel.
-
AreYouWilling()
- Test if a panel is willing to display itself.
-
downdate()
- Finish any processing of a sub panel before it's removed.
-
FinalizePanel()
- Finalize Panel
Get any user modifications to the panel
Should also remove panel from the display
-
getScan()
- Get the Scan used by the panel
Virtual function
-
RefreshPanel()
- Redisplay panel
-
ResetPanel()
- Restore Panel
Undo any user modifications to the panel
-
ResetPanel(Scan)
- Restore Panel with specified scan
-
setName(String)
- Get Panel's name
-
setScan(Scan)
- Set the Scan used by the panel
Virtual function
-
setScanLabel(String)
- Set the Scan Label used by the panel
Virtual function
-
update()
- Update sub panel
Any initialization of a sub panel before display
myName
public String myName
- Who am I?
myButton
public ObserveButtonBar myButton
- Associated button bar
myChangeList
public ChangeList myChangeList
- Associated ObserveList change order
HORIZONTAL
protected static final int HORIZONTAL
- Local copies of GridbagConstraints fill Constants.
VERTICAL
protected static final int VERTICAL
NONE
protected static final int NONE
BOTH
protected static final int BOTH
RELATIVE
protected static final int RELATIVE
- Local copies of GridbagConstraints width/height Constants.
REMAINDER
protected static final int REMAINDER
CENTER
protected static final int CENTER
- Local copies of GridbagConstraints anchor Constants.
EAST
protected static final int EAST
NORTH
protected static final int NORTH
NORTHEAST
protected static final int NORTHEAST
NORTHWEST
protected static final int NORTHWEST
SOUTH
protected static final int SOUTH
SOUTHEAST
protected static final int SOUTHEAST
SOUTHWEST
protected static final int SOUTHWEST
WEST
protected static final int WEST
ObservePanel
public ObservePanel()
- Constructor
setName
public void setName(String name)
- Get Panel's name
- Parameters:
-
String
- the name of the panel
- Returns:
-
String
the name of the panel
public String getName() {
return myName;
} // end getName
/**
Set Panel's name
- Overrides:
- setName in class Component
AreYouWilling
public String AreYouWilling()
- Test if a panel is willing to display itself.
If it is a null is returned otherwise the excuse.
- Returns:
-
String
null if willing, otherwise the reason not.
setScan
public void setScan(Scan newScan)
- Set the Scan used by the panel
Virtual function
- Parameters:
-
Scan
- New Scan for panel
setScanLabel
public void setScanLabel(String slabel)
- Set the Scan Label used by the panel
Virtual function
- Parameters:
-
String
- Label for the scan to be edited
getScan
public Scan getScan()
- Get the Scan used by the panel
Virtual function
- Returns:
-
Scan
Panel's Scan
update
public void update()
- Update sub panel
Any initialization of a sub panel before display
downdate
public void downdate()
- Finish any processing of a sub panel before it's removed.
Any initialization of a sub panel before display
AddComponent
public void AddComponent(Component comp,
int x,
int y,
int gridwidth,
int gridheight,
int fill,
int anchor,
double weightx,
double weighty)
- Add component to panel.
Get any user modifications to the panel
- Parameters:
-
Component
- The component to add
-
int
- The X (0-rel) cell number
-
int
- The Y (0-rel) cell number
-
int
- The number of cells in X
-
int
- The number of cells in Y
-
int
- The expansion code allowed
-
int
- The anchor code
-
double
- The X expansion weight
-
double
- The Y expansion weight
FinalizePanel
public void FinalizePanel()
- Finalize Panel
Get any user modifications to the panel
Should also remove panel from the display
ResetPanel
public void ResetPanel()
- Restore Panel
Undo any user modifications to the panel
ResetPanel
public Scan ResetPanel(Scan in)
- Restore Panel with specified scan
- Parameters:
-
Scan
- new scan to use if non null
- Returns:
-
Scan
new scan actually used
RefreshPanel
public void RefreshPanel()
- Redisplay panel
All Packages Class Hierarchy This Package Previous Next Index