databionics.esom.tool.legend
Class LegendTool

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

public class LegendTool
extends AbstractTool

Author:
stammi

Field Summary
protected  java.util.ArrayList items
           
protected  Legend legend
           
protected  javax.swing.JMenuItem saveItm2
           
protected  javax.swing.JMenuItem saveItm3
           
 
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
LegendTool(boolean gui, Application application)
           
 
Method Summary
 java.util.ArrayList getItems()
           
 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 saveDoublePicture(java.lang.String filename)
          generates a image with map and legend
 void saveDoublePicture2(java.lang.String filename)
          generates a image with map and legend
 void setData(java.lang.Object object)
           
 void update()
          Updates all gui elements, if not null.
 
Methods inherited from class databionics.esom.tool.AbstractTool
actionPerformed, 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, 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

legend

protected Legend legend

saveItm2

protected javax.swing.JMenuItem saveItm2

saveItm3

protected javax.swing.JMenuItem saveItm3

items

protected java.util.ArrayList items
Constructor Detail

LegendTool

public LegendTool(boolean gui,
                  Application application)
Method Detail

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

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

load

public boolean load(java.lang.String filename)

save

public boolean save(java.lang.String filename)

setData

public void setData(java.lang.Object object)

saveDoublePicture

public void saveDoublePicture(java.lang.String filename)
generates a image with map and legend

Parameters:
legend - BufferedImage with legend

saveDoublePicture2

public void saveDoublePicture2(java.lang.String filename)
generates a image with map and legend

Parameters:
legend - BufferedImage with legend

getShortTitle

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

getItems

public java.util.ArrayList getItems()
Returns:


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