sources
Class NetworkFrame

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended bysources.NetworkFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.datatransfer.ClipboardOwner, java.awt.dnd.DropTargetListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, java.awt.datatransfer.Transferable, javax.swing.WindowConstants

public class NetworkFrame
extends javax.swing.JFrame
implements java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner, java.awt.dnd.DropTargetListener

The main Application class. It is responsible for most of the dialogs and creates Menu and Toolbars

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
protected  int actualD
          the id of the actual DataSet
protected  LDataSet actualDataSet
          the actual DataSet
 javax.swing.JDesktopPane actualPane
          thze actual Desktop
protected  java.awt.Color bgrColor
          Background Color
protected  java.awt.datatransfer.Clipboard clip
           
protected  LDataSet[] dataSet
          all 4 possible DataSets
 java.lang.String dsDir
          Dataset Directory
protected  java.awt.Color foreColor
          Foreground Color
protected  java.lang.String homeDir
          Home Dirctory
protected  java.awt.Color mapColor
          Map Color
protected  java.util.Properties prop
          the properties file
protected  java.awt.Color selColor
          Selection Color
 
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
NetworkFrame()
          Creates new form NetworkFrame
NetworkFrame(java.lang.String fileName)
           
 
Method Summary
 void arrange()
          arranges all open windows
 void barChart()
          create a Barchart
 void boxplot()
          create a Boxplot or Dotplot
 void cascade()
          Cascades all open windows
 void close()
          Close the actual DataSet
 void closeAll()
          closes all open windows
 void copy()
           
 void createPC()
           
 void createSymDia()
           
 void delete()
           
 void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
           
 void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
           
 void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
           
 void drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
           
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
           
 void easeAlgos(double eps, int nth, int art)
           
 void endProgress()
           
 void fastupdima(java.lang.String name)
           
 void fastupdmap(java.lang.String name)
           
 void flowOption()
          open a FlowOption Frame
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor dataFlavor)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 void goFirst()
          reset the salections
 void goLast()
          move to the last performed selection
 void group()
           
 void histogram()
          create a histogram
 void importImage()
           
 void importImageWithoutDialog(java.lang.String name)
           
 void importMap()
           
 void importMapWithoutDialog(java.lang.String name)
           
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor dataFlavor)
           
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable transferable)
           
static void main(java.lang.String[] args)
          Main Function
 void makeNAlgo()
           
 void map()
           
 void mosaic()
          create a Mosaicplot
 void op(java.lang.String name)
           
 void open()
          Open a new DataSet
 void openVarFrames()
          opens the VarFrames
 void openWithoutDialog(java.lang.String name)
           
 void openWithoutThread(java.lang.String name)
           
 void options()
          shows options
 void print()
          Prints the currently selected JInternalFrame
 void quit()
          quit the program
 void redo()
          redo the last action
protected  void registerListeners()
           
 javax.swing.JComboBox retCombo()
           
 void save()
          Save a frame as jpg
 void scatterplot()
          create a Scatterplot
 void setFore(int j)
          sets the Buttons for switching between different Desktops
 void setLAF(java.lang.String c)
           
 void setProps(java.awt.Color fore, java.awt.Color bgr, java.awt.Color sel, java.awt.Color map, java.lang.String home, java.lang.String ds, java.lang.String lan, java.lang.String laf)
          set the Properties
 void setThingsEnabled()
           
 void setToggle()
           
 void setUndoable()
           
 void showProperties()
          Show the PropertyFrame
 void sort(boolean up)
          sorts
 void startProgress()
           
 void startProgress(java.lang.String string)
           
 void switchto1()
          Switch to Desktop 1
 void switchto2()
          Switch to Desktop 2
 void switchto3()
          Switch to Desktop 3
 void switchto4()
          Switch to Desktop 4
 void undo()
          undo the last action
protected  void unregisterListeners()
           
 void updatefast()
           
 void updLabels()
           
 void zoomIn()
           
 void zoomOut()
           
 
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, 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

actualDataSet

protected LDataSet actualDataSet
the actual DataSet


actualPane

public javax.swing.JDesktopPane actualPane
thze actual Desktop


dataSet

protected LDataSet[] dataSet
all 4 possible DataSets


actualD

protected int actualD
the id of the actual DataSet


