sources
Class LDataSet

java.lang.Object
  extended bysources.LDataSet

public class LDataSet
extends java.lang.Object

Class to represent a dataset. This class is responsible for opening most of the graphical displays, goupes the variables and contain all further information about the dataset.


Field Summary
 java.awt.Cursor actualCursor
           
 java.awt.Cursor anchorCursor
           
 java.awt.Color bgrColor
          Background Color
 java.awt.Cursor binwidthCursor
           
 javax.swing.JDesktopPane dkp
           
 Variable dragvar
           
 java.lang.String dsDir
          Dataset Directory
 java.awt.Color foreColor
          Foreground Color
 java.lang.String homeDir
          Home Directory
 boolean isDSFrameVisible
           
 boolean isImageFrameVisible
           
 boolean isMapFrameVisible
           
 boolean isOverviewVisible
           
 GeoMap[] map
           
 java.awt.Color mapColor
          Map Color
 MapImage[] mapi
           
 MaFrame mf
           
 MapImageFrame mif
           
 java.awt.Cursor queryCursor
           
 java.awt.Color selColor
          Selection Color
 java.awt.Cursor selCursor
           
 int selectionState
          SelectionState
 java.awt.Cursor zoomInCursor
           
 java.awt.Cursor zoomOutCursor
           
 
Constructor Summary
LDataSet()
          Creates new LDataSet.
LDataSet(Variable[] variables, java.lang.String name, javax.swing.JDesktopPane pane, NetworkFrame parent)
          Creates a new LDataSet
 
Method Summary
 void addVariable(Variable vari)
           
 void closeDSFrame()
           
 void closeImageFrame()
           
 void closeMapFrame()
           
 void closeOverview()
           
 void cMap(java.lang.String name, CategorialVariable[] vars)
           
 DataSetFrame createDataSetFrame()
          Creates a DataSetFrame
static LDataSet createDataSetfromFile(java.lang.String name, javax.swing.JDesktopPane pane, NetworkFrame parent)
          Create a LDataSet from a File
 void createFlowFrame(ContinuousVariable vx1, ContinuousVariable vy1, ContinuousVariable vx2, ContinuousVariable vy2, CategorialVariable cat1, CategorialVariable cat2)
          Create a FlowFrame
 void createMap(java.lang.String name, CategorialVariable[] vars)
           
 void delete()
           
 void flowOption()
          Open a FlowOptionFrame
 int getAnzCases()
          returns the number of cases
 int getAnzVars()
          Returns the # variables
static void getContOrdVarNames(LDataSet dat, javax.swing.JComboBox box)
           
 javax.swing.JDesktopPane getDesktop()
          Retruns the JDesktopPane of this LDataSet
 JPEGSaver getJPEGSaver()
          Returns the JPEGSaver of this LDataSet
 java.lang.String getName()
          Returns the name of this LDataSet
 boolean[] getOpenVarFrames()
          Returns all currently open VarFrames
 Overviewer getOverview()
           
 int getSelContVar()
           
 boolean[] getSelectedVars()
          returns all selected Variables
 Selectioner getSelectioner()
          Returns the Selectioner of this LDataSet
 java.lang.String getShortName()
          Returns the short name of this LDataSet
 Variable getVar(int i)
          Returns the ith Variable
 java.lang.String[] getVarNames()
          Returns all variable names
 int getVarType(int i)
          returns the type of the variable
 void group()
           
 void iImage(java.lang.String name)
           
 void importImage(javax.swing.JFrame par)
           
 void importImageWithoutDialog(java.lang.String imagename)
           
 void importMap(javax.swing.JFrame par)
           
 void importMapWithoutDialog(java.lang.String mapname, javax.swing.JFrame par)
           
static void main(java.lang.String[] args)
          main-test function
 void makeNonContinuousCartogram()
           
 void makeNPointMapAlgorithm(double eps, int n, int art)
           
 void openDSFrame()
           
 void openImageFrame()
           
 void openMapFrame()
           
 void openOverview()
           
 void print()
          print the currently selected window
 void removeVariable(int index)
           
 void save(javax.swing.JFrame parent)
          save the currently selected window
 void selectAll()
           
 void setactualCursor(int i)
           
