bass.gui
Class Gui

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by bass.gui.Gui
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class Gui
extends javax.swing.JFrame

The main window GUI for B.A.S.S.

Version:
0.1
Author:
Thomas Klein
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  java.awt.event.ActionListener alMenu
           
private  java.awt.event.ActionListener alSuggSelBtns
           
private  java.awt.event.ActionListener alVisBtns
           
private  DTO_Band bandForVis
           
private  javax.swing.JScrollPane bandSelSP
           
private  java.awt.Color bgLightBlue
           
private  javax.swing.border.Border border
           
private  java.awt.Color borderColor
           
private  edu.stanford.ejalbert.BrowserLauncher browserLauncher
           
private  GraphCanvas canvas3d
           
private  javax.swing.JCheckBox cbSuggDeep
           
private  java.awt.Container content
           
private  javax.swing.JLabel currentBandForVis
           
private  java.lang.Object[] currentListData
           
private  java.io.File fileDummy
           
private  char fileSeperator
           
private  javax.swing.JLabel fListSizeValue
           
private  HelpScreen helpScreen
           
private  LicenseScreen licScreen
           
private  javax.swing.event.HyperlinkListener linkListen
           
private  javax.swing.JMenuBar menu
           
private  javax.swing.JMenu mFile
           
private  javax.swing.JMenu mHelp
           
private  javax.swing.JMenuItem miAbout
           
private  javax.swing.JMenuItem miExit
           
private  javax.swing.JMenuItem miHelpCont
           
private  javax.swing.JMenuItem miLicense
           
private  javax.swing.JMenuItem miSave
           
private  java.lang.String msgAbout
           
private  javax.swing.JMenu mView
           
private  javax.swing.JOptionPane opAbout
           
private  PointHistoryViewer pHistoryViewer
           
private  boolean resetVis
           
private  SearchDialog searchDialog
           
private  javax.swing.JScrollPane selectedBandsSP
           
private  ChartThread statGraphCreatorThread
           
private  javax.swing.JPanel statGraphPanel
           
private  java.awt.Container statistics
           
private  javax.swing.JTree statSelector
           
private  javax.swing.JEditorPane statText
           
private  javax.swing.JScrollPane statTextScrollPane
           
private  int statTreeActiveComponent
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraph
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphActivity
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreFreq
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreFreqAll
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreFreqUsed
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreGrowth
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphHype
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphLabelType
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphLabelTypeABC
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphLabelTypePop
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeGraphLongTail
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeStat
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeStatTop
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeStatTopFans
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeStatTopFansPerDay
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeStatTopPlays
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeStatTopSince
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeStatTopViews
           
private  javax.swing.tree.DefaultMutableTreeNode statTreeTop
           
private  javax.swing.event.TreeSelectionListener statTSL
           
private  java.awt.Container status
           
private  javax.swing.JLabel statusLabel
           
private  javax.swing.JProgressBar statusProgress
           
private  javax.swing.JLabel suggBandSelectHeader
           
private  javax.swing.JPanel suggBandSelection
           
private  javax.swing.JEditorPane suggBandSuggestionOutput
           
private  javax.swing.JButton suggBtnResetList
           
private  javax.swing.JButton suggBtnSelectFromDirectory
           
private  javax.swing.JButton suggBtnSelectFromSearch
           
private  java.awt.Dimension suggBtnSize
           
private  javax.swing.JButton suggBtnStartCalculating
           
private  java.awt.Container suggestion
           
private  javax.swing.JScrollPane suggScrollPane
           
private  javax.swing.JList suggSelectedBandList
           
private  javax.swing.JTabbedPane tPane
           
private  java.lang.String version
           
private  javax.swing.JPanel visBandInfo
           
private  javax.swing.JEditorPane visBandInfoEP
           
private  javax.swing.JScrollPane visBandInfoSP
           
private  java.awt.Dimension visBtnSize
           
private  javax.swing.JPanel visCheckboxes
           
private  javax.swing.JCheckBox visConBetweenFLists
           
private  javax.swing.JPanel visControls
           
private  VisCalculationThread visCT
           
private  javax.swing.JCheckBox visFirstLevelCon
           
private  javax.swing.JPanel visFListSize
           
private  javax.swing.JPanel visOptions
           
private  javax.swing.JPanel visPanel
           
private  int visPanelIndex
           
private  javax.swing.JButton visResetView
           
private  javax.swing.JPanel visRightSide
           
private  javax.swing.JPanel visRightSideCenter
           
