infomat.view
Class InfomatModel

java.lang.Object
  extended by java.util.Observable
      extended by infomat.view.InfomatModel
All Implemented Interfaces:
HasProperties

public class InfomatModel
extends java.util.Observable
implements HasProperties

The heart! Keeps track of what the IMatrix and other stuff.


Field Summary
private  AlgorithmFrame algorithmFrame
           
private static java.lang.String defaultSettingsFile
           
private  DescriptionFrame descriptionFrame
           
private  EvaluationFrame evaluationFrame
           
private  ExportTextFrame exportTextFrame
           
private  GUIIMatrix guimatrix
           
private  MainWindow mainWindow
           
private  MatrixFilterFrame matrixFilterFrame
           
private  MatrixSummaryFrame matrixSummaryFrame
           
private  MatrixWeightingFrame matrixWeightingFrame
           
private  MousePointerInfoPanel mousePointerInfoPanel
           
private  PixelFrame pixelFrame
           
private  ProgressFrame progressFrame
           
private  Properties properties
           
private  InfomatPropertiesFrame propertiesFrame
           
private  ReductionFrame reductionFrame
           
private  SearchFrame searchFrame
           
private  SelectorFrame selectorFrame
           
private  java.lang.String settingsFile
           
private  SimilarityFrame similarityFrame
           
private  SorterFrame sorterFrame
           
private  StoplistFrame stoplistFrame
           
private  InfomatView view
           
 
Constructor Summary
InfomatModel(MainWindow mainWindow)
           
 
Method Summary
 void alteredProperties()
           
 void cluster()
           
 void description()
           
 void evaluation()
           
 void exportText()
           
 void filterMatrix()
           
 IObjectGrouping getCurrentGrouping(boolean row)
           
 Properties getDefaultProperties()
           
 Properties getFallbackProperties()
           
 GUIIMatrix getGUIIMatrix()
           
 IMatrix getIMatrix()
           
 ISimilarity getISimilarity(boolean row)
           
 MainWindow getMainWindow()
           
 MousePointerInfoPanel getMousePointerInfoPanel()
           
 PixelFrame getPixelFrame()
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
 SelectorFrame getSelectorFrame()
           
 SimilarityManager getSimilarityManager()
           
 boolean hasIMatrix()
          Do we have a matrix?
 void invertMatrix()
           
 void matrixSummary()
           
 void openDirectoryTextWord(java.io.File dir)
           
 void openDirectoryWordWord(java.io.File dir)
           
 void openIMatrixFile(java.io.File file)
           
 IObjectGrouping openIObjectGroupingFile(boolean row, java.io.File file)
           
 void openTokenFileForTextWord(java.io.File file)
          Opens a Token File to read Texts and Words.
 void purgeMatrix()
           
 void reduction()
           
 void removeColumns(int colFrom, int colTo)
           
 void removeRows(int rowFrom, int rowTo)
           
 void resetImage()
          Reset settings about zoom and position in the image.
 void resetIMatrix()
          Resets the matrix, i.e.
 void resize()
           
 void resortIMatrix()
           
 void saveIMatrixFile(java.io.File file)
           
 void saveIMatrixPicture(java.io.File file)
           
 void saveIObjectGroupingFile(IObjectGrouping grouping, java.io.File file)
           
 void search()
           
 void setChanged()
           
protected  void setMousePointerInfoPanel(MousePointerInfoPanel mousePointerInfoPanel)
           
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setView(InfomatView view)
          Set the view.
 void showProperties()
           
 void sorter()
           
 void stoplist()
           
 void toggleGuide()
           
 void togglePixelFrame()
           
 void toggleSelectorFrame()
           
 void toggleSimilarityFrame()
           
 void update()
           
 void weightMatrix()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

guimatrix

private GUIIMatrix guimatrix

mainWindow

private MainWindow mainWindow

view

private InfomatView view

mousePointerInfoPanel

private MousePointerInfoPanel mousePointerInfoPanel

properties

private Properties properties

defaultSettingsFile

private static java.lang.String defaultSettingsFile

settingsFile

private java.lang.String settingsFile

progressFrame

private ProgressFrame progressFrame

matrixFilterFrame

private MatrixFilterFrame matrixFilterFrame

matrixWeightingFrame

private MatrixWeightingFrame matrixWeightingFrame

reductionFrame

private ReductionFrame reductionFrame

descriptionFrame

private DescriptionFrame descriptionFrame

evaluationFrame