static void setContOrdNames(LDataSet dat, int sel)
           
 void setOver()
           
 void setProperties(java.awt.Color fore, java.awt.Color bgr, java.awt.Color sel, java.awt.Color map, java.lang.String home, java.lang.String ds)
          Sets the Properties for this LDataSet
 void setSelContVar(int c)
           
 void setSelectionState(int i)
           
 void showBarcharts()
           
 void showDotPlots()
           
 void showHistograms()
           
 void showmaps()
           
 void showMosaic()
           
 void showPC()
           
 void showScatterPlot()
           
 void showSymDiagrams()
           
 void sort(boolean up)
          Sorts all visible variables
 void varFramesopen()
          Open JInternalFrames for all selected Variables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isDSFrameVisible

public boolean isDSFrameVisible

isOverviewVisible

public boolean isOverviewVisible

isImageFrameVisible

public boolean isImageFrameVisible

isMapFrameVisible

public boolean isMapFrameVisible

dkp

public javax.swing.JDesktopPane dkp

mf

public MaFrame mf

map

public GeoMap[] map

mif

public MapImageFrame mif

mapi

public MapImage[] mapi

foreColor

public java.awt.Color foreColor
Foreground Color


bgrColor

public java.awt.Color bgrColor
Background Color


selColor

public java.awt.Color selColor
Selection Color


mapColor

public java.awt.Color mapColor
Map Color


homeDir

public java.lang.String homeDir
Home Directory


dsDir

public java.lang.String dsDir
Dataset Directory


selectionState

public int selectionState
SelectionState


zoomInCursor

public java.awt.Cursor zoomInCursor

zoomOutCursor

public java.awt.Cursor zoomOutCursor

selCursor

public java.awt.Cursor selCursor

queryCursor

public java.awt.Cursor queryCursor

actualCursor

public java.awt.Cursor actualCursor

anchorCursor

public java.awt.Cursor anchorCursor

binwidthCursor

public java.awt.Cursor binwidthCursor

dragvar

public Variable dragvar
Constructor Detail

LDataSet

public LDataSet()
Creates new LDataSet. Use createDatSetfromFile instead!


LDataSet

public LDataSet(Variable[] variables,
                java.lang.String name,
                javax.swing.JDesktopPane pane,
                NetworkFrame parent)
Creates a new LDataSet

Parameters:
variables - A list of variables
name - the name of the dataset
pane - the JDesktopPane of this LDataSet
Method Detail

setProperties

public void setProperties(java.awt.Color fore,
                          java.awt.Color bgr,
                          java.awt.Color sel,
                          java.awt.Color map,
                          java.lang.String home,
                          java.lang.String ds)
Sets the Properties for this LDataSet

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

print

public void print()
print the currently selected window


save

public void save(javax.swing.JFrame parent)
save the currently selected window

Parameters:
parent - the parental JFrame of this LDataSet

getOpenVarFrames

public boolean[] getOpenVarFrames()
Returns all currently open VarFrames

Returns:
all open VarFrames, true: open

getAnzVars

public int getAnzVars()
Returns the # variables

Returns:
the count of variables

getAnzCases

public int getAnzCases()
returns the number of cases

Returns:
the number of cases

getJPEGSaver

public JPEGSaver getJPEGSaver()
Returns the JPEGSaver of this LDataSet

Returns:
the LDataSet of this LDataSet

getName

public java.lang.String getName()
Returns the name of this LDataSet

Returns:
the name of the LDataSet

getShortName

public java.lang.String getShortName()
Returns the short name of this LDataSet

Returns:
the short name of the LDataSet

getSelectioner

public Selectioner getSelectioner()
Returns the Selectioner of this LDataSet

Returns:
the Selectioner of this LDataSet

getDesktop

