WISA.wisa3D
Class Wisa3DFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--WISA.wisa3D.Wisa3DFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class Wisa3DFrame
extends javax.swing.JFrame
implements java.awt.event.ActionListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int CASCADE_DISPLAYS
           
static int TILE_DISPLAYS
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Wisa3DFrame()
          Construct an empty Wisa3DFrame.
Wisa3DFrame(java.lang.String[] initialData)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Public method of the ActionListener interface.
 Wisa3DPanel addDisplay()
          Adds an empty Wisa3DPanel to this Wisa3DFrame.
 Wisa3DPanel addDisplay(Wisa3DPanel display)
          Adds a new Wisa3DPanel to this Wisa3DFrame.
 void addSlicer()
          Adds a Slicer to the active display.
 void arrangeDisplays(int policy)
          Arranges the displays.
protected  boolean checkNameExists(java.lang.String name)
          Checks the specified name if it allready exists.
 void exit()
          Brings up a dialog that asks if the user really wants to quit and quits if the answer is yes.
 Wisa3DPanel getActiveDisplay()
          Returns the active display or null if none is active.
 DisplayData[] getData()
          Returns true if the passed Wisa3DPanel is contained in this Wisa3DFrame and is visible.
 DisplayData getData(java.lang.String name)
           
 java.lang.String[] getDataNames()
           
 java.lang.String getDefaultDisplayName()
           
protected  java.lang.String getDefaultName()
          Constructs a default name for a new Wisa3DPanel which does not allready exist.
static Wisa3DParameter getDefaultParameters()
          Returns the default parameters for this Wisa3DFrame.
 Wisa3DPanel getDisplay(java.lang.String name)
          Return the display with the specified name or null if no display with this name was found.
 int getDisplayCount()
          Get the number of displays contained in this Wisa3DFrame.
 java.lang.String[] getDisplayNames()
          Get the names of all Wisa3DPanels contained in this Wisa3DFrame.
 Wisa3DPanel[] getDisplays()
          Returns an array of all Wisa3DPanels contained in this Wisa3DFrame.
static javax.swing.JWindow getSplashScreen()
          Get the splash screen for Wisa3D.
 Wisa3DPanel[] getVisibleDisplays()
          Returns all visible Wisa3DPanels in this frame.
 void loadData()
          Loads data into this Wisa3DFrame.
static void main(java.lang.String[] args)
          Start Wisa3DFrame as app.
protected  void processWindowEvent(java.awt.event.WindowEvent e)
           
 void remove(java.awt.Component c)
           
 void removeDisplay(Wisa3DPanel display)
          Removes a Wisa3DPanel from this Wisa3DFrame.
 void setDefaultDisplayName(java.lang.String name)
           
static void setDefaultParameters(Wisa3DParameter param)
          Sets the default parameters for this Wisa3DFrame.
 void setProcessors(DataProcessor[] processors)
          Sets the display mode, e.g. the way in which the displays are ordered.
 boolean smartRemoveDisplay(Wisa3DPanel display)
          Removes a Wisa3DPanel from this Wisa3DPanel and destroy it if the user comfirmes via a dialog box.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

CASCADE_DISPLAYS

public static int CASCADE_DISPLAYS

TILE_DISPLAYS

public static int TILE_DISPLAYS
Constructor Detail

Wisa3DFrame

public Wisa3DFrame()
Construct an empty Wisa3DFrame.


Wisa3DFrame

public Wisa3DFrame(java.lang.String[] initialData)
Method Detail

getDefaultName

protected java.lang.String getDefaultName()
Constructs a default name for a new Wisa3DPanel which does not allready exist.

Returns:
A name for a new Wisa3DPanel.

checkNameExists

protected boolean checkNameExists(java.lang.String name)
Checks the specified name if it allready exists.

Parameters:
name - The name to check.
Returns:
True if the name allready exists.

addDisplay

public Wisa3DPanel addDisplay()
Adds an empty Wisa3DPanel to this Wisa3DFrame.


