|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jview.JExitFrame
jview.JConfirmExitFrame
jview.JBorderFrame
jview.JAnalyserToFit
jview.JExtremaSelect
public class JExtremaSelect
A click selector displays data, normally from an analyser's visualize output,
and allows the user to click within the data set to select a local minimum or
maximum. Depending on its #KEY_SLIDEMAXIMUM property it either slides
up to the maximum or down to the minimum of the displayed data set, starting
from the users click point. If a maximum could be found, a property change
event is issued.
| Nested Class Summary | |
|---|---|
private class |
JExtremaSelect.MouseSlider
The mouse listener on the power canvas that grabs the position and calculates the period, which is then passed to the expression canvas, that displays the phase plot. |
static class |
JExtremaSelect.Show
Class to create the frame and display it. |
| 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 DataCanvasProviding |
central
My central display. |
private static boolean |
DEFSEARCHMAXIMUM
Fourier application have a true here, phase dispersion, false. |
private static int |
DEFSEARCHSMOOTH
Default we search 10 closest points to min/max. |
static String |
EXTREMASELECT
The name of the property fired if a data model was changed. |
private PropertyChangeListener |
handler
If we have an instance that handles the clicks, vulgo extrmaselect. |
static String |
KEY_DATACANVAS
The properties of my central canvas. |
static String |
KEY_EXTREMAHANDLE
The properties of the click handler. |
static String |
KEY_SEARCHMAXIMUM
If true, we search a maximum, othwerwise a minimum. |
static String |
KEY_SEARCHSMOOTH
The number of parabolas to fit for maximum estimation. |
private VectorG[] |
power
And the visualized data. |
| Fields inherited from class jview.JAnalyserToFit |
|---|
MODELDATA |
| 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 util.BeanSupport |
|---|
CASTING |
| 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 | |
|---|---|
JExtremaSelect(LocalizedSupplying prop)
Constructs an analyser frame. |
|
| Method Summary | |
|---|---|
boolean |
displayData(VectorG[] visual)
We display the data from the analyser. |
Component |
getRepresentation()
Returns the representation of the central compoentn, which is my data canvas. |
protected List<Object> |
getRightItems()
Returns the list of actions where buttons below the AIP logo should be created. |
void |
init()
After super init, we have access to the model fitters. |
private void |
offerProperties(PropertyChangeListener with)
We add the provided listener with the properties I provide: MODELFITTER MODELDATA and EXTREMASELECT. |
void |
setComposedProperties(LocalizedSupplying prop)
Sets a LocalizedSupplying object as a composite of the canvas. |
| Methods inherited from class jview.JAnalyserToFit |
|---|
getBottomItems, isInterested, propertyChange |
| Methods inherited from class jview.JConfirmExitFrame |
|---|
disposeAndExit, disposeImmediately |
| Methods inherited from class jview.JExitFrame |
|---|
setVisible |
| 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.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.BeanSupport |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String EXTREMASELECT
public static final String KEY_EXTREMAHANDLE
public static final String KEY_DATACANVAS
public static final String KEY_SEARCHMAXIMUM
public static final String KEY_SEARCHSMOOTH
private static final boolean DEFSEARCHMAXIMUM
private static final int DEFSEARCHSMOOTH
private PropertyChangeListener handler
private DataCanvasProviding central
private VectorG[] power
| Constructor Detail |
|---|
public JExtremaSelect(LocalizedSupplying prop)
| Method Detail |
|---|
public void setComposedProperties(LocalizedSupplying prop)
LocalizedSupplying object as a composite of the canvas.
Defaults the necessary parameter.
setComposedProperties in interface LocalizedAwaresetComposedProperties in class JBorderFramepublic void init()
JVisualizingAnalyser, thus
we can forward this to the listeners. This is done in my
#propertyChanged method. On the other hand, if the user selects
an extremum, there will probably be a listener that wants to act on that.
This instance is described with #KEY_EXTREMAHANDLER. This handler
is created here. Per definition, it must be a property listener to get
the extrema select from the user. If it is also listening to FITTING
and/or DATA changes, it is also registered here.
init in interface Initializableinit in class JBorderFrameprivate void offerProperties(PropertyChangeListener with)
public Component getRepresentation()
getRepresentation in interface DisplayablegetRepresentation in class JBorderFrameprotected List<Object> getRightItems()
getRightItems in class JBorderFramepublic boolean displayData(VectorG[] visual)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||