Class SOLorientationControl

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

public class SOLorientationControl
extends java.awt.Panel
implements java.awt.event.ActionListener

This class provides a control panel for a SOLorientation, allowing specification of its name, azimuth, and tilt. It also provides an area in which is displayed the control panels (SOLsurfaceControl) for one or more surface with this orientation. These are placed using the CardLayout manager, and the SOLorientationControl provides buttons for scrolling through the possible surfaces. Constructors allow it to be created using an existing SOLorientation, or for the SOLorientation to be created on the fly.

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
SOLorientationControl(TMYdata tmystuff, SOLlocation location, double surface_azimuth, double surface_tilt, java.lang.String name, SimBase top)
          Create a SOLorientationControl object, given a SOLlocation, an azimuth, a tilt, and a name.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Here is where we come when the enter key is pressed in the text field.
 void addSurface()
           
 void addWindow()
           
 void newTilt(double tilt)
           
static int nextInstanceNumber()
           
 void paint(java.awt.Graphics g)
           
 
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, 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
 

Constructor Detail

SOLorientationControl

public SOLorientationControl(TMYdata tmystuff,
                             SOLlocation location,
                             double surface_azimuth,
                             double surface_tilt,
                             java.lang.String name,
                             SimBase top)
Create a SOLorientationControl object, given a SOLlocation, an azimuth, a tilt, and a name.
Method Detail

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Container

nextInstanceNumber

public static int nextInstanceNumber()

addSurface

public void addSurface()

addWindow

public void addWindow()

newTilt

public void newTilt(double tilt)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Here is where we come when the enter key is pressed in the text field.
Specified by:
actionPerformed in interface java.awt.event.ActionListener