databionics.esom.renderer
Class Renderer

java.lang.Object
  extended by databionics.esom.renderer.Renderer

public class Renderer
extends java.lang.Object

Render an ESOM to a 2D image. The rendering is decomposed into basic steps and care is taken that after some properties are changed render() only repeats steps depending on those properties. The work of calculating the height above each neuron from the grid of weights is delegated to a class of type BackgroundRenderer. Zooming, mapping to a color table and tiling is done here. Drawing a foreground on top of the image is delegated to a class of type ForegroundRenderer. Only works with rectangular quad-grids, i.e. all subclasses of RectangularGrid.


Field Summary
protected  boolean autoRender
          Flag whether render() is called after properties are changed
protected  BackgroundRenderer background
          The renderer for the background
protected  BackgroundTool backgroundTool
           
protected  BMFile bestmatches
          List with best match positions
protected  java.awt.image.BufferedImage bgImage
          The background image in 1:1 size
protected  java.lang.String bmFilename
           
protected  java.util.ArrayList bmListeners
           
protected  int bmSize
          int for size of bm
protected  cern.colt.list.IntArrayList classes
          list with class numbers of lrn File
protected  double clip
          The clip factor for clipped heights
protected  boolean clipping
          Flag if clipping is active
protected  java.awt.image.BufferedImage clonedBgImage
           
protected  float colorify
          factor for colorification
protected  boolean colorifying
          flag wether to colorify or not
protected  ColorMapping colorMap
          Colors really used to render background dependend on colors&colorSteps
protected  ColorTable colors
          Colors used to render the background
protected  int colorSteps
          Number of steps in Colortable to be used
protected  cern.colt.list.IntArrayList components
          List with weight components to use
protected  boolean contours
          Flag for countour lines
protected  cern.colt.matrix.DoubleMatrix2D data
          matrix with training data
protected  DataTool dataTool
           
protected  ForegroundTool foregroundTool
           
protected  boolean frame
           
protected  RectangularGrid grid
          The grid of neurons
protected  boolean gridChanged
          Flag for show changes on actual grid TODO: only the setter is needed right now.
protected  int height
          The original height of the display in 2D
protected  boolean hexagonal
          Flag for hexagonal neurons
protected  java.awt.image.BufferedImage image
          The image to render to
protected  InfoTool infoTool
           
protected  LegendTool legendTool
           
protected static org.apache.log4j.Logger log
          interface to log4j system
protected  LrnFile lrn
          LrnFile with data
protected  boolean lrnChanged
          Flag for show changes on actual lrn file
protected  java.lang.String lrnFilename
           
protected  java.util.ArrayList lrnListeners
           
protected  ForegroundList maskForegrounds
           
protected  cern.colt.matrix.DoubleMatrix2D matrix
          The height above each neuron
protected  NamesFile names
          names of bestmatches
protected  java.lang.String namesFilename
           
protected  boolean noForeground
           
protected  cern.colt.matrix.DoubleMatrix2D opinionMatrix
          The Place to store the calculated OpinionMatrix
protected  ForegroundList posttileForegrounds
           
protected  ForegroundList pretileForegrounds
          The rendererlists for the foregrounds
protected  boolean reDraw
          Flag whether drawBackground needs to be called again
protected  boolean reMask
          Flag for drawing island/frame etc.
protected  boolean rePostFore
          Flag for drawing cls/bm/opn etc.
protected  boolean rePreFore
          Flag for drawing areas/colorize etc.
protected  boolean reRender
          Flag whether renderBackground needs to be called again
protected  boolean reTile
          Flag whether tileBackground needs to be called again
protected  boolean reZoom
          Flag whether zoomBackground needs to be called again
protected  int shiftX
          Horizontal shift of original matrix (only in toroid mode)
protected  int shiftY
          Vertical shift of original matrix (only in toroid mode)
protected  boolean tiled
          Flag for tiled projection
protected  java.awt.image.BufferedImage tiledImage
          The possibly tiled background image
protected  boolean toroid
          Flag for toroid renderering
protected  java.lang.String toroidLayout
          Layout for toroid projection