prop

protected java.util.Properties prop
the properties file


foreColor

protected java.awt.Color foreColor
Foreground Color


bgrColor

protected java.awt.Color bgrColor
Background Color


selColor

protected java.awt.Color selColor
Selection Color


mapColor

protected java.awt.Color mapColor
Map Color


homeDir

protected java.lang.String homeDir
Home Dirctory


dsDir

public java.lang.String dsDir
Dataset Directory


clip

protected java.awt.datatransfer.Clipboard clip
Constructor Detail

NetworkFrame

public NetworkFrame()
Creates new form NetworkFrame


NetworkFrame

public NetworkFrame(java.lang.String fileName)
Method Detail

delete

public void delete()

group

public void group()

switchto1

public void switchto1()
Switch to Desktop 1


switchto2

public void switchto2()
Switch to Desktop 2


switchto3

public void switchto3()
Switch to Desktop 3


switchto4

public void switchto4()
Switch to Desktop 4


cascade

public void cascade()
Cascades all open windows


arrange

public void arrange()
arranges all open windows


closeAll

public void closeAll()
closes all open windows


showProperties

public void showProperties()
Show the PropertyFrame


sort

public void sort(boolean up)
sorts

Parameters:
up - true, if upwards sorting

openVarFrames

public void openVarFrames()
opens the VarFrames


undo

public void undo()
undo the last action


redo

public void redo()
redo the last action


goFirst

public void goFirst()
reset the salections


goLast

public void goLast()
move to the last performed selection


setFore

public void setFore(int j)
sets the Buttons for switching between different Desktops

Parameters:
j - the index of the actual Desktop

close

public void close()
Close the actual DataSet


open

public void open()
Open a new DataSet


openWithoutDialog

public void openWithoutDialog(java.lang.String name)

importImageWithoutDialog

public void importImageWithoutDialog(java.lang.String name)

importMapWithoutDialog

public void importMapWithoutDialog(java.lang.String name)

openWithoutThread

public void openWithoutThread(java.lang.String name)

startProgress

public void startProgress()

startProgress

public void startProgress(java.lang.String string)

endProgress

public void endProgress()

op

public void op(java.lang.String name)

save

public void save()
Save a frame as jpg


print

public void print()
Prints the currently selected JInternalFrame


quit

public void quit()
quit the program


flowOption

public void flowOption()
open a FlowOption Frame


barChart

public void barChart()
create a Barchart


createSymDia

public void createSymDia()

createPC

public void createPC()

histogram

public void histogram()
create a histogram


mosaic

public void mosaic()
create a Mosaicplot


scatterplot

public void scatterplot()
create a Scatterplot


importMap

public void importMap()

fastupdmap

public void fastupdmap(java.lang.String name)

importImage

public void importImage()

fastupdima

public void fastupdima(java.lang.String name)

map

public void map()

boxplot

public void boxplot()
create a Boxplot or Dotplot


options

public void options()
shows options


setProps

public void setProps(java.awt.Color fore,
                     java.awt.Color bgr,
                     java.awt.Color sel,
                     java.awt.Color map,
                     java.lang.String home,
                     java.lang.String ds,
                     java.lang.String lan,
                     java.lang.String laf)
set the Properties

Parameters:
fore - Foreground Color
bgr - Background Color
sel - Selection Color
map - Map Color
home - Home Directory
ds - Dataset Directory

copy

public void copy()

main

public static void main(java.lang.String[] args)
Main Function

Parameters:
args - the command line arguments

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor dataFlavor)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable transferable)
Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor dataFlavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

zoomIn

public void zoomIn()

zoomOut

public void zoomOut()

makeNAlgo

public void makeNAlgo()

setThingsEnabled

public void setThingsEnabled()

setUndoable

public void setUndoable()

setToggle

public void setToggle()

setLAF

public void setLAF(java.lang.String c)

retCombo

public javax.swing.JComboBox retCombo()

easeAlgos

public void easeAlgos(double eps,
                      int nth,
                      int art)

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

registerListeners

protected void registerListeners()

drop

public void drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
Specified by:
drop in interface java.awt.dnd.DropTargetListener

updatefast

public void updatefast()

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener

unregisterListeners

protected void unregisterListeners()

updLabels

public void updLabels()