at.tuwien.ifs.somtoolbox.apps.viewer
Class CommonSOMViewerStateData

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.apps.viewer.CommonSOMViewerStateData

public class CommonSOMViewerStateData
extends Object

This class stores common viewer state data, and is shared among the different panels of the SOMViewer application.

Version:
$Id: CommonSOMViewerStateData.java 3765 2010-08-20 13:40:21Z mayer $
Author:
Rudolf Mayer

Field Summary
private  String classPiechartMode
           
 Color clusterBorderColour
           
 float clusterBorderWidthMagnificationFactor
           
 double clusterByValue
           
 int clusterWithLabels
           
 boolean colorClusters
           
 int controlElementsWidth
           
 int currentVariant
           
 boolean dataVisibilityMode
           
 boolean displayInputLinkage
           
 boolean exactUnitPlacement
           
 boolean exactUnitPlacementEnabled
           
 JFileChooser fileChooser
           
static String fileNamePrefix
           
static String fileNameSuffix
           
 GrowingLayer growingLayer
           
 GrowingSOM growingSOM
           
 boolean hideUnitDetails
           
 boolean hitsVisibilityMode
           
 SharedSOMVisualisationData inputDataObjects
           
private static CommonSOMViewerStateData instance
           
 boolean labelsWithValues
           
 boolean labelVisibilityMode
           
 MapPNode mapPNode
           
 double[] maxLabelYOffset
          The maximum yOffset for labels in any of the units.
static MIMETypes MimeTypes
           
 int numClusters
           
 Frame parentFrame
           
 Hashtable<String,Component> registeredComponentWindows
           
 ArrayList<Component> registeredViewerControls
           
 double[] scaleLimits
           
 String secondSOMName
           
 AbstractSelectionPanel selectionPanel
           
 boolean shiftOverlappingInputs
           
 SOMInputReader somInputReader
           
static SOMViewerProperties somViewerProperties
           
 int[] thresholdInputPercentage
           
 
Constructor Summary
CommonSOMViewerStateData()
           
CommonSOMViewerStateData(CommonSOMViewerStateData other)
           
CommonSOMViewerStateData(Frame viewer)
           
CommonSOMViewerStateData(SOMViewer viewer, int width)
           
 
Method Summary
 String getClassPiechartMode()
           
 JFileChooser getFileChooser()
           
static CommonSOMViewerStateData getInstance()
           
 MapDetailPanel getMapDetailPanel()
           
 SOMViewer getSOMViewer()
           
 SOMViewerProperties getSOMViewerProperties()
           
 void registerComponentWindow(Component component, String name)
           
 void setClassPiechartMode(String classPiechartMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static CommonSOMViewerStateData instance

fileNamePrefix

public static String fileNamePrefix

fileNameSuffix

public static String fileNameSuffix

secondSOMName

public String secondSOMName

currentVariant

public int currentVariant

fileChooser

public JFileChooser fileChooser

MimeTypes

public static MIMETypes MimeTypes

registeredViewerControls

public ArrayList<Component> registeredViewerControls

registeredComponentWindows

public Hashtable<String,Component> registeredComponentWindows

inputDataObjects

public SharedSOMVisualisationData inputDataObjects

somInputReader

public SOMInputReader somInputReader

colorClusters

public boolean colorClusters

labelsWithValues

public boolean labelsWithValues

clusterWithLabels

public int clusterWithLabels

clusterByValue

public double clusterByValue

clusterBorderWidthMagnificationFactor

public float clusterBorderWidthMagnificationFactor

clusterBorderColour

public Color clusterBorderColour

hideUnitDetails

public boolean hideUnitDetails

parentFrame

public Frame parentFrame

growingLayer

public GrowingLayer growingLayer

mapPNode

public MapPNode mapPNode

growingSOM

public GrowingSOM growingSOM

controlElementsWidth

public int controlElementsWidth

thresholdInputPercentage

public int[] thresholdInputPercentage

scaleLimits

public double[] scaleLimits

labelVisibilityMode

public boolean labelVisibilityMode

hitsVisibilityMode

public boolean hitsVisibilityMode

dataVisibilityMode

public boolean dataVisibilityMode

exactUnitPlacement

public boolean exactUnitPlacement

exactUnitPlacementEnabled

public boolean exactUnitPlacementEnabled

shiftOverlappingInputs

public boolean shiftOverlappingInputs

displayInputLinkage

public boolean displayInputLinkage

classPiechartMode

private String classPiechartMode

maxLabelYOffset

public double[] maxLabelYOffset
The maximum yOffset for labels in any of the units. Used to have uniform sizes of the pie-charts in GeneralUnitPNode.


somViewerProperties

public static SOMViewerProperties somViewerProperties

selectionPanel

public AbstractSelectionPanel selectionPanel

numClusters

public int numClusters
Constructor Detail

CommonSOMViewerStateData

public CommonSOMViewerStateData(CommonSOMViewerStateData other)

CommonSOMViewerStateData

public CommonSOMViewerStateData(SOMViewer viewer,
                                int width)

CommonSOMViewerStateData

public CommonSOMViewerStateData(Frame viewer)

CommonSOMViewerStateData

public CommonSOMViewerStateData()
Method Detail

getInstance

public static CommonSOMViewerStateData getInstance()

registerComponentWindow

public void registerComponentWindow(Component component,
                                    String name)

getMapDetailPanel

public MapDetailPanel getMapDetailPanel()

getFileChooser

public JFileChooser getFileChooser()

getSOMViewerProperties

public SOMViewerProperties getSOMViewerProperties()

getSOMViewer

public SOMViewer getSOMViewer()

getClassPiechartMode

public String getClassPiechartMode()

setClassPiechartMode

public void setClassPiechartMode(String classPiechartMode)