protected  java.lang.String umxFilename
           
protected  int width
          The original width of the display in 2D
protected  java.lang.String wtsFilename
           
protected  java.util.ArrayList wtsListeners
           
protected  int zoom
          The scaling factor
protected  cern.colt.matrix.DoubleMatrix2D zoomedMatrix
          The interpolated height above each pixal
protected  cern.colt.matrix.DoubleMatrix2D zoomedOpn
           
 
Constructor Summary
Renderer()
          Standard constructor
Renderer(cern.colt.matrix.DoubleMatrix2D matrix)
          Constructor with precalculated matrix
Renderer(Grid grid)
          Constructor with weights
 
Method Summary
 void addBmListener(BmChangeListener listener)
           
 void addLrnListener(LrnChangeListener listener)
           
 void addWtsListener(WtsChangeListener listener)
           
protected  void cloneBgImage()
          Copy zoomed image to current image.
protected  void cloneImage()
          Copy zoomed image to current image.
protected  void colorizeBackground()
           
protected  void drawBackground()
           
 BackgroundRenderer getBackgroundRenderer()
          Get the background renderer
 BMFile getBestMatches()
          Get the bestmatches in grid
 java.awt.image.BufferedImage getBgImage()
           
 java.lang.String getBmFilename()
           
 int getBmSize()
           
 cern.colt.list.IntArrayList getClasses()
           
 double getClip()
           
 java.awt.image.BufferedImage getClonedBgImage()
           
 float getColorify()
           
 ColorMapping getColorMap()
           
 ColorTable getColors()
          Get the color table
 int getColorSteps()
          Returns the Number of Colorsteps to be made
 cern.colt.list.IntArrayList getComponents()
          Get the selected weight components.
 cern.colt.function.VectorVectorFunction getDistanceFunction()
          Get the distance function in data space
 RectangularGrid getGrid()
          Get the grid of weight vectors.
 java.awt.image.BufferedImage getImage()
          Get the generated image
static org.apache.log4j.Logger getLog()
           
 LrnFile getLrnFile()
           
 java.lang.String getLrnFilename()
           
 cern.colt.matrix.DoubleMatrix2D getMatrix()
          Get the matrix
 NamesFile getNames()
          get names
 java.lang.String getNamesFilename()
           
 int getQuadrantOfPixel(int x, int y)
          returns the Quadrant of the map.
 int getShiftX()
          get shiftX
 int getShiftY()
          get shiftY
 ColorStatistics getStats()
           
 java.awt.image.BufferedImage getTiledImage()
           
 java.lang.String getToroidLayout()
          Get the toroid layout
 java.lang.String getUmxFilename()
           
 java.lang.String getWtsFilename()
           
 int getZoom()
          Get the zoom factor
 cern.colt.matrix.DoubleMatrix2D getZoomedMatrix()
           
 boolean isAutoRender()
          Get the auto render flag
 boolean isClipping()
           
