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


Variable Index

 o BOTH
 o CENTER
Local copies of GridbagConstraints anchor Constants.
 o EAST
 o HORIZONTAL
Local copies of GridbagConstraints fill Constants.
 o myButton
Associated button bar
 o myChangeList
Associated ObserveList change order
 o myName
Who am I?
 o NONE
 o NORTH
 o NORTHEAST
 o NORTHWEST
 o RELATIVE
Local copies of GridbagConstraints width/height Constants.
 o REMAINDER
 o SOUTH
 o SOUTHEAST
 o SOUTHWEST
 o VERTICAL
 o WEST

Constructor Index

 o ObservePanel()
Constructor

Method Index

 o AddComponent(Component, int, int, int, int, int, int, double, double)
Add component to panel.
 o AreYouWilling()
Test if a panel is willing to display itself.
 o downdate()
Finish any processing of a sub panel before it's removed.
 o FinalizePanel()
Finalize Panel Get any user modifications to the panel Should also remove panel from the display
 o getScan()
Get the Scan used by the panel Virtual function
 o RefreshPanel()
Redisplay panel
 o ResetPanel()
Restore Panel Undo any user modifications to the panel
 o ResetPanel(Scan)
Restore Panel with specified scan
 o setName(String)
Get Panel's name
 o setScan(Scan)
Set the Scan used by the panel Virtual function
 o setScanLabel(String)
Set the Scan Label used by the panel Virtual function
 o update()
Update sub panel Any initialization of a sub panel before display

Variables

 o myName
 public String myName
Who am I?

 o myButton
 public ObserveButtonBar myButton
Associated button bar

 o myChangeList
 public ChangeList myChangeList
Associated ObserveList change order

 o HORIZONTAL
 protected static final int HORIZONTAL
Local copies of GridbagConstraints fill Constants.

 o VERTICAL
 protected static final int VERTICAL
 o NONE
 protected static final int NONE
 o BOTH
 protected static final int BOTH
 o RELATIVE
 protected static final int RELATIVE
Local copies of GridbagConstraints width/height Constants.

 o REMAINDER
 protected static final int REMAINDER
 o CENTER
 protected static final int CENTER
Local copies of GridbagConstraints anchor Constants.

 o EAST
 protected static final int EAST
 o NORTH
 protected static final int NORTH
 o NORTHEAST
 protected static final int NORTHEAST
 o NORTHWEST
 protected static final int NORTHWEST
 o SOUTH
 protected static final int SOUTH
 o SOUTHEAST
 protected static final int SOUTHEAST
 o SOUTHWEST
 protected static final int SOUTHWEST
 o WEST
 protected static final int WEST

Constructors

 o ObservePanel
 public ObservePanel()
Constructor

Methods

 o 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
 o 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.
 o setScan
 public void setScan(Scan newScan)
Set the Scan used by the panel Virtual function

Parameters:
Scan - New Scan for panel
 o 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
 o getScan
 public Scan getScan()
Get the Scan used by the panel Virtual function

Returns:
Scan Panel's Scan
 o update
 public void update()
Update sub panel Any initialization of a sub panel before display

 o downdate
 public void downdate()
Finish any processing of a sub panel before it's removed. Any initialization of a sub panel before display

 o 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
 o FinalizePanel
 public void FinalizePanel()
Finalize Panel Get any user modifications to the panel Should also remove panel from the display

 o ResetPanel
 public void ResetPanel()
Restore Panel Undo any user modifications to the panel

 o 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
 o RefreshPanel
 public void RefreshPanel()
Redisplay panel


All Packages  Class Hierarchy  This Package  Previous  Next  Index