jview
Class JPhaseFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by jview.JExitFrame
                          extended by jview.JConfirmExitFrame
                              extended by jview.JBorderFrame
                                  extended by jview.JExpressionFrame
                                      extended by jview.JPhaseFrame
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, BorderLabels, Displayable, Initializable, LocalizedAware, LocalizedComposed

public class JPhaseFrame
extends JExpressionFrame

A phase frame uses a special expression that transforms input data time into phase. This is done by using the period spinner. If the model fit should be displayed, a linear regression to the data is performed that allows the determination of the period and the time zero point.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jview.JExpressionFrame
JExpressionFrame.Show
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  DataAnalysing data
          The data source for the fit analyser.
private static int DEFFITCOUNT
          Number of fit points.
private static double DEFFITEND
          Starting point of default fits.
private static double DEFFITSTART
          Starting point of default fits.
private static long DEFOFFLINETIME
          Default offline time.
private static boolean DEFSHOWFIT
          Per default, we show the fit.
private static boolean DEFSHOWMODEL
          Per default, we do not show the model.
private static double DEFSIGTOSTEP
          Default conversion from sigma of parameter to step in spinner.
private  Analyser fit
          The fit analyser.
static String FIT
          The name of the fit set.
static String KEY_FITCOUNT
          The number of pixels in the fit.
static String KEY_FITEND
          The end value for the fits.
static String KEY_FITSTART
          The starting value for the fits.
static String KEY_OFFLINETIME
          Maximum time for the period fit to be calculated inline.
static String KEY_SHOWFIT
          If true, we add the phase fit.
static String KEY_SHOWMODEL
          If true, we add the phase model.
static String KEY_SIGTOSTEP
          Converts parameter sigma to step in spinners.
static String MODEL
          The name of the model set.
 
Fields inherited from class jview.JExpressionFrame
EQUAL, KEY_ADJUSTABLE, KEY_ADJUSTINIT, KEY_ADJUSTSTEP, KEY_CANVAS, KEY_FIXED, KEY_FIXEDERROR, KEY_FIXEDFORMAT, KEY_FIXEDUNITS
 
Fields inherited from class jview.JBorderFrame
DATACLEANSE, KEY_ABOUTURL, KEY_ACTIONCLASS, KEY_AIPLOGO, KEY_BIGGERSTRUT, KEY_DATAANALYSER, KEY_EASTALIGNMENT, KEY_FITTERS, KEY_FITTERTIPS, KEY_HELPSIZE, KEY_LESSERSTRUT, KEY_NOLOGO, KEY_NORTHALIGNMENT, KEY_SOUTHALIGNMENT, KEY_WESTALIGNMENT, MODELFITTER
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface jview.BorderLabels
KEY_ABOUT, KEY_ABOUTACC, KEY_FILEACCS, KEY_FILEITEMS, KEY_FILEMENU, KEY_FILEMNEMONIC, KEY_HELPMENU, KEY_HELPMNEMONIC, KEY_HELPTITLE, KEY_NOHELP, KEY_NOURLACCESS, KEY_TITLE
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JPhaseFrame(LocalizedSupplying prop)
          Constructs a new phase frame.
 
Method Summary
private  void applyMetaMap(Map.Entry[] meta)
          Tha analyser returned metadata that is an array of mappings.
protected  boolean cache(String name, Number val)
          The update variable is called from the outside.
protected  List<Object> getBottomItems()
          We have no bottom.
 void init()
          We fill the special fit set with a mesh.
private  boolean reanalyse(VectorG[] in)
          The analyser action.
 void setComposedProperties(LocalizedSupplying info)
          Defaults values.
 void setFitAnalyser(Analyser anal)
          Sets the analyser to use.
 void setFitSource(DataAnalysing dsrc)
          Sets the data source for the analyser.
 
Methods inherited from class jview.JExpressionFrame
createCanvas, getData, getRepresentation, getRightItems, getValue, replot, setData, updateCanvas, updateVariable
 
