at.tuwien.ifs.somtoolbox.visualization
Class FuzzyColourCodingVisualiser
java.lang.Object
at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
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
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 |
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 |
T
protected double T
r
protected int r
showUnitNodes
protected boolean showUnitNodes
showConnectingLines
protected boolean showConnectingLines
showColourCoding
protected boolean showColourCoding
FuzzyColourCodingVisualiser
public FuzzyColourCodingVisualiser()
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 usegsom
- the GrowingSOM to take build the visualisation forwidth
- the desired width of the image, in pixelsheight
- 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