private  javax.swing.JButton visSelectBand
           
private  javax.swing.JPanel visSelection
           
private  javax.swing.JCheckBox visShowNames
           
private  javax.swing.JSlider visSliderFListSize
           
private  javax.swing.event.ChangeListener visSliderFListSizeCL
           
private  javax.swing.JSlider visSliderHierarchy
           
private  javax.swing.JButton visStartCalc
           
private  java.awt.Container visualization
           
 
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
Gui()
          initializes the GUI
 
Method Summary
 void addToSelectedBands(java.lang.Object[] o)
          adds the object array to the current band list
private  void exit()
          closes the app
private  void handleLinkClick(javax.swing.event.HyperlinkEvent e)
          handles clicking on links in the suggestion output
private  void handleMenuActions(java.awt.event.ActionEvent e)
          handles all actions caused by clicking on MenuItems
private  void handleStatSelection(javax.swing.event.TreeSelectionEvent e)
          handles the actions caused by clicking on elements in the stat selection tree
private  void handleSuggestionActions(java.awt.event.ActionEvent e)
          handles the actions caused by the buttons in the suggestion submenu
private  void handleVisButtons(java.awt.event.ActionEvent e)
          handles the actions caused by clicking on buttons in the vis controls
 void increaseCurrentProgress(int incremental)
          adds the incremental to the current progress
private  void initMenu()
          initializes the MenuBar and adds it to the NORTH of the content
private  void initStatistics()
          inits the stats component
private  void initStatus()
          inits the status components(label & progressbar) and adds them to the content (SOUTH)
private  void initSuggestions()
          inits the sugg component
private  void initTabs()
          adds the three contents (vis, sugg, stats) to the TabbedPane and adds the TabbedPane to the content (CENTER)
make sure the content containers are filled with their data before running this
private  void initVisualization()
          inits the vis component
private  void initWindow()
          initializes window title, size, position & windows listener
private  void installWindowListener()
          installs listener for handling window closing
static void main(java.lang.String[] args)
          starts the application
 void setBandInfo(java.lang.String bandinfo)
          sets the band info window content to the spezified string
 void setCurrentProgress(int cur)
          sets the current progress of the progressbar to the given value
 void setGraph(java.awt.Component graph)
          add the graph to the guis output ;)
 void setProgessMax(int max)
          sets the maximum value (100%) of the progressbar to the given value and resets the progressbar
 void setSelectedBands(java.lang.Object[] o)
          sets the selected bands list to the spezified array
 void setSelectedVisBand(DTO_Band band)
          sets the input band for the visualization to the spezified band
 void setStatText(java.lang.String filename)
          displayes the specified file in the statistics text windows
 void setStatusText(java.lang.String msg)
          sets the status label (lower left) to the given message
 void setSuggestionOutput(java.lang.String output)
          sets the spezified string a suggestion output
 void setSuggestionOutput(java.net.URL output)
          sets the spezified URL a suggestion output
private  void startup()
          loads the splash screen and waits until initialization is finished
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, 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, 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, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, 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, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, 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, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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

menu

private javax.swing.JMenuBar menu

mFile

private javax.swing.JMenu mFile

mView

private javax.swing.JMenu mView

mHelp

private javax.swing.JMenu mHelp

miSave

private javax.swing.JMenuItem miSave

miExit

private javax.swing.JMenuItem miExit

miAbout

private javax.swing.JMenuItem miAbout

miHelpCont

private javax.swing.JMenuItem miHelpCont

miLicense

private javax.swing.JMenuItem miLicense

tPane

private javax.swing.JTabbedPane tPane

version

private java.lang.String version

msgAbout

private java.lang.String msgAbout

fileSeperator

private char fileSeperator

fileDummy

private java.io.File fileDummy

suggBtnSize

private java.awt.Dimension suggBtnSize

visBtnSize

private java.awt.Dimension visBtnSize

bgLightBlue

private java.awt.Color bgLightBlue

borderColor

private java.awt.Color borderColor

border

private javax.swing.border.Border border

browserLauncher

private edu.stanford.ejalbert.BrowserLauncher browserLauncher

searchDialog

private SearchDialog searchDialog

helpScreen

private HelpScreen helpScreen

statusProgress

private javax.swing.JProgressBar statusProgress

statusLabel

private javax.swing.JLabel statusLabel

content

private java.awt.Container content

visualization

private java.awt.Container visualization

suggestion

private java.awt.Container suggestion