Methods inherited from class jview.JBorderFrame
analyserListenTo, createButton, createCheckBox, createDataAnalysers, createFitters, createHelp, createLabel, createLocalizedButton, createLocalizedCheckBox, createLocalizedHelp, createLocalizedLabel, createLocalizedRadioButton, createRadioButton, createStatus, getAboutAction, getActiveFit, getBiggerStrut, getComposedProperties, getDataAnalysers, getFitterButtonGroup, getFitterComboBox, getIcon, getLeftItems, getLesserStrut, getModelFittings, getStatusField, getTopItems, hasFired, printAlignment, setAlignment, setFired
 
Methods inherited from class jview.JConfirmExitFrame
disposeAndExit, disposeImmediately
 
Methods inherited from class jview.JExitFrame
setVisible
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

FIT

public static final String FIT
The name of the fit set.

See Also:
Constant Field Values

MODEL

public static final String MODEL
The name of the model set.

See Also:
Constant Field Values

KEY_SHOWFIT

public static final String KEY_SHOWFIT
If true, we add the phase fit.

See Also:
Constant Field Values

KEY_SHOWMODEL

public static final String KEY_SHOWMODEL
If true, we add the phase model.

See Also:
Constant Field Values

KEY_FITSTART

public static final String KEY_FITSTART
The starting value for the fits.

See Also:
Constant Field Values

KEY_FITEND

public static final String KEY_FITEND
The end value for the fits.

See Also:
Constant Field Values

KEY_FITCOUNT

public static final String KEY_FITCOUNT
The number of pixels in the fit.

See Also:
Constant Field Values

KEY_SIGTOSTEP

public static final String KEY_SIGTOSTEP
Converts parameter sigma to step in spinners.

See Also:
Constant Field Values

KEY_OFFLINETIME

public static final String KEY_OFFLINETIME
Maximum time for the period fit to be calculated inline.

See Also:
Constant Field Values

DEFSHOWFIT

private static final boolean DEFSHOWFIT
Per default, we show the fit.

See Also:
Constant Field Values

DEFSHOWMODEL

private static final boolean DEFSHOWMODEL
Per default, we do not show the model.

See Also:
Constant Field Values

DEFFITSTART

private static final double DEFFITSTART
Starting point of default fits.

See Also:
Constant Field Values

DEFFITEND

private static final double DEFFITEND
Starting point of default fits.

See Also:
Constant Field Values

DEFFITCOUNT

private static final int DEFFITCOUNT
Number of fit points.

See Also:
Constant Field Values

DEFSIGTOSTEP

private static final double DEFSIGTOSTEP
Default conversion from sigma of parameter to step in spinner.

See Also:
Constant Field Values

DEFOFFLINETIME

private static final long DEFOFFLINETIME
Default offline time.

See Also:
Constant Field Values

data

private DataAnalysing data
The data source for the fit analyser.


fit

private Analyser fit
The fit analyser.

Constructor Detail

JPhaseFrame

public JPhaseFrame(LocalizedSupplying prop)
Constructs a new phase frame. All expressions are known and set.

Method Detail

setComposedProperties

public void setComposedProperties(LocalizedSupplying info)
Defaults values.

Specified by:
setComposedProperties in interface LocalizedAware
Overrides:
setComposedProperties in class JBorderFrame

init

public void init()
We fill the special fit set with a mesh.

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

setFitAnalyser

public void setFitAnalyser(Analyser anal)
Sets the analyser to use.


setFitSource

public void setFitSource(DataAnalysing dsrc)
Sets the data source for the analyser.


getBottomItems

protected List<Object> getBottomItems()
We have no bottom.

Overrides:
getBottomItems in class JBorderFrame

cache

protected boolean cache(String name,
                        Number val)
The update variable is called from the outside. Only if the variable updated is the PhaseRegression.KEY_PERIOD, we additionally update our fit.

Overrides:
cache in class JExpressionFrame
Returns:
True, if updating process has already completed.

reanalyse

private boolean reanalyse(VectorG[] in)
The analyser action.


applyMetaMap

private void applyMetaMap(Map.Entry[] meta)
Tha analyser returned metadata that is an array of mappings. Each mapping that has a string key and points to a number array, is interpreted as an additional variable that should be set.