databionics.esom.tool.data
Class DataTool

java.lang.Object
  extended by databionics.esom.tool.AbstractTool
      extended by databionics.esom.tool.data.DataTool
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener

public class DataTool
extends AbstractTool
implements java.awt.event.ItemListener

Author:
Mario Noecker

Field Summary
protected  javax.swing.JButton btnColor
           
protected  javax.swing.JButton btnRobZTrans
           
protected  javax.swing.JButton btnZeroOne
           
protected  javax.swing.JButton btnZTrans
           
protected  cern.colt.list.IntArrayList highlightedBms
          list with bms, which have to be highlighted
protected  javax.swing.JLabel lblRemoveCol
           
protected  javax.swing.JLabel lblSaveAs
           
protected static org.apache.log4j.Logger log
          interface to log4j system
protected  boolean manual
          flag for new names
protected  cern.colt.list.IntArrayList manualKeys
          manuel keys
protected  java.util.ArrayList manualNames
          manuel names
protected  NamesFile manualNamesFile
          manuel NamesFile
protected  BMFile partBm
           
protected  ClsFile partCls
           
protected  LrnFile partLrn
           
protected  javax.swing.JMenuItem saveItmLrn
           
protected  boolean selected
          flag for looking if selection active
protected  SelectedDataTableModel selectedDataTableModel
          model with selected data
 
Fields inherited from class databionics.esom.tool.AbstractTool
application, bottomBar, bottomTab, btnClear, btnLoad, btnPaint, btnSave, clearItm, clickMode, controlButton, creatorPanel, dataTable, displayPanel, dragMode, drawing, fileMenu, filename, gui, loader, loadItm, moveCallback, pnlControl, polygonMode, popMenu, removeItm, renderer, renderPanel, saveItm, toolBar, toolRenderer
 
Constructor Summary
DataTool(boolean gui, Application application)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          controls the popUp-Menues
 void deleteOutliers(int[] idxs)
          delete the selected points
 void deleteOutliers(cern.colt.list.IntArrayList idxs)
          delete the selected points
 void fillNames()
          fill empty names
 javax.swing.table.AbstractTableModel getDataTableModel()
           
 cern.colt.list.IntArrayList getHighlightedBms()
           
 LrnFile getLrnFile()
           
 cern.colt.list.IntArrayList getManualKeys()
           
 java.util.ArrayList getManualNames()
           
 NamesFile getManualNamesFile()
           
 ClsFile getPartCls()
           
 LrnFile getPartLrn()
           
 javax.swing.JPopupMenu getPopup()
           
 SelectedDataTableModel getSelectedDataTableModel()
           
 java.lang.String getShortTitle()
           
protected  void highlight()
          highlights every bm of selected row in data Table
protected  void highlightPoint(cern.colt.list.IntArrayList idxs)
          highlights the selected point on the map
 void init()
          Initialize what needs to be Initialized.
 boolean isManual()
           
 boolean isSelected()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 boolean load(java.lang.String filename)
           
 void reset()
          reset the tool.
 boolean save(java.lang.String filename)
           
 void saveBMs(java.lang.String filename)
           
 void saveCls(java.lang.String filename)
           
 void saveLrn(java.lang.String filename)
           
 void selection(cern.colt.list.IntArrayList idxs)
          selects the rows which bms are selected
 void setData(java.lang.Object object)
           
 void setHighlightedBms(cern.colt.list.IntArrayList highlightedBms)
           
 void setManual(boolean manual)
           
 void setManualKeys(cern.colt.list.IntArrayList manualKeys)
           
 void setManualNames(java.util.ArrayList manualNames)
           
 void setManualNamesFile(NamesFile manualNamesFile)
           
 void setPartCls(ClsFile partCls)
           
 void setPartLrn(LrnFile partLrn)
           
 void setSelected(boolean selected)
           
 void update()
          update the table and set the DataTab active
 void updatePopMenu()
           
 
Methods inherited from class databionics.esom.tool.AbstractTool
callback, getApplication, getBottomTab, getCallback, getControlButton, getCreatorPanel, getDataTable, getDisplayPanel, getFileMenu, getFilename, getLoader, getMessage, getMoveCallback, getPnlControl, getPopMenu, getRenderer, getToolBar, getToolRenderer, initGui, isClickMode, isDragMode, isDrawing, isGui, isPolygonMode, moveSelection, reAreas, reColorize, reDraw, reFore, reMask, rePostFore, rePreFore, reRender, reTile, reZoom, select, setApplication, setBottomTab, setCallback, setClickMode, setControlButton, setCreatorPanel, setCtrlAccelerator, setDataTable, setDataTableModel, setDisplayPanel, setDragMode, setDrawing, setFilename, setLoader, setMoveCallback, setPolygonMode, setRenderer, setToolBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
interface to log4j system


selectedDataTableModel

protected SelectedDataTableModel selectedDataTableModel
model with selected data


highlightedBms