protected  boolean isColorBackground()
           
 boolean isColorifying()
           
 boolean isContours()
          Get the contour flag
 boolean isFrame()
          Deprecated.  
 boolean isGridChanged()
           
 boolean isHexagonal()
          Get the hexagonal flag
 boolean isLrnChanged()
           
 boolean isNoForeground()
           
 boolean isReDraw()
           
 boolean isReMask()
           
 boolean isRePostFore()
           
 boolean isRePreFore()
           
 boolean isReRender()
           
 boolean isReTile()
           
 boolean isReZoom()
           
 boolean isTiled()
          Get the tiled flag
 boolean isToroid()
           
 boolean loadBestMatches(java.lang.String filename)
          Load the indices of the bestmatches from a *.bm file
 boolean loadData(java.lang.String filename)
          Load the training data and keys from a *.lrn file
 boolean loadMatrix(java.lang.String filename)
          Load the matrix from a *.umx file
 boolean loadNames(java.lang.String filename)
          Load the data names from a *.names file
 void notifyBmListeners()
           
 void notifyLrnListeners()
           
 void notifyWtsListeners()
           
 java.awt.image.BufferedImage render()
          Render the image.
 void render(java.lang.String filename)
          Render the image to a file
 void renderBackground()
          If a grid of weights is available (field grid not null) let the background renderer caluclate the height values and store it in the field matrix.
 cern.colt.matrix.DoubleMatrix2D renderBackground(Grid grid)
           
 void reset()
           
 boolean saveMatrix(java.lang.String filename)
          Save the matrix to a *.umx file
 void setAutoRender(boolean v)
          Set the auto render flag
 void setBackgroundRenderer(BackgroundRenderer v)
          Set the background renderer
 void setBackgroundTool(BackgroundTool backgroundTool)
           
 void setBestMatches(BMFile v)
          Set the bestmatches in grid
 void setBmFilename(java.lang.String string)
           
 void setBmSize(int i)
           
 void setClasses(cern.colt.list.IntArrayList list)
           
 void setClip(double d)
          Sets the height percentage where the heigths matrix shall be clipped
 void setClipping(boolean b)
           
 void setClonedBgImage(java.awt.image.BufferedImage clonedBgImage)
           
 void setColorify(float colorify)
           
 void setColorifying(boolean colorifying)
           
 void setColorMap(ColorMapping mapping)
           
 void setColors(ColorTable v)
          Set the color table
 void setColorSteps(int q)
          Set the number of color-steps to be made
 void setComponents(cern.colt.list.IntArrayList v)
          Set the selected weight components.
 void setComponents(java.lang.String v)
          Set the selected weight components as a string.
 void setContours(boolean v)
          Set the contour flag
 void setDataTool(DataTool dataTool)
           
 void setForegroundTool(ForegroundTool foregroundTool)
           
 void setFrame(boolean b)
          Deprecated.  
 void setGrid(Grid v)
          Set the grid of weight vectors.
protected  void setGridChanged(boolean gridChanged)
           
 void setHexagonal(boolean v)
          Set the hexagonal flag
 void setImage(java.awt.image.BufferedImage image)
           
 void setInfoTool(InfoTool infoTool)
           
 void setLegendTool(LegendTool legendTool)
           
 void setLrnChanged(boolean flag)
           
 void setLrnFile(LrnFile file)
           
 void setLrnFilename(java.lang.String filename)
           
 void setMaskForegrounds(ForegroundList maskForegrounds)
           
 void setMatrix(cern.colt.matrix.DoubleMatrix2D v)
          Set the matrix
 void setNames(NamesFile file)
           
 void setNoForeground(boolean noForeground)
           
 void setPosttileForegrounds(ForegroundList posttileForegrounds)
           
 void setPretileForegrounds(ForegroundList pretileForegrounds)
           
 void setReDraw(boolean b)
           
 void setReMask(boolean reMask)
           
 void setRePostFore(boolean rePostFore)
           
 void setRePreFore(boolean rePreFore)
           
 void setReRender(boolean b)
           
 void setReTile(boolean b)
           
 void setReZoom(boolean b)
           
 void setTiled(boolean v)
          Set the tiled flag
 void setToroid(boolean toroid)
           
 void setToroidLayout(java.lang.String v)
          Set the toroid layout
 void setWtsFilename(java.lang.String string)
           
 void setZoom(int v)
          Set the zoom factor
protected  void tileBackground()
          Tile the background image for toroid projection.
protected  void zoomBackground()
           
protected  cern.colt.matrix.DoubleMatrix2D zoomColorMatrix(cern.colt.matrix.DoubleMatrix2D matrix)
           
 
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


gridChanged

protected boolean gridChanged
Flag for show changes on actual grid TODO: only the setter is needed right now. can be removed


grid

protected RectangularGrid grid
The grid of neurons


wtsListeners

protected java.util.ArrayList wtsListeners

matrix

protected cern.colt.matrix.DoubleMatrix2D matrix
The height above each neuron


names

protected NamesFile names
names of bestmatches


bestmatches

protected BMFile bestmatches
List with best match positions


bmListeners

protected java.util.ArrayList bmListeners

data

protected cern.colt.matrix.DoubleMatrix2D data
matrix with training data


