jview
Class JVisualizingAnalyser

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by jview.AbstractDisplayable
                  extended by jview.JAbstractAnalyser
                      extended by jview.JAsynchronAnalyser
                          extended by jview.JEditableAnalyser
                              extended by jview.JVisualizingAnalyser
All Implemented Interfaces:
ComponentListener, PropertyChangeListener, Cloneable, EventListener, DataAnalysing, DataObserver, Displayable, BeanSupport, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class JVisualizingAnalyser
extends JEditableAnalyser
implements ExitCleaning

A visualizing analyser is an asynchronous analyser that has a KEY_VISUALIZE assigned to it. This object must be a DataDisplaying instance. Whenever data was analysed, the parental class calls the asynchronous ready(vec_math.VectorG[], vec_math.VectorG[]) method. Here we visualize the data using the assigned analyser and pass this analysed data set to the visualizer. Subclasses that need additional action on ready(vec_math.VectorG[], vec_math.VectorG[]) must override this method.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
static String KEY_EDITABLE
          The properties that are editable from the underlying anaylser.
static String KEY_VISUALIZE
          The properties of the DataDisplaying instance.
private  DataDisplaying visual
          The data displayconstructed out of KEY_VISUALIZE.
 
Fields inherited from class jview.JEditableAnalyser
KEY_EDITTITLE
 
Fields inherited from class jview.JAsynchronAnalyser
KEY_ANALYSERNAME, KEY_PROGRESSMESSAGE, KEY_PROGRESSNOTE
 
Fields inherited from class jview.JAbstractAnalyser
KEY_ALLOW, KEY_ANALYSER, KEY_ANALYSESETS, KEY_BASELOG, KEY_BASEPLAIN, KEY_BASEPOWER, KEY_BASERANDOM, KEY_BASESINUS, KEY_BASESQRT, KEY_BASETAN, KEY_DENY, KEY_EXECFACTOR, KEY_EXECOFFSET, KEY_TRANSFERCLASSES, KEY_TRANSFERINIT, KEY_VIEWPORTLISTEN
 
Fields inherited from class jview.AbstractDisplayable
KEY_COMPONENTNAME, KEY_ICON, KEY_INSETS
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface jview.DataAnalysing
ANALYSERINPUT, ANALYSERMETA, ANALYSERPROCESS, ANALYSERVISUAL, ATTACHED
 
Fields inherited from interface util.BeanSupport
CASTING
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
JVisualizingAnalyser(Map<String,String> info)
          Pure chains.
 
Method Summary
 void exit()
          If the visual component is a property change listener, we remove it.
protected  Map<String,String> getEditableProperties()
          Different period searching algorithms have different properties to adjust.
 DataDisplaying getVisualizer()
          Returns the visualizer.
 void init()
          Creates the visualizer if appropriate.
protected  void ready(VectorG[] in, VectorG[] out)
          If we are ready, we further process the data to get the visualization.
 
Methods inherited from class jview.JEditableAnalyser
editProperties, metaAction
 
Methods inherited from class jview.JAsynchronAnalyser
getAnalyserAction, getAnalyserComponent, getRepresentation
 
Methods inherited from class jview.JAbstractAnalyser
addPropertyChangeListener, addPropertyChangeListener, componentHidden, componentMoved, componentResized, componentShown, dataChanged, estimateExecutionTime, estimateExecutionTime, firePropertyChange, getAnalysedSets, getAnalyser, getAnalyserInput, getDataTagging, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setAnalyserInput, setDataTagging
 
Methods inherited from class jview.AbstractDisplayable
getComponentName, getIcon, getIcon
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface jview.Displayable
getIcon
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 

Field Detail

KEY_VISUALIZE

public static final String KEY_VISUALIZE
The properties of the DataDisplaying instance.

See Also:
Constant Field Values

KEY_EDITABLE

public static final String KEY_EDITABLE
The properties that are editable from the underlying anaylser.

See Also:
Constant Field Values

visual

private DataDisplaying visual
The data displayconstructed out of KEY_VISUALIZE.

Constructor Detail

JVisualizingAnalyser

public JVisualizingAnalyser(Map<String,String> info)
Pure chains.

Method Detail

init

public void init()
Creates the visualizer if appropriate.

Specified by:
init in interface Initializable
Overrides:
init in class JAsynchronAnalyser

exit

public void exit()
If the visual component is a property change listener, we remove it.

Specified by:
exit in interface ExitCleaning

ready

protected void ready(VectorG[] in,
                     VectorG[] out)
If we are ready, we further process the data to get the visualization. This visualization data is then passed to the KEY_VISUALIZE instance. If no visualizer is present or the output data of the analyser is null, we return prior to calling visualize on the analyser. Otherwise, visualize is called and passed to the visualizer even if null.

Specified by:
ready in class JAsynchronAnalyser

getVisualizer

public DataDisplaying getVisualizer()
Returns the visualizer. Is available after init().


getEditableProperties

protected Map<String,String> getEditableProperties()
Different period searching algorithms have different properties to adjust. We rely on the KEY_EDITABLE property to get these.

Specified by:
getEditableProperties in class JEditableAnalyser