private EvaluationFrame evaluationFrame

sorterFrame

private SorterFrame sorterFrame

algorithmFrame

private AlgorithmFrame algorithmFrame

matrixSummaryFrame

private MatrixSummaryFrame matrixSummaryFrame

exportTextFrame

private ExportTextFrame exportTextFrame

stoplistFrame

private StoplistFrame stoplistFrame

searchFrame

private SearchFrame searchFrame

propertiesFrame

private InfomatPropertiesFrame propertiesFrame

pixelFrame

private PixelFrame pixelFrame

similarityFrame

private SimilarityFrame similarityFrame

selectorFrame

private SelectorFrame selectorFrame
Constructor Detail

InfomatModel

public InfomatModel(MainWindow mainWindow)
Method Detail

getDefaultProperties

public Properties getDefaultProperties()
Specified by:
getDefaultProperties in interface HasProperties

getFallbackProperties

public Properties getFallbackProperties()

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String name)
Specified by:
getPropertyValue in interface HasProperties

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws PropertyNotFoundException
Specified by:
setProperty in interface HasProperties
Throws:
PropertyNotFoundException

getProperties

public Properties getProperties()
Specified by:
getProperties in interface HasProperties

setProperties

public void setProperties(Properties properties)
Specified by:
setProperties in interface HasProperties

setChanged

public void setChanged()
Overrides:
setChanged in class java.util.Observable

hasIMatrix

public boolean hasIMatrix()
Do we have a matrix?

Returns:
true if we have a matrix

getIMatrix

public IMatrix getIMatrix()
Returns:
the current matrix object

getGUIIMatrix

public GUIIMatrix getGUIIMatrix()
Returns:
the current GUIIMatrix object, which keeps track of the IMatrix and the groupings of rows and columns

resetIMatrix

public void resetIMatrix()
Resets the matrix, i.e. sets it to null; no matrix.


getMainWindow

public MainWindow getMainWindow()

getISimilarity

public ISimilarity getISimilarity(boolean row)

getSimilarityManager

public SimilarityManager getSimilarityManager()

getCurrentGrouping

public IObjectGrouping getCurrentGrouping(boolean row)

setMousePointerInfoPanel

protected void setMousePointerInfoPanel(MousePointerInfoPanel mousePointerInfoPanel)

getMousePointerInfoPanel

public MousePointerInfoPanel getMousePointerInfoPanel()

setView

public void setView(InfomatView view)
Set the view. Must me done!!

Parameters:
view - The view.

update

public void update()

resize

public void resize()

openTokenFileForTextWord

public void openTokenFileForTextWord(java.io.File file)
Opens a Token File to read Texts and Words.


removeColumns

public void removeColumns(int colFrom,
                          int colTo)

removeRows

public void removeRows(int rowFrom,
                       int rowTo)

resortIMatrix

public void resortIMatrix()

resetImage

public void resetImage()
Reset settings about zoom and position in the image.


saveIMatrixPicture

public void saveIMatrixPicture(java.io.File file)

saveIMatrixFile

public void saveIMatrixFile(java.io.File file)

saveIObjectGroupingFile

public void saveIObjectGroupingFile(IObjectGrouping grouping,
                                    java.io.File file)

openDirectoryTextWord

public void openDirectoryTextWord(java.io.File dir)

openDirectoryWordWord

public void openDirectoryWordWord(java.io.File dir)

openIMatrixFile

public void openIMatrixFile(java.io.File file)

openIObjectGroupingFile

public IObjectGrouping openIObjectGroupingFile(boolean row,
                                               java.io.File file)

purgeMatrix

public void purgeMatrix()

filterMatrix

public void filterMatrix()

weightMatrix

public void weightMatrix()

reduction

public void reduction()

description

public void description()

invertMatrix

public void invertMatrix()

evaluation

public void evaluation()

sorter

public void sorter()

cluster

public void cluster()

matrixSummary

public void matrixSummary()

exportText

public void exportText()

stoplist

public void stoplist()

search

public void search()

showProperties

public void showProperties()

alteredProperties

public void alteredProperties()

toggleGuide

public void toggleGuide()

togglePixelFrame

public void togglePixelFrame()

getPixelFrame

public PixelFrame getPixelFrame()

toggleSimilarityFrame

public void toggleSimilarityFrame()

toggleSelectorFrame

public void toggleSelectorFrame()

getSelectorFrame

public SelectorFrame getSelectorFrame()