lrnChanged

protected boolean lrnChanged
Flag for show changes on actual lrn file


lrn

protected LrnFile lrn
LrnFile with data


lrnListeners

protected java.util.ArrayList lrnListeners

components

protected cern.colt.list.IntArrayList components
List with weight components to use


zoomedMatrix

protected cern.colt.matrix.DoubleMatrix2D zoomedMatrix
The interpolated height above each pixal


opinionMatrix

protected cern.colt.matrix.DoubleMatrix2D opinionMatrix
The Place to store the calculated OpinionMatrix


zoomedOpn

protected cern.colt.matrix.DoubleMatrix2D zoomedOpn

height

protected int height
The original height of the display in 2D


width

protected int width
The original width of the display in 2D


clip

protected double clip
The clip factor for clipped heights


clipping

protected boolean clipping
Flag if clipping is active


noForeground

protected boolean noForeground

backgroundTool

protected BackgroundTool backgroundTool

foregroundTool

protected ForegroundTool foregroundTool

infoTool

protected InfoTool infoTool

legendTool

protected LegendTool legendTool

dataTool

protected DataTool dataTool

classes

protected cern.colt.list.IntArrayList classes
list with class numbers of lrn File


bgImage

protected java.awt.image.BufferedImage bgImage
The background image in 1:1 size


clonedBgImage

protected java.awt.image.BufferedImage clonedBgImage

tiledImage

protected java.awt.image.BufferedImage tiledImage
The possibly tiled background image


image

protected java.awt.image.BufferedImage image
The image to render to


pretileForegrounds

protected ForegroundList pretileForegrounds
The rendererlists for the foregrounds


posttileForegrounds

protected ForegroundList posttileForegrounds

maskForegrounds

protected ForegroundList maskForegrounds

background

protected BackgroundRenderer background
The renderer for the background


tiled

protected boolean tiled
Flag for tiled projection


toroid

protected boolean toroid
Flag for toroid renderering


toroidLayout

protected java.lang.String toroidLayout
Layout for toroid projection


shiftX

protected int shiftX
Horizontal shift of original matrix (only in toroid mode)


shiftY

protected int shiftY
Vertical shift of original matrix (only in toroid mode)


hexagonal

protected boolean hexagonal
Flag for hexagonal neurons


zoom

protected int zoom
The scaling factor


colors

protected ColorTable colors
Colors used to render the background


colorMap

protected ColorMapping colorMap
Colors really used to render background dependend on colors&colorSteps


contours

protected boolean contours
Flag for countour lines


colorSteps

protected int colorSteps
Number of steps in Colortable to be used


colorify

protected float colorify
factor for colorification


bmSize

protected int bmSize
int for size of bm


colorifying

protected boolean colorifying
flag wether to colorify or not


reRender

protected boolean reRender
Flag whether renderBackground needs to be called again


reZoom

protected boolean reZoom
Flag whether zoomBackground needs to be called again


reDraw

protected boolean reDraw
Flag whether drawBackground needs to be called again


reTile

protected boolean reTile
Flag whether tileBackground needs to be called again


autoRender

protected boolean autoRender
Flag whether render() is called after properties are changed


rePreFore

protected boolean rePreFore
Flag for drawing areas/colorize etc. Every Foreground to be rendererd before tiling


rePostFore

protected boolean rePostFore
Flag for drawing cls/bm/opn etc. Every Foreground to be rendererd After tiling


reMask

protected boolean reMask
Flag for drawing island/frame etc. Every Foreground to be rendererd in the end


frame

protected boolean frame

wtsFilename

protected java.lang.String wtsFilename

bmFilename

protected java.lang.String bmFilename

lrnFilename

protected java.lang.String lrnFilename

umxFilename

protected java.lang.String umxFilename

namesFilename

protected java.lang.String namesFilename
Constructor Detail

Renderer

public Renderer()
Standard constructor


Renderer

public Renderer(Grid grid)
Constructor with weights

Parameters:
grid - grid of weight vectors

Renderer

public Renderer(cern.colt.matrix.DoubleMatrix2D matrix)
Constructor with precalculated matrix