statistics

private java.awt.Container statistics

status

private java.awt.Container status

opAbout

private javax.swing.JOptionPane opAbout

licScreen

private LicenseScreen licScreen

statSelector

private javax.swing.JTree statSelector

statText

private javax.swing.JEditorPane statText

statTextScrollPane

private javax.swing.JScrollPane statTextScrollPane

statTreeTop

private javax.swing.tree.DefaultMutableTreeNode statTreeTop

statTreeStat

private javax.swing.tree.DefaultMutableTreeNode statTreeStat

statTreeGraph

private javax.swing.tree.DefaultMutableTreeNode statTreeGraph

statTreeGraphLongTail

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphLongTail

statTreeGraphGenreGrowth

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreGrowth

statTreeGraphActivity

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphActivity

statTreeGraphHype

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphHype

statTreeGraphGenreFreq

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreFreq

statTreeGraphGenreFreqAll

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreFreqAll

statTreeGraphGenreFreqUsed

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphGenreFreqUsed

statTreeGraphLabelType

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphLabelType

statTreeGraphLabelTypeABC

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphLabelTypeABC

statTreeGraphLabelTypePop

private javax.swing.tree.DefaultMutableTreeNode statTreeGraphLabelTypePop

statTreeStatTop

private javax.swing.tree.DefaultMutableTreeNode statTreeStatTop

statTreeStatTopFans

private javax.swing.tree.DefaultMutableTreeNode statTreeStatTopFans

statTreeStatTopPlays

private javax.swing.tree.DefaultMutableTreeNode statTreeStatTopPlays

statTreeStatTopViews

private javax.swing.tree.DefaultMutableTreeNode statTreeStatTopViews

statTreeStatTopSince

private javax.swing.tree.DefaultMutableTreeNode statTreeStatTopSince

statTreeStatTopFansPerDay

private javax.swing.tree.DefaultMutableTreeNode statTreeStatTopFansPerDay

statTSL

private javax.swing.event.TreeSelectionListener statTSL

statTreeActiveComponent

private int statTreeActiveComponent

statGraphCreatorThread

private ChartThread statGraphCreatorThread

statGraphPanel

private javax.swing.JPanel statGraphPanel

suggBandSelection

private javax.swing.JPanel suggBandSelection

suggBandSuggestionOutput

private javax.swing.JEditorPane suggBandSuggestionOutput

suggScrollPane

private javax.swing.JScrollPane suggScrollPane

bandSelSP

private javax.swing.JScrollPane bandSelSP

selectedBandsSP

private javax.swing.JScrollPane selectedBandsSP

suggBtnStartCalculating

private javax.swing.JButton suggBtnStartCalculating

suggBtnSelectFromSearch

private javax.swing.JButton suggBtnSelectFromSearch

suggBtnSelectFromDirectory

private javax.swing.JButton suggBtnSelectFromDirectory

suggBtnResetList

private javax.swing.JButton suggBtnResetList

suggBandSelectHeader

private javax.swing.JLabel suggBandSelectHeader

suggSelectedBandList

private javax.swing.JList suggSelectedBandList

currentListData

private java.lang.Object[] currentListData

linkListen

private javax.swing.event.HyperlinkListener linkListen

pHistoryViewer

private PointHistoryViewer pHistoryViewer

cbSuggDeep

private javax.swing.JCheckBox cbSuggDeep

visSelection

private javax.swing.JPanel visSelection

visRightSide

private javax.swing.JPanel visRightSide

visRightSideCenter

private javax.swing.JPanel visRightSideCenter

visOptions

private javax.swing.JPanel visOptions

visControls

private javax.swing.JPanel visControls

visFListSize

private javax.swing.JPanel visFListSize

visBandInfo

private javax.swing.JPanel visBandInfo

visCheckboxes

private javax.swing.JPanel visCheckboxes

visPanel

private javax.swing.JPanel visPanel

visBandInfoSP

private javax.swing.JScrollPane visBandInfoSP

visResetView

private javax.swing.JButton visResetView

visStartCalc

private javax.swing.JButton visStartCalc

visSelectBand

private javax.swing.JButton visSelectBand

visBandInfoEP

private javax.swing.JEditorPane visBandInfoEP

canvas3d

private GraphCanvas canvas3d

bandForVis

private DTO_Band bandForVis

currentBandForVis

private javax.swing.JLabel currentBandForVis

fListSizeValue

private javax.swing.JLabel fListSizeValue

