databionics.esom.tool.dataclass
Class DataclassTool

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

public class DataclassTool
extends AbstractTool

Author:
The Somana Developers

Field Summary
protected  javax.swing.JCheckBox chkLetters
          Button controls wether the ClassBestmatchRenderer draws b/w Letters instead of coloured squares
protected  ColorTable colorTable
           
protected  DataClass currentClass
           
protected  ClsFile data
           
protected  javax.swing.JButton mapspace
           
 
Fields inherited from class databionics.esom.tool.AbstractTool
application, bottomBar, bottomTab, btnClear, btnLoad, btnPaint, btnSave, clearItm, clickMode, controlButton, creatorPanel, dataTable, dataTableModel, displayPanel, dragMode, drawing, fileMenu, filename, gui, loader, loadItm, log, moveCallback, pnlControl, polygonMode, popMenu, removeItm, renderer, renderPanel, saveItm, toolBar, toolRenderer
 
Constructor Summary
DataclassTool(boolean gui, Application application)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          handles the performed action
 void calculateMapSpace()
          calcuate the map space of each class
 ColorTable getColorTable()
           
 DataClass getCurrentclass()
           
 ClsFile getData()
           
 javax.swing.JMenuItem getLoadItm()
           
 javax.swing.JMenuItem getSaveItm()
           
 java.lang.String getShortTitle()
           
 void init()
          Initialize what needs to be Initialized.
 boolean load(java.lang.String filename)
           
 void reset()
          reset the tool.
 boolean save(java.lang.String filename)
           
 void setColorTable(ColorTable colorTable)
           
 void setCurrentclass(DataClass currentclass)
           
 void setData(ClsFile data)
           
 void setData(java.lang.Object object)
           
 void setDrawing(boolean drawing)
          set the drawing mode for this tool.
 void update()
          Updates all gui elements, if not null.
 
Methods inherited from class databionics.esom.tool.AbstractTool
callback, getApplication, getBottomTab, getCallback, getControlButton, getCreatorPanel, getDataTable, getDataTableModel, 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, 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

colorTable

protected ColorTable colorTable

currentClass

protected DataClass currentClass

data

protected ClsFile data

chkLetters

protected javax.swing.JCheckBox chkLetters
Button controls wether the ClassBestmatchRenderer draws b/w Letters instead of coloured squares


mapspace

protected javax.swing.JButton mapspace
Constructor Detail

DataclassTool

public DataclassTool(boolean gui,
                     Application application)
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()
Description copied from class: AbstractTool
Updates all gui elements, if not null. Uses JComponent.revalidate() Better solution maybe possible.

Overrides:
update in class AbstractTool

load

public boolean load(java.lang.String filename)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
handles the performed action

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

save

public boolean save(java.lang.String filename)

setData

public void setData(java.lang.Object object)

calculateMapSpace

public void calculateMapSpace()
calcuate the map space of each class


getColorTable

public ColorTable getColorTable()
Returns:
Returns the colorTable.

setColorTable

public void setColorTable(ColorTable colorTable)
Parameters:
colorTable - The colorTable to set.

getCurrentclass

public DataClass getCurrentclass()
Returns:
Returns the currentclass.

setCurrentclass

public void setCurrentclass(DataClass currentclass)
Parameters:
currentclass - The currentclass to set.

getLoadItm

public javax.swing.JMenuItem getLoadItm()
Returns:
Returns the loadItm.

getSaveItm

public javax.swing.JMenuItem getSaveItm()
Returns:
Returns the saveItm.

getShortTitle

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

setDrawing

public void setDrawing(boolean drawing)
Description copied from class: AbstractTool
set the drawing mode for this tool. if it changes, reDraw() will be called.

Overrides:
setDrawing in class AbstractTool
Parameters:
drawing - The drawing to set.

getData

public ClsFile getData()
Returns:
Returns the data.

setData

public void setData(ClsFile data)
Parameters:
data - The data to set.


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