|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JAbstractAnalyser
jview.JStatisticAnalyser
public class JStatisticAnalyser
A statistic analyser listens to a data set and displays the average of the y-data plus the deviation of it on-line in its displayable, which is an enabled Button. If the button is pressed, more statistic values are displayed in a separate dialog. We listen to viewport changes, too.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static String |
DEFANALYSER
The analyser. |
private static DecimalFormat |
DEFFORMAT
Default formatter for text on button. |
private static int |
DEFINDICES
Default index is 1. |
private static boolean |
DEFVIEWPORTLISTEN
This is true, we listen to viewport changes. |
private JButton |
display
My display. |
private List<Integer> |
index
My indices, parsed from KEY_INDICES. |
static String |
KEY_AVERAGEFORMAT
The format string for the average of the first index. |
static String |
KEY_INDEXNAMES
If given, this list is used for a more convenient variable name. |
static String |
KEY_INDICES
The list of indices in the data set where statistic act on. |
static String |
KEY_RMSFORMAT
The format string for the sigma of the first index. |
| 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 | |
|---|---|
JStatisticAnalyser(Map<String,String> prop)
Constructs a new statistic analyser, setting the analyser property to DEFANALYSER. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Pops up a window with additional information on all sets. |
Action |
getAnalyserAction()
We have no action, as we only want to be displayable as a button. |
Component |
getRepresentation()
Our representation is a button, which displays the average and the sigma of the first index given in indices on its label. |
void |
init()
We create our button. |
protected void |
setAnalyserInput(VectorG[] in)
We change the numbers displayed on the button. |
private void |
updateText(double av,
double sig)
Updates the text displayed on the button. |
| 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 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 |
|---|
public static final String KEY_INDICES
public static final String KEY_INDEXNAMES
public static final String KEY_AVERAGEFORMAT
public static final String KEY_RMSFORMAT
private static final String DEFANALYSER
private static final boolean DEFVIEWPORTLISTEN
private static final int DEFINDICES
private static final DecimalFormat DEFFORMAT
private JButton display
private List<Integer> index
KEY_INDICES.
| Constructor Detail |
|---|
public JStatisticAnalyser(Map<String,String> prop)
DEFANALYSER.
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class JAbstractAnalyserpublic Action getAnalyserAction()
getAnalyserAction in interface DataAnalysingpublic Component getRepresentation()
getRepresentation in interface Displayableprotected void setAnalyserInput(VectorG[] in)
setAnalyserInput in class JAbstractAnalyserpublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListener
private void updateText(double av,
double sig)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||