visSliderHierarchy

private javax.swing.JSlider visSliderHierarchy

visSliderFListSize

private javax.swing.JSlider visSliderFListSize

visCT

private VisCalculationThread visCT

visSliderFListSizeCL

private javax.swing.event.ChangeListener visSliderFListSizeCL

visConBetweenFLists

private javax.swing.JCheckBox visConBetweenFLists

visShowNames

private javax.swing.JCheckBox visShowNames

visFirstLevelCon

private javax.swing.JCheckBox visFirstLevelCon

resetVis

private boolean resetVis

visPanelIndex

private int visPanelIndex

alMenu

private java.awt.event.ActionListener alMenu

alSuggSelBtns

private java.awt.event.ActionListener alSuggSelBtns

alVisBtns

private java.awt.event.ActionListener alVisBtns
Constructor Detail

Gui

public Gui()
initializes the GUI

Method Detail

main

public static void main(java.lang.String[] args)
starts the application

Parameters:
args - not used

installWindowListener

private void installWindowListener()
installs listener for handling window closing


initWindow

private void initWindow()
initializes window title, size, position & windows listener


initMenu

private void initMenu()
initializes the MenuBar and adds it to the NORTH of the content


handleMenuActions

private void handleMenuActions(java.awt.event.ActionEvent e)
handles all actions caused by clicking on MenuItems

Parameters:
e - the ActionEvent from the MenuItem

exit

private void exit()
closes the app


initTabs

private void initTabs()
adds the three contents (vis, sugg, stats) to the TabbedPane and adds the TabbedPane to the content (CENTER)
make sure the content containers are filled with their data before running this


initVisualization

private void initVisualization()
inits the vis component


initStatistics

private void initStatistics()
inits the stats component


initSuggestions

private void initSuggestions()
inits the sugg component


initStatus

private void initStatus()
inits the status components(label & progressbar) and adds them to the content (SOUTH)


setStatusText

public void setStatusText(java.lang.String msg)
sets the status label (lower left) to the given message

Parameters:
msg - the text to display @ the status position

setProgessMax

public void setProgessMax(int max)
sets the maximum value (100%) of the progressbar to the given value and resets the progressbar

Parameters:
max - the maximum value

setCurrentProgress

public void setCurrentProgress(int cur)
sets the current progress of the progressbar to the given value

Parameters:
cur - current progress

increaseCurrentProgress

public void increaseCurrentProgress(int incremental)
adds the incremental to the current progress

Parameters:
incremental - the value to add

setStatText

public void setStatText(java.lang.String filename)
displayes the specified file in the statistics text windows

Parameters:
filename - a txt or htm(l) file

handleStatSelection

private void handleStatSelection(javax.swing.event.TreeSelectionEvent e)
handles the actions caused by clicking on elements in the stat selection tree

Parameters:
e -

setSelectedBands

public void setSelectedBands(java.lang.Object[] o)
sets the selected bands list to the spezified array

Parameters:
o - the band list

addToSelectedBands

public void addToSelectedBands(java.lang.Object[] o)
adds the object array to the current band list

Parameters:
o - the new bands

handleSuggestionActions

private void handleSuggestionActions(java.awt.event.ActionEvent e)
handles the actions caused by the buttons in the suggestion submenu

Parameters:
e -

setSuggestionOutput

public void setSuggestionOutput(java.lang.String output)
sets the spezified string a suggestion output

Parameters:
output - the string to show

setSuggestionOutput

public void setSuggestionOutput(java.net.URL output)
sets the spezified URL a suggestion output

Parameters:
output - the URL of the file to use as output

setGraph

public void setGraph(java.awt.Component graph)
add the graph to the guis output ;)

Parameters:
graph - the graph

handleLinkClick

private void handleLinkClick(javax.swing.event.HyperlinkEvent e)
handles clicking on links in the suggestion output

Parameters:
e - the event thrown by clicking

handleVisButtons

private void handleVisButtons(java.awt.event.ActionEvent e)
handles the actions caused by clicking on buttons in the vis controls

Parameters:
e - the action event thrown by any of the buttons

setBandInfo

public void setBandInfo(java.lang.String bandinfo)
sets the band info window content to the spezified string

Parameters:
bandinfo - the bandinfo to set

setSelectedVisBand

public void setSelectedVisBand(DTO_Band band)
sets the input band for the visualization to the spezified band

Parameters:
band - the band to use for visualization

startup

private void startup()
loads the splash screen and waits until initialization is finished