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 corpus and other stuff contains.


Constructor Summary
InfomatModel(MainWindow mainWindow)
           
 
Method Summary
 IMatrix getIMatrix()
           
 MainWindow getMainWindow()
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
 boolean hasIMatrix()
          Do we have a matrix?
 void invertMatrix()
           
 void kmeans()
           
 void openCorpusFile(java.io.File file)
          Opens a Corpus File.
 void openDocumentGroupingFile(java.io.File file)
          Opens a Document Grouping File.
 void openIMatrixFile(java.io.File file)
           
 IObjectGrouping openIObjectGroupingFile(boolean row, java.io.File file)
           
 void purgeMatrix()
           
 void randomClustering()
           
 void relativeClustering()
           
 void removeColumns(int colFrom, int colTo)
           
 void removeRows(int rowFrom, int rowTo)
           
 void resetImage()
          Reset settings about zoom and position in the image.
 void resortIMatrix()
           
 void saveIMatrixFile(java.io.File file)
           
 void saveIMatrixPicture(java.io.File file)
           
 void saveIObjectGroupingFile(IObjectGrouping grouping, java.io.File file)
           
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setView(InfomatView view)
          Set the view.
 void update()
           
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfomatModel

public InfomatModel(MainWindow mainWindow)
Method Detail

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

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

getMainWindow

public MainWindow getMainWindow()

setView

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

Parameters:
view - The view.

update

public void update()

openCorpusFile

public void openCorpusFile(java.io.File file)
Opens a Corpus File.


openDocumentGroupingFile

public void openDocumentGroupingFile(java.io.File file)
Opens a Document Grouping File.


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)

openIMatrixFile

public void openIMatrixFile(java.io.File file)

openIObjectGroupingFile

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

purgeMatrix

public void purgeMatrix()

invertMatrix

public void invertMatrix()

randomClustering

public void randomClustering()

relativeClustering

public void relativeClustering()

kmeans

public void kmeans()