addDisplay

public Wisa3DPanel addDisplay(Wisa3DPanel display)
Adds a new Wisa3DPanel to this Wisa3DFrame.


removeDisplay

public void removeDisplay(Wisa3DPanel display)
Removes a Wisa3DPanel from this Wisa3DFrame.


remove

public void remove(java.awt.Component c)
Overrides:
remove in class javax.swing.JFrame

smartRemoveDisplay

public boolean smartRemoveDisplay(Wisa3DPanel display)
Removes a Wisa3DPanel from this Wisa3DPanel and destroy it if the user comfirmes via a dialog box.

Returns:
True if the panel was removed correctly, false otherwise.

arrangeDisplays

public void arrangeDisplays(int policy)
Arranges the displays.

Parameters:
policy - The kind the displays should be arranged. Valid arguments are CASCADE_DISPLAYS and TILE_DISPLAYS.

getDisplays

public Wisa3DPanel[] getDisplays()
Returns an array of all Wisa3DPanels contained in this Wisa3DFrame.

Returns:
A list of all Wisa3DPanels.

getDisplayCount

public int getDisplayCount()
Get the number of displays contained in this Wisa3DFrame.

Returns:
The number of displays.

getDisplay

public Wisa3DPanel getDisplay(java.lang.String name)
Return the display with the specified name or null if no display with this name was found.

Parameters:
name - The name of the display to be returned.
Returns:
The display with the given name or null.

getDisplayNames

public java.lang.String[] getDisplayNames()
Get the names of all Wisa3DPanels contained in this Wisa3DFrame.

Returns:
A String array with the names of all displays.

getVisibleDisplays

public Wisa3DPanel[] getVisibleDisplays()
Returns all visible Wisa3DPanels in this frame.

Returns:
All Wisa3DPanels that are currently visible.

getActiveDisplay

public Wisa3DPanel getActiveDisplay()
Returns the active display or null if none is active.

Returns:
The active Wisa3DPanel or null.

getData

public DisplayData[] getData()
Returns true if the passed Wisa3DPanel is contained in this Wisa3DFrame and is visible.

Returns:
True if panel is visible and belongs to this frame.

getDataNames

public java.lang.String[] getDataNames()

getData

public DisplayData getData(java.lang.String name)

setProcessors

public void setProcessors(DataProcessor[] processors)
Sets the display mode, e.g. the way in which the displays are ordered. Valid values are CellTable.SINGLE_CELL, CellTable.HORIZONTAL_SPLIT, CellTable.VERTICAL_SPLIT and CellTable.GRIDDED_CELLS.


loadData

public void loadData()
Loads data into this Wisa3DFrame.


getDefaultParameters

public static Wisa3DParameter getDefaultParameters()
Returns the default parameters for this Wisa3DFrame. All new initialized Wisa3DPanels are constructed with these parameters.

Returns:
The default Wisa3DParameter-Object.

setDefaultParameters

public static void setDefaultParameters(Wisa3DParameter param)
Sets the default parameters for this Wisa3DFrame. All new initialized Wisa3DPanels are constructed with these parameters.

Parameters:
param - The new default Wisa3DParameter-Object.

getDefaultDisplayName

public java.lang.String getDefaultDisplayName()

setDefaultDisplayName

public void setDefaultDisplayName(java.lang.String name)

processWindowEvent

protected void processWindowEvent(java.awt.event.WindowEvent e)
Overrides:
processWindowEvent in class javax.swing.JFrame

addSlicer

public void addSlicer()
Adds a Slicer to the active display.


exit

public void exit()
Brings up a dialog that asks if the user really wants to quit and quits if the answer is yes.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Public method of the ActionListener interface.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getSplashScreen

public static javax.swing.JWindow getSplashScreen()
Get the splash screen for Wisa3D.

Returns:
The Wisa3D splash screen.

main

public static void main(java.lang.String[] args)
Start Wisa3DFrame as app.

Parameters:
args - The initial datafiles to be loaded.