Parameters:
matrix - matrix of heights
Method Detail

getGrid

public RectangularGrid getGrid()
Get the grid of weight vectors.

Returns:
value of grid.

setGrid

public void setGrid(Grid v)
Set the grid of weight vectors.

Parameters:
v - Value to assign to grid.

getDistanceFunction

public cern.colt.function.VectorVectorFunction getDistanceFunction()
Get the distance function in data space

Returns:
value of distanceFunction.

getComponents

public cern.colt.list.IntArrayList getComponents()
Get the selected weight components.

Returns:
value of components.

setComponents

public void setComponents(cern.colt.list.IntArrayList v)
Set the selected weight components.

Parameters:
v - Value to assign to components.

setComponents

public void setComponents(java.lang.String v)
Set the selected weight components as a string.

Parameters:
v - Value to assign to components, comma seperated integers

getMatrix

public cern.colt.matrix.DoubleMatrix2D getMatrix()
Get the matrix

Returns:
value of matrix.

setMatrix

public void setMatrix(cern.colt.matrix.DoubleMatrix2D v)
Set the matrix

Parameters:
v - Value to assign to matrix.

loadMatrix

public boolean loadMatrix(java.lang.String filename)
Load the matrix from a *.umx file

Parameters:
filename - Name of the file

saveMatrix

public boolean saveMatrix(java.lang.String filename)
Save the matrix to a *.umx file

Parameters:
filename - Name of the file

getBestMatches

public BMFile getBestMatches()
Get the bestmatches in grid

Returns:
value of bestmatches.

setBestMatches

public void setBestMatches(BMFile v)
Set the bestmatches in grid

Parameters:
v - Value to assign to bestmatches.

loadBestMatches

public boolean loadBestMatches(java.lang.String filename)
Load the indices of the bestmatches from a *.bm file

Parameters:
filename - filename Name of the file

getNames

public NamesFile getNames()
get names

Returns:
namesFile

loadNames

public boolean loadNames(java.lang.String filename)
Load the data names from a *.names file

Parameters:
filename - filename Name of the file

loadData

public boolean loadData(java.lang.String filename)
Load the training data and keys from a *.lrn file

Parameters:
filename - Name of the file

getImage

public java.awt.image.BufferedImage getImage()
Get the generated image

Returns:
the image, which has to be created before

getBackgroundRenderer

public BackgroundRenderer getBackgroundRenderer()
Get the background renderer

Returns:
value of background.

setBackgroundRenderer

public void setBackgroundRenderer(BackgroundRenderer v)
Set the background renderer

Parameters:
v - Value to assign to background.

isTiled

public boolean isTiled()
Get the tiled flag

Returns:
value of tiled.

setTiled

public void setTiled(boolean v)
Set the tiled flag

Parameters:
v - Value to assign to tiled

getToroidLayout

public java.lang.String getToroidLayout()
Get the toroid layout

Returns:
value of toroid layout

setToroidLayout

public void setToroidLayout(java.lang.String v)
Set the toroid layout

Parameters:
v - Value to assign to toroid layout

isHexagonal

public boolean isHexagonal()
Get the hexagonal flag

Returns:
value of hexagonal.

setHexagonal

public void setHexagonal(boolean v)
Set the hexagonal flag

Parameters:
v - Value to assign to hexagonal

getZoom

public int getZoom()
Get the zoom factor

Returns:
value of zoom.

getShiftX

public int getShiftX()
get shiftX

Returns:
value of shiftX

getShiftY

public int getShiftY()
get shiftY

Returns:
value of shiftY

setZoom

public void setZoom(int v)
Set the zoom factor

Parameters:
v - Value to assign to zoom

getColors

public ColorTable getColors()
Get the color table

Returns:
value of colors.

setColors

public void setColors(ColorTable v)
Set the color table

Parameters:
v - Value to assign to colors

setColorSteps

public void setColorSteps(int q)
Set the number of color-steps to be made

Parameters:
q - number of ColorSteps

getColorSteps

public int getColorSteps()
Returns the Number of Colorsteps to be made

Returns:
number of ColorSteps

isContours

public boolean isContours()
Get the contour flag

Returns:
value of contour .

setContours

public void setContours(boolean v)
Set the contour flag

Parameters:
v - Value to assign to hexagonal

isAutoRender

public boolean isAutoRender()
Get the auto render flag

Returns:
value of autorender

setAutoRender

public void setAutoRender(boolean v)
Set the auto render flag

Parameters:
v - Value to assign to auto render

renderBackground

public cern.colt.matrix.DoubleMatrix2D renderBackground(Grid grid)

renderBackground

public void renderBackground()
If a grid of weights is available (field grid not null) let the background renderer caluclate the height values and store it in the field matrix.


zoomColorMatrix

protected cern.colt.matrix.DoubleMatrix2D zoomColorMatrix(cern.colt.matrix.DoubleMatrix2D matrix)

zoomBackground

protected void zoomBackground()

drawBackground

protected void drawBackground()

colorizeBackground

protected void colorizeBackground()

tileBackground

protected void tileBackground()
Tile the background image for toroid projection. Otherwise just reference the current image.


cloneImage

protected void cloneImage()
Copy zoomed image to current image.


cloneBgImage

protected void cloneBgImage()
Copy zoomed image to current image.


render

public java.awt.image.BufferedImage render()
Render the image. Takes care only to execute neccessary steps based on which attributes changed


render

public void render(java.lang.String filename)
Render the image to a file


reset

public void reset()

isReRender

public boolean isReRender()
Returns:

setReRender

public void setReRender(boolean b)
Parameters:
b -

getBmFilename

public java.lang.String getBmFilename()
Returns:

getLrnFilename

public java.lang.String getLrnFilename()
Returns:

getUmxFilename

public java.lang.String getUmxFilename()
Returns:

getWtsFilename

public java.lang.String getWtsFilename()
Returns:

setWtsFilename

public void setWtsFilename(java.lang.String string)
Parameters:
string -

getNamesFilename

public java.lang.String getNamesFilename()
Returns:

isReZoom

public boolean isReZoom()
Returns:

setReZoom

public void setReZoom(boolean b)
Parameters:
b -

isReDraw

public boolean isReDraw()
Returns:

setReDraw

public void setReDraw(boolean b)
Parameters:
b -

isReTile

public boolean isReTile()
Returns:

setReTile

public void setReTile(boolean b)
Parameters:
b -

setClip

public void setClip(double d)
Sets the height percentage where the heigths matrix shall be clipped

Parameters:
d - the clip heigth between 0 and 1

getClip

public double getClip()
Returns:

getLog

public static org.apache.log4j.Logger getLog()
Returns:

isFrame

public boolean isFrame()
Deprecated. 

Returns:

setFrame

public void setFrame(boolean b)
Deprecated. 

Parameters:
b -

setImage

public void setImage(java.awt.image.BufferedImage image)
Parameters:
image -

setClipping

public void setClipping(boolean b)
Parameters:
b -

getClasses

public cern.colt.list.IntArrayList getClasses()
Returns:

setClasses

public void setClasses(cern.colt.list.IntArrayList list)
Parameters:
list -

getLrnFile

public LrnFile getLrnFile()
Returns:

setLrnFile

public void setLrnFile(LrnFile file)
Parameters:
file -

isLrnChanged

public boolean isLrnChanged()

setLrnChanged

public void setLrnChanged(boolean flag)
Parameters:
flag - has to be set true if the actual lrn file is changed

addLrnListener

public void addLrnListener(LrnChangeListener listener)

notifyLrnListeners

public void notifyLrnListeners()

addWtsListener

public void addWtsListener(WtsChangeListener listener)

notifyWtsListeners

public void notifyWtsListeners()

addBmListener

public void addBmListener(BmChangeListener listener)

notifyBmListeners

public void notifyBmListeners()

getQuadrantOfPixel

public int getQuadrantOfPixel(int x,
                              int y)
returns the Quadrant of the map. note: a planar map has only 1 quadrant

Parameters:
x - x-coordinate of pixel on zoomed image
y - y-coordinate of pixel on zoomed image
Returns:
numer of quadrant

getColorify

public float getColorify()
Returns:
Returns the colorify.

setColorify

public void setColorify(float colorify)
Parameters:
colorify - The colorify to set.

isColorifying

public boolean isColorifying()
Returns:
Returns the colorifying.

setColorifying

public void setColorifying(boolean colorifying)
Parameters:
colorifying - The colorifying to set.

isColorBackground

protected boolean isColorBackground()

setLrnFilename

public void setLrnFilename(java.lang.String filename)

getZoomedMatrix

public cern.colt.matrix.DoubleMatrix2D getZoomedMatrix()
Returns:
Returns the zoomedMatrix.

getTiledImage

public java.awt.image.BufferedImage getTiledImage()
Returns:
Returns the tiled image

isToroid

public boolean isToroid()
Returns:
Returns the toroid.

setToroid

public void setToroid(boolean toroid)
Parameters:
toroid - The toroid to set.

getBmSize

public int getBmSize()
Returns:

setBmSize

public void setBmSize(int i)
Parameters:
i -

setNames

public void setNames(NamesFile file)
Parameters:
file -

setBmFilename

public void setBmFilename(java.lang.String string)
Parameters:
string -

isClipping

public boolean isClipping()
Returns:

getColorMap

public ColorMapping getColorMap()
Returns:

setColorMap

public void setColorMap(ColorMapping mapping)
Parameters:
mapping -

getStats

public ColorStatistics getStats()
Returns:
Returns the stats.

setInfoTool

public void setInfoTool(InfoTool infoTool)
Parameters:
infoTool - The infoTool to set.

setDataTool

public void setDataTool(DataTool dataTool)
Parameters:
dataTool - The dataTool to set.

setLegendTool

public void setLegendTool(LegendTool legendTool)
Parameters:
legendTool - The legendTool to set.

isNoForeground

public boolean isNoForeground()
Returns:
Returns the noForeground.

setNoForeground

public void setNoForeground(boolean noForeground)
Parameters:
noForeground - The noForeground to set.

isGridChanged

public boolean isGridChanged()
Returns:
Returns the gridChanged.

setGridChanged

protected void setGridChanged(boolean gridChanged)
Parameters:
gridChanged - The gridChanged to set.

setBackgroundTool

public void setBackgroundTool(BackgroundTool backgroundTool)
Parameters:
backgroundTool - The backgroundTool to set.

setForegroundTool

public void setForegroundTool(ForegroundTool foregroundTool)
Parameters:
foregroundTool - The foregroundTool to set.

isRePreFore

public boolean isRePreFore()
Returns:
Returns the rePreFore.

setRePreFore

public void setRePreFore(boolean rePreFore)
Parameters:
rePreFore - The rePreFore to set.

isRePostFore

public boolean isRePostFore()
Returns:
Returns the rePostFore.

setRePostFore

public void setRePostFore(boolean rePostFore)
Parameters:
rePostFore - The rePostFore to set.

isReMask

public boolean isReMask()
Returns:
Returns the reMask.

setReMask

public void setReMask(boolean reMask)
Parameters:
reMask - The reMask to set.

setMaskForegrounds

public void setMaskForegrounds(ForegroundList maskForegrounds)
Parameters:
maskForegrounds - The maskForegrounds to set.

setPosttileForegrounds

public void setPosttileForegrounds(ForegroundList posttileForegrounds)
Parameters:
posttileForegrounds - The posttileForegrounds to set.

setPretileForegrounds

public void setPretileForegrounds(ForegroundList pretileForegrounds)
Parameters:
pretileForegrounds - The pretileForegrounds to set.

getClonedBgImage

public java.awt.image.BufferedImage getClonedBgImage()
Returns:
Returns the clonedBgImage.

setClonedBgImage

public void setClonedBgImage(java.awt.image.BufferedImage clonedBgImage)
Parameters:
clonedBgImage - The clonedBgImage to set.

getBgImage

public java.awt.image.BufferedImage getBgImage()
Returns:
Returns the bgImage.


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