at.tuwien.ifs.somtoolbox.visualization
Class AdaptiveCoordinatesVisualizer
java.lang.Object
at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer
at.tuwien.ifs.somtoolbox.visualization.AbstractMatrixVisualizer
at.tuwien.ifs.somtoolbox.visualization.AdaptiveCoordinatesVisualizer
- All Implemented Interfaces:
- BackgroundImageVisualizer, MatrixVisualizer, Comparable<BackgroundImageVisualizer>
public class AdaptiveCoordinatesVisualizer
- extends AbstractMatrixVisualizer
- implements BackgroundImageVisualizer
Implementation of the adaptive coordinates method.
- Version:
- $Id: AdaptiveCoordinatesVisualizer.java 3883 2010-11-02 17:13:23Z frank $
- Author:
- Timo Kropp (0627880), Goran Jovanov (0727760), 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 |
protected void |
checkNeededObjectsAvailable(GrowingSOM gsom)
|
BufferedImage |
createVisualization(int variantIndex,
GrowingSOM gsom,
int width,
int height)
Creates a visualisation image. |
private void |
drawPoints(BufferedImage bufferedImage,
GrowingLayer layer,
AdaptiveCoordinatesVirtualLayer virtualLayer,
int width,
int height)
|
protected String |
getCacheKey(GrowingSOM gsom,
int index,
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. |
String[] |
needsAdditionalFiles()
Overrides AbstractBackgroundImageVisualizer.needsAdditionalFiles() , as we need only one of the two
possible input files to create this visualisation. |
Methods inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractMatrixVisualizer |
computeHitHistogram, computeSpline, constrainWithinPalette, createImage, drawContour, getCurrentPalette, getMaximumMatrixValue, getMinimumMatrixValue, getPalette, getPreferredPaletteName, getVisualization, invalidateCache, reversePalette, setInterpolate, setPalette |
Methods inherited from class at.tuwien.ifs.somtoolbox.visualization.AbstractBackgroundImageVisualizer |
appendToCacheKey, buildCacheKey, checkVariantIndex, clearVisualisationCache, compareTo, createVisualization, drawBackground, getControlPanel, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVariantException, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, invalidateCache, logImageCache, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface at.tuwien.ifs.somtoolbox.visualization.BackgroundImageVisualizer |
getControlPanel, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVisualization, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener |
dotSize
private int dotSize
fontSize
private int fontSize
showUnitNames
private boolean showUnitNames
showInputNames
private boolean showInputNames
showDots
private boolean showDots
showHitHisto
private boolean showHitHisto
selectedThreshold
private double selectedThreshold
AdaptiveCoordinatesVisualizer
public AdaptiveCoordinatesVisualizer()
checkNeededObjectsAvailable
protected void checkNeededObjectsAvailable(GrowingSOM gsom)
throws SOMToolboxException
- Overrides:
checkNeededObjectsAvailable
in class AbstractBackgroundImageVisualizer
- Throws:
SOMToolboxException
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
drawPoints
private void drawPoints(BufferedImage bufferedImage,
GrowingLayer layer,
AdaptiveCoordinatesVirtualLayer virtualLayer,
int width,
int height)
throws LayerAccessException
- Throws:
LayerAccessException
getCacheKey
protected String getCacheKey(GrowingSOM gsom,
int index,
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 AbstractMatrixVisualizer
needsAdditionalFiles
public String[] needsAdditionalFiles()
- Overrides
AbstractBackgroundImageVisualizer.needsAdditionalFiles()
, as we need only one of the two
possible input files to create this visualisation. If the adaptive coordinates file is present, it will be used
directly, otherwise it can be created from the input vectors.
- Specified by:
needsAdditionalFiles
in interface BackgroundImageVisualizer
- Overrides:
needsAdditionalFiles
in class AbstractBackgroundImageVisualizer
- Returns:
- an array containing the names of the input objects needed