public javax.swing.JDesktopPane getDesktop()
Retruns the JDesktopPane of this LDataSet

Returns:
the Selectioner

getVarNames

public java.lang.String[] getVarNames()
Returns all variable names

Returns:
the names of the variables

getVarType

public int getVarType(int i)
returns the type of the variable

Parameters:
i - the variable to get the type
Returns:
0: CategorialVariable 1: OrdinalVariable 2: ContinuousVariable

getVar

public Variable getVar(int i)
Returns the ith Variable

Parameters:
i - the Variable number
Returns:
the Variable

varFramesopen

public void varFramesopen()
Open JInternalFrames for all selected Variables


flowOption

public void flowOption()
Open a FlowOptionFrame


createFlowFrame

public void createFlowFrame(ContinuousVariable vx1,
                            ContinuousVariable vy1,
                            ContinuousVariable vx2,
                            ContinuousVariable vy2,
                            CategorialVariable cat1,
                            CategorialVariable cat2)
Create a FlowFrame

Parameters:
vx1 - X-Coordinates of sources
vy1 - Y-Coordinates of sources
vx2 - X-Coordinates of targets
vy2 - Y-Coordinates of targets

getSelectedVars

public boolean[] getSelectedVars()
returns all selected Variables

Returns:
true, if ith variable is selected

createDataSetFrame

public DataSetFrame createDataSetFrame()
Creates a DataSetFrame

Returns:
the DataSetFrame for this LDataSet

showBarcharts

public void showBarcharts()

showMosaic

public void showMosaic()

showDotPlots

public void showDotPlots()

showmaps

public void showmaps()

showScatterPlot

public void showScatterPlot()

showHistograms

public void showHistograms()

showSymDiagrams

public void showSymDiagrams()

showPC

public void showPC()

sort

public void sort(boolean up)
Sorts all visible variables

Parameters:
up - true: upwards false: downwards

createDataSetfromFile

public static LDataSet createDataSetfromFile(java.lang.String name,
                                             javax.swing.JDesktopPane pane,
                                             NetworkFrame parent)
Create a LDataSet from a File

Parameters:
name - the filename of the data
pane - the JDesktopPane for this LDataSet
Returns:
the LDataSet built from the file

main

public static void main(java.lang.String[] args)
main-test function

Parameters:
args - args

setactualCursor

public void setactualCursor(int i)

setSelectionState

public void setSelectionState(int i)

importMap

public void importMap(javax.swing.JFrame par)

importMapWithoutDialog

public void importMapWithoutDialog(java.lang.String mapname,
                                   javax.swing.JFrame par)

importImage

public void importImage(javax.swing.JFrame par)

importImageWithoutDialog

public void importImageWithoutDialog(java.lang.String imagename)

iImage

public void iImage(java.lang.String name)

createMap

public void createMap(java.lang.String name,
                      CategorialVariable[] vars)

cMap

public void cMap(java.lang.String name,
                 CategorialVariable[] vars)

addVariable

public void addVariable(Variable vari)

removeVariable

public void removeVariable(int index)

delete

public void delete()

group

public void group()

selectAll

public void selectAll()

makeNPointMapAlgorithm

public void makeNPointMapAlgorithm(double eps,
                                   int n,
                                   int art)

makeNonContinuousCartogram

public void makeNonContinuousCartogram()

getOverview

public Overviewer getOverview()

setOver

public void setOver()

setSelContVar

public void setSelContVar(int c)

getSelContVar

public int getSelContVar()

getContOrdVarNames

public static void getContOrdVarNames(LDataSet dat,
                                      javax.swing.JComboBox box)

setContOrdNames

public static void setContOrdNames(LDataSet dat,
                                   int sel)

closeDSFrame

public void closeDSFrame()

openDSFrame

public void openDSFrame()

openOverview

public void openOverview()

closeOverview

public void closeOverview()

closeImageFrame

public void closeImageFrame()

openImageFrame

public void openImageFrame()

closeMapFrame

public void closeMapFrame()

openMapFrame

public void openMapFrame()