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, java.lang.Comparable<BackgroundImageVisualizer>

public class FuzzyColourCodingVisualiser
extends AbstractBackgroundImageVisualizer

Version:
$Id: FuzzyColourCodingVisualiser.java 4161 2011-02-11 16:23:39Z 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_SEPARATOR, contourInterpolationMode, contourMode, controlPanel, currentZDimSlice, inputObjects, 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
CACHE_KEY_SECTION_SEPARATOR, DEFAULT_BACKGROUND_VISUALIZATION_SCALE
 
Constructor Summary
FuzzyColourCodingVisualiser()
           
 
Method Summary
 java.awt.image.BufferedImage createVisualization(int variantIndex, GrowingSOM gsom, int width, int height)
          Creates a visualisation image.
private  java.awt.Point getLinePos(double unitWidth, double unitHeight, java.awt.geom.Point2D.Double loc)
           
private  java.awt.Point getMarkerPos(double unitWidth, double unitHeight, int markerWidth, int markerHeight, java.awt.geom.Point2D.Double loc)
           
protected  java.lang.String getVisualisationSpecificCacheKey(int currentVariant)
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
buildCacheKey, checkNeededObjectsAvailable, checkVariantIndex, clearVisualisationCache, compareTo, createVisualization, drawBackground, escapeFileName, getCache, getCacheKey, getControlPanel, getDefaultVisualisationFileName, getDefaultVisualisationFileName, 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 java.awt.image.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 java.awt.Point getMarkerPos(double unitWidth,
                                    double unitHeight,
                                    int markerWidth,
                                    int markerHeight,
                                    java.awt.geom.Point2D.Double loc)

getLinePos

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

getVisualisationSpecificCacheKey

protected java.lang.String getVisualisationSpecificCacheKey(int currentVariant)
Overrides:
getVisualisationSpecificCacheKey in class AbstractBackgroundImageVisualizer