protected cern.colt.list.IntArrayList highlightedBms
list with bms, which have to be highlighted


partLrn

protected LrnFile partLrn

partCls

protected ClsFile partCls

partBm

protected BMFile partBm

selected

protected boolean selected
flag for looking if selection active


saveItmLrn

protected javax.swing.JMenuItem saveItmLrn

btnZTrans

protected javax.swing.JButton btnZTrans

btnRobZTrans

protected javax.swing.JButton btnRobZTrans

btnZeroOne

protected javax.swing.JButton btnZeroOne

lblRemoveCol

protected javax.swing.JLabel lblRemoveCol

btnColor

protected javax.swing.JButton btnColor

lblSaveAs

protected javax.swing.JLabel lblSaveAs

manualNames

protected java.util.ArrayList manualNames
manuel names


manualKeys

protected cern.colt.list.IntArrayList manualKeys
manuel keys


manualNamesFile

protected NamesFile manualNamesFile
manuel NamesFile


manual

protected boolean manual
flag for new names

Constructor Detail

DataTool

public DataTool(boolean gui,
                Application application)
Parameters:
gui -
Method Detail

init

public void init()
Description copied from class: AbstractTool
Initialize what needs to be Initialized.

Specified by:
init in class AbstractTool

reset

public void reset()
Description copied from class: AbstractTool
reset the tool.

Specified by:
reset in class AbstractTool

update

public void update()
update the table and set the DataTab active

Overrides:
update in class AbstractTool

highlight

protected void highlight()
highlights every bm of selected row in data Table


highlightPoint

protected void highlightPoint(cern.colt.list.IntArrayList idxs)
highlights the selected point on the map

Parameters:
idxs - selected points

selection

public void selection(cern.colt.list.IntArrayList idxs)
selects the rows which bms are selected

Parameters:
idxs - IntArrayList with indexes of bms

deleteOutliers

public void deleteOutliers(int[] idxs)
delete the selected points

Parameters:
idxs - int[] with selected indexes

deleteOutliers

public void deleteOutliers(cern.colt.list.IntArrayList idxs)
delete the selected points

Parameters:
idxs - IntArrayList with selected indexes

getDataTableModel

public javax.swing.table.AbstractTableModel getDataTableModel()
Overrides:
getDataTableModel in class AbstractTool
Returns:
Returns the dataTableModel.

load

public boolean load(java.lang.String filename)

save

public boolean save(java.lang.String filename)

setData

public void setData(java.lang.Object object)

isSelected

public boolean isSelected()
Returns:
Returns the all.

setSelected

public void setSelected(boolean selected)
Parameters:
all - The all to set.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
controls the popUp-Menues

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AbstractTool
Parameters:
e - an ActionEvent

saveLrn

public void saveLrn(java.lang.String filename)

getPopup

public javax.swing.JPopupMenu getPopup()

getPartLrn

public LrnFile getPartLrn()
Returns:
Returns the partLrn.

setPartLrn

public void setPartLrn(LrnFile partLrn)
Parameters:
partLrn - The partLrn to set.

saveCls

public void saveCls(java.lang.String filename)

saveBMs

public void saveBMs(java.lang.String filename)

getPartCls

public ClsFile getPartCls()
Returns:
Returns the partCls.

setPartCls

public void setPartCls(ClsFile partCls)
Parameters:
partCls - The partCls to set.

getLrnFile

public LrnFile getLrnFile()

getManualNames

public java.util.ArrayList getManualNames()
Returns:
Returns the manualNames.

setManualNames

public void setManualNames(java.util.ArrayList manualNames)
Parameters:
manualNames - The manualNames to set.

getManualKeys

public cern.colt.list.IntArrayList getManualKeys()
Returns:
Returns the manualKeys.

setManualKeys

public void setManualKeys(cern.colt.list.IntArrayList manualKeys)
Parameters:
manualKeys - The manualKeys to set.

isManual

public boolean isManual()
Returns:
Returns the manual.

setManual

public void setManual(boolean manual)
Parameters:
manual - The manual to set.

fillNames

public void fillNames()
fill empty names


getHighlightedBms

public cern.colt.list.IntArrayList getHighlightedBms()
Returns:
Returns the highlightedBms.

setHighlightedBms

public void setHighlightedBms(cern.colt.list.IntArrayList highlightedBms)
Parameters:
highlightedBms - The highlightedBms to set.

getShortTitle

public java.lang.String getShortTitle()
Specified by:
getShortTitle in class AbstractTool

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

getManualNamesFile

public NamesFile getManualNamesFile()
Returns:
Returns the manualNamesFile.

setManualNamesFile

public void setManualNamesFile(NamesFile manualNamesFile)
Parameters:
manualNamesFile - The manualNamesFile to set.

getSelectedDataTableModel

public SelectedDataTableModel getSelectedDataTableModel()
Returns:
Returns the selectedDataTableModel.

updatePopMenu

public void updatePopMenu()


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.