Class SOLmonitorPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--SOLmonitorPanel

public class SOLmonitorPanel
extends java.awt.Panel
implements java.util.Observer

This class implements a generic monitor panel for a CWmonitorable. It displays in tabular form monthly statistics for a selected subset of the monitorable values in the CWmonitorable.

As it stands, it cannot display values from multiple CWmonitorable objects.

See Also:
Serialized Form

Field Summary
static int AVERAGE
           
static int CDD
           
static double cdd_base
           
static int DAILY_AVERAGE
           
static int HDD
           
static double hdd_base
           
static int TOTAL
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
SOLmonitorPanel(CWmonitorable element, int[] value_indices, java.lang.String[] headers, java.lang.String[] headers1, java.lang.String[] headers1_ip, double[] divisors, double[] divisors_ip, int[] types, java.lang.String title)
          Create a SOLmonitorPanel object, given a CWonitorable object, an array specifying which data elements from the CWmonitorable should be displayed, and an array of Strings that gives the heading names for the data columns.
 
Method Summary
 void update()
          Method called to update the monitor display.
 void update(java.util.Observable obs, java.lang.Object parent)
          Implements the Observer interface.
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hdd_base

public static double hdd_base

cdd_base

public static double cdd_base

TOTAL

public static final int TOTAL

DAILY_AVERAGE

public static final int DAILY_AVERAGE

AVERAGE

public static final int AVERAGE

HDD

public static final int HDD

CDD

public static final int CDD
Constructor Detail

SOLmonitorPanel

public SOLmonitorPanel(CWmonitorable element,
                       int[] value_indices,
                       java.lang.String[] headers,
                       java.lang.String[] headers1,
                       java.lang.String[] headers1_ip,
                       double[] divisors,
                       double[] divisors_ip,
                       int[] types,
                       java.lang.String title)

Create a SOLmonitorPanel object, given

For example: new SOLmonitorPanel(window1, {SOLsurface.DIRECT_RADIATION, SOLSurface.TOTAL_RADIATION}, {"Direct", "Total"}).

Method Detail

update

public void update(java.util.Observable obs,
                   java.lang.Object parent)
Implements the Observer interface.
Specified by:
update in interface java.util.Observer

update

public void update()
Method called to update the monitor display. Accesses the surface object associated with this monitor, and calculates totals.