jview
Class JVisualizingAnalyser
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JAbstractAnalyser
jview.JAsynchronAnalyser
jview.JEditableAnalyser
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.
| 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 |
|
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.JAbstractAnalyser |
addPropertyChangeListener, addPropertyChangeListener, componentHidden, componentMoved, componentResized, componentShown, dataChanged, estimateExecutionTime, estimateExecutionTime, firePropertyChange, getAnalysedSets, getAnalyser, getAnalyserInput, getDataTagging, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setAnalyserInput, setDataTagging |
| 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 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 |
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.
JVisualizingAnalyser
public JVisualizingAnalyser(Map<String,String> info)
- Pure chains.
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