public class AdaptiveCoordinatesVisualizer extends AbstractMatrixVisualizer implements BackgroundImageVisualizer
Modifier and Type | Class and Description |
---|---|
protected class |
AdaptiveCoordinatesVisualizer.AdaptiveCoordinatesControlPanel |
AbstractBackgroundImageVisualizer.ContourInterpolationMode, AbstractBackgroundImageVisualizer.ContourMode, AbstractBackgroundImageVisualizer.VisualizationControlPanel
Modifier and Type | Field and Description |
---|---|
private int |
dotSize |
private int |
fontSize |
private double |
selectedThreshold |
private boolean |
showDots |
private boolean |
showHitHisto |
private boolean |
showInputNames |
private boolean |
showUnitNames |
maximumMatrixValue, minimumMatrixValue, palette
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
CACHE_KEY_SECTION_SEPARATOR, DEFAULT_BACKGROUND_VISUALIZATION_SCALE
Constructor and Description |
---|
AdaptiveCoordinatesVisualizer() |
Modifier and Type | Method and Description |
---|---|
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 |
getVisualisationSpecificCacheKey(int currentVariant) |
String[] |
needsAdditionalFiles()
Overrides
AbstractBackgroundImageVisualizer.needsAdditionalFiles() , as we need only one of the two
possible input files to create this visualisation. |
computeHitHistogram, computeSpline, constrainWithinPalette, createImage, drawContour, getCurrentPalette, getMaximumMatrixValue, getMinimumMatrixValue, getPalette, getPreferredPaletteName, getVisualization, invalidateCache, isInterpolate, reversePalette, setDefaultInterpolate, setInterpolate, setPalette
buildCacheKey, checkVariantIndex, clearVisualisationCache, compareTo, createVisualization, drawBackground, escapeFileName, getCache, getCacheKey, getControlPanel, getDefaultVisualisationFileName, getDefaultVisualisationFileName, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVariantException, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, invalidateCache, logImageCache, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControlPanel, getDefaultVisualisationFileName, getHTMLVisualisationControl, getNumberOfVisualizations, getPreferredScaleFactor, getVisualization, getVisualizationDescription, getVisualizationDescriptions, getVisualizationFlavours, getVisualizationFlavours, getVisualizationFlavours, getVisualizationName, getVisualizationNames, getVisualizationShortName, getVisualizationShortNames, setInputObjects, setMap, setSOMData, setVisualizationUpdateListener
compareTo
private int dotSize
private int fontSize
private boolean showUnitNames
private boolean showInputNames
private boolean showDots
private boolean showHitHisto
private double selectedThreshold
protected void checkNeededObjectsAvailable(GrowingSOM gsom) throws SOMToolboxException
checkNeededObjectsAvailable
in class AbstractBackgroundImageVisualizer
SOMToolboxException
public BufferedImage createVisualization(int variantIndex, GrowingSOM gsom, int width, int height) throws SOMToolboxException
AbstractBackgroundImageVisualizer
createVisualization
in class AbstractBackgroundImageVisualizer
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.SOMToolboxException
private void drawPoints(BufferedImage bufferedImage, GrowingLayer layer, AdaptiveCoordinatesVirtualLayer virtualLayer, int width, int height) throws LayerAccessException
LayerAccessException
protected String getVisualisationSpecificCacheKey(int currentVariant)
getVisualisationSpecificCacheKey
in class AbstractMatrixVisualizer
public String[] needsAdditionalFiles()
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.needsAdditionalFiles
in interface BackgroundImageVisualizer
needsAdditionalFiles
in class AbstractBackgroundImageVisualizer