at.tuwien.ifs.somtoolbox.visualization
Class FuzzyColourCodingVisualiser

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
      extended by at.tuwien.ifs.somtoolbox.visualization.FuzzyColourCodingVisualiser
All Implemented Interfaces:
BackgroundImageVisualizer, Comparable<BackgroundImageVisualizer>

public class FuzzyColourCodingVisualiser
extends AbstractBackgroundImageVisualizer

Version:
$Id: FuzzyColourCodingVisualiser.java 3869 2010-10-21 15:56:09Z mayer $
Author:
Rudolf Mayer

Nested Class Summary
protected  class FuzzyColourCodingVisualiser.FuzzyColouringControlPanel
           
 
Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel
 
Field Summary
protected  int r
           
protected  boolean showColourCoding
           
protected  boolean showConnectingLines
           
protected  boolean showUnitNodes
           
protected  double T
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
cache, CACHE_KEY_SECTION_SEPARATOR, CACHE_KEY_SEPARATOR, contourInterpolationMode, contourMode, controlPanel, currentZDimSlice, inputObjects, interpolate, log, map, MAX_CACHE_SIZE_MB, neededInputObjects, NUM_VISUALIZATIONS, numberOfContours, opacity, preferredScaleFactor, VISUALIZATION_DESCRIPTIONS, VISUALIZATION_NAMES, VISUALIZATION_SHORT_NAMES, visualizationUpdateListener, zSize
 
Fields inherited from interface at.tuwien.ifs.somtoolbox.visualization.BackgroundImageVisualizer
DEFAULT_BACKGROUND_VISUALIZATION_SCALE
 
Constructor Summary
FuzzyColourCodingVisualiser()
           
 
Method Summary
 BufferedImage createVisualization(int variantIndex, GrowingSOM gsom, int width, int height)
          Creates a visualisation image.
protected  String getCacheKey(GrowingSOM gsom, int currentVariant, int width, int height)
          The key of a cache is created as follows: VisualisationShortName + Hashcode of the SOM + Width + Height + Opacity.
Sub-classes might add more information to the cache, if needed.
private  Point getLinePos(double unitWidth, double unitHeight, Point2D.Double loc)
           
private  Point getMarkerPos(double unitWidth, double unitHeight, int markerWidth, int markerHeight, Point2D.Double loc)
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
appendToCacheKey, buildCacheKey, checkNeededObjectsAvailable, checkVariantIndex, clearVisualisationCache, compareTo, createVisualization, drawBackground, getControlPanel, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVariantException, getVisualization, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, invalidateCache, logImageCache, needsAdditionalFiles, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

T

protected double T

r

protected int r

showUnitNodes

protected boolean showUnitNodes

showConnectingLines

protected boolean showConnectingLines

showColourCoding

protected boolean showColourCoding
Constructor Detail

FuzzyColourCodingVisualiser

public FuzzyColourCodingVisualiser()
Method Detail

createVisualization

public BufferedImage createVisualization(int variantIndex,
                                         GrowingSOM gsom,
                                         int width,
                                         int height)
                                  throws SOMToolboxException
Description copied from class: AbstractBackgroundImageVisualizer
Creates a visualisation image. Subclasses must implement this method.

Specified by:
createVisualization in class AbstractBackgroundImageVisualizer
Parameters:
variantIndex - the index of the variant to use
gsom - the GrowingSOM to take build the visualisation for
width - the desired width of the image, in pixels
height - the desired height of the image, in pixels.
Returns:
an image for this visualisation.
Throws:
SOMToolboxException

getMarkerPos

private Point getMarkerPos(double unitWidth,
                           double unitHeight,
                           int markerWidth,
                           int markerHeight,
                           Point2D.Double loc)

getLinePos

private Point getLinePos(double unitWidth,
                         double unitHeight,
                         Point2D.Double loc)

getCacheKey

protected String getCacheKey(GrowingSOM gsom,
                             int currentVariant,
                             int width,
                             int height)
Description copied from class: AbstractBackgroundImageVisualizer
The key of a cache is created as follows: VisualisationShortName + Hashcode of the SOM + Width + Height + Opacity.
Sub-classes might add more information to the cache, if needed.

Overrides:
getCacheKey in class AbstractBackgroundImageVisualizer