jview
Class JBorderFrame

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
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, BorderLabels, Displayable, Initializable, PropertyAware, PropertyComposed
Direct Known Subclasses:
JAnalyserToFit, JDataModelFrame, JExpressionFrame, JOpenFrame

public abstract class JBorderFrame
extends JConfirmExitFrame
implements PropertyComposed, Initializable, Displayable, BorderLabels

A generic class that is suitable for GUI that want to lay out their individual components in a BorderLayout with a menu bar.

See Also:
Serialized Form

Nested Class Summary
static class JBorderFrame.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  Action about
          The about action.
private  List<DataAnalysing> dataanalysers
          My data analysers.
static String DATACLEANSE
          This property is fired if cleansing of data references is requested.
private static String DEFABOUTURL
          The default url for the about button.
private static String DEFACTIONCLASS
          The default class name for actions.
private static String DEFAIPLOGO
          The default AIP logo resource.
private static int DEFBIGGERSTRUT
          A general purpose lesser strut.
private static int DEFEASTALIGNMENT
          The general x-alignment value for east, top-to-bottom items.
private static Dimension DEFHELPSIZE
          The height & wisth of the help dialog in pixel.
private static int DEFLESSERSTRUT
          A general purpose lesser strut.
private static int DEFNORTHALIGNMENT
          The general y-alignment value for north, left-to-right items.
private static String DEFRESOURCEBUNDLES
          The resource bundles for localized labels and text.
private static int DEFSOUTHALIGNMENT
          The general y-alignment value for north, left-to-right items.
private static String DEFURLRESOURCES
          The default resources.
private static int DEFWESTALIGNMENT
          The general x-alignment value for west, top-to-bottom items.
private  boolean fired
          Gets true, if we have fired a MODELFITTER.
private  String fitlabel
          If we have active model fitters, they change this label.
private  Map<String,ModelFitting> fittings
          My action-less model fitters.
private  PropertyBearing info
          My properties, composed from a PropertyContainer.
static String KEY_ABOUTURL
          The aip logo as an image file.
static String KEY_ACTIONCLASS
          The class that should be used if items are actions.
static String KEY_AIPLOGO
          The aip logo as an image file.
static String KEY_BIGGERSTRUT
          A general-purpose bigger strut for separating items.
static String KEY_DATAANALYSER
          All known analysers in that frame.
static String KEY_EASTALIGNMENT
          The general x-alignment value for east, top-to-ottom items.
static String KEY_FITTERS
          All known model fitter in that frame.
static String KEY_FITTERTIPS
          All known fitter tooltips in that frame, only for button view.
static String KEY_HELPSIZE
          The pixel dimension of help dialogs.
static String KEY_LESSERSTRUT
          A general-purpose lesser strut for separating items.
static String KEY_NOLOGO
          If this key points to true, the AIP logo is suppressed.
static String KEY_NORTHALIGNMENT
          The general y-alignment value for north, left-to-right items.
static String KEY_SOUTHALIGNMENT
          The general y-alignment value for north, left-to-right items.
static String KEY_WESTALIGNMENT
          The general x-alignment value for west, top-to-bottom items.
static String MODELFITTER
          This property is fired on fitter changes.
private  JStatusField status
          My status panel.
 
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
JBorderFrame(Map<String,String> prop)
          Constructs a generic peripheral from a property container.
JBorderFrame(PropertyBearing prop)
          Constructs a generic peripheral from a property container.
 
Method Summary
protected  void analyserListenTo(JComponent c)
          Adds the list of analysers to the data canvas.
private static Container createBox(int axis, int align, int afill, List<?> all, Class<?> action)
          Creates a box using the specified layout direction.
static JButton createButton(String text, Icon icon, String command, String tooltip)
          Creates a new button, set the command if specified and the tooltip
static JCheckBox createCheckBox(String text, Icon icon, String command, String tooltip)
          Creates a new button, set the command if specified and the tooltip
protected  boolean createDataAnalysers()
          We create the data anlysers here by listing through the KEY_DATAANALYSER property and using each entry as a resource for a DataAnlysing class.
protected  boolean createFitters()
          We create the anlysers here by propertizing through the #KEY_ANALYSER property and using each value entry as a resource for a Anlyser class.
static Action createHelp(PropertyBearing i, String label, String acc, String url, Icon icon)
          Creates a standard help action with a label, a accelerator and an icon.
static JLabel createLabel(String text, Icon icon, String tooltip)
          Creates a new button, set the command if specified and the tooltip
static JButton createLocalizedButton(PropertyBearing info, String textkey, Icon icon, String command, String tipkey)
          Creates a localized button, scanning the resource bundle for the appropriate keys.
static JCheckBox createLocalizedCheckBox(PropertyBearing info, String textkey, Icon icon, String command, String tipkey)
          Creates a localized button, scanning the resource bundle for the appropriate keys.
 Action createLocalizedHelp(PropertyBearing info, String labelkey, String acckey, String url, Icon icon)
          Creates a localized help.
static JLabel createLocalizedLabel(PropertyBearing info, String textkey, Icon icon, String tipkey)
          Creates a localized button, scanning the resource bundle for the appropriate keys.
protected  JStatusField createStatus()
          Creates the status field or a subclass of it.
protected  Action getAboutAction()
          Returns an action that pops up an about dialog.
 ModelFitting getActiveFit()
          Gets the currently selected analyser.
 int getBiggerStrut()
          For layout purposes get the size of a bigger strut.
protected  List<Object> getBottomItems()
          Returns the bottom.
private  Box getBoxAt(Object constraint)
          We can try to retrieve the box at the given location.
 PropertyBearing getComposedProperties()
          Returns the PropertyBearings this frame refers to.
 List<DataAnalysing> getDataAnalysers()
          Returns the list of possible analysers for this frame.
 ButtonGroup getFitterButtonGroup()
          Creates a radio button group out of the fitting mechanisms.
 JComboBox getFitterComboBox()
          Creates a combo box out of the fitting mechanisms.
 Icon getIcon()
          The default implementation returns null here.
protected  List<Object> getLeftItems()
          Returns the list of items to add to the west box.
 int getLesserStrut()
          For layout purposes get the size of a lesser strut.
 Map<String,ModelFitting> getModelFittings()
          Returns a mapping of names of analysers to analysers.
 Component getRepresentation()
          The default implementation returns null here.
protected  List<Object> getRightItems()
          Returns the list of actions where buttons below the AIP logo should be created.
protected  JStatusField getStatusField()
          Returns the status field.
protected  List<Object> getTopItems()
          Returns the list of items to add to the north box.
protected  boolean hasFired()
          Returns the fired flag.
 void init()
          Initializes the frame.
protected static void printAlignment(Component c, String name)
          For testing, this prints out the alignment of a component.
protected static void setAlignment(JComponent c, float x, float y)
           
 void setComposedProperties(PropertyBearing prop)
          Sets a PropertyBearing object as a composite of the canvas.
protected  void setFired(boolean virgin)
          Sets the fired flag.
 
Methods inherited from class jview.JConfirmExitFrame
disposeAndExit
 
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

DATACLEANSE

public static final String DATACLEANSE
This property is fired if cleansing of data references is requested.

See Also:
Constant Field Values

MODELFITTER

public static final String MODELFITTER
This property is fired on fitter changes.

See Also:
Constant Field Values

KEY_AIPLOGO

public static final String KEY_AIPLOGO
The aip logo as an image file.

See Also:
Constant Field Values

KEY_HELPSIZE

public static final String KEY_HELPSIZE
The pixel dimension of help dialogs.

See Also:
Constant Field Values

KEY_ABOUTURL

public static final String KEY_ABOUTURL
The aip logo as an image file.

See Also:
Constant Field Values

KEY_EASTALIGNMENT

public static final String KEY_EASTALIGNMENT
The general x-alignment value for east, top-to-ottom items.

See Also:
Constant Field Values

KEY_WESTALIGNMENT

public static final String KEY_WESTALIGNMENT
The general x-alignment value for west, top-to-bottom items.

See Also:
Constant Field Values

KEY_NORTHALIGNMENT

public static final String KEY_NORTHALIGNMENT
The general y-alignment value for north, left-to-right items.

See Also:
Constant Field Values

KEY_SOUTHALIGNMENT

public static final String KEY_SOUTHALIGNMENT
The general y-alignment value for north, left-to-right items.

See Also:
Constant Field Values

KEY_LESSERSTRUT

public static final String KEY_LESSERSTRUT
A general-purpose lesser strut for separating items.

See Also:
Constant Field Values

KEY_BIGGERSTRUT

public static final String KEY_BIGGERSTRUT
A general-purpose bigger strut for separating items.

See Also:
Constant Field Values

KEY_DATAANALYSER

public static final String KEY_DATAANALYSER
All known analysers in that frame. If non-null shown at bottom.

See Also:
Constant Field Values

KEY_FITTERS

public static final String KEY_FITTERS
All known model fitter in that frame.

See Also:
Constant Field Values

KEY_FITTERTIPS

public static final String KEY_FITTERTIPS
All known fitter tooltips in that frame, only for button view.

See Also:
Constant Field Values

KEY_ACTIONCLASS

public static final String KEY_ACTIONCLASS
The class that should be used if items are actions.

See Also:
Constant Field Values

KEY_NOLOGO

public static final String KEY_NOLOGO
If this key points to true, the AIP logo is suppressed.

See Also:
Constant Field Values

DEFAIPLOGO

private static final String DEFAIPLOGO
The default AIP logo resource.

See Also:
Constant Field Values

DEFURLRESOURCES

private static final String DEFURLRESOURCES
The default resources.

See Also:
Constant Field Values

DEFRESOURCEBUNDLES

private static final String DEFRESOURCEBUNDLES
The resource bundles for localized labels and text.

See Also:
Constant Field Values

DEFHELPSIZE

private static final Dimension DEFHELPSIZE
The height & wisth of the help dialog in pixel.


DEFEASTALIGNMENT

private static final int DEFEASTALIGNMENT
The general x-alignment value for east, top-to-bottom items.

See Also:
Constant Field Values

DEFWESTALIGNMENT

private static final int DEFWESTALIGNMENT
The general x-alignment value for west, top-to-bottom items.

See Also:
Constant Field Values

DEFNORTHALIGNMENT

private static final int DEFNORTHALIGNMENT
The general y-alignment value for north, left-to-right items.

See Also:
Constant Field Values

DEFSOUTHALIGNMENT

private static final int DEFSOUTHALIGNMENT
The general y-alignment value for north, left-to-right items.

See Also:
Constant Field Values

DEFLESSERSTRUT

private static final int DEFLESSERSTRUT
A general purpose lesser strut.

See Also:
Constant Field Values

DEFBIGGERSTRUT

private static final int DEFBIGGERSTRUT
A general purpose lesser strut.

See Also:
Constant Field Values

DEFABOUTURL

private static final String DEFABOUTURL
The default url for the about button.

See Also:
Constant Field Values

DEFACTIONCLASS

private static final String DEFACTIONCLASS
The default class name for actions.

See Also:
Constant Field Values

status

private JStatusField status
My status panel.


dataanalysers

private List<DataAnalysing> dataanalysers
My data analysers.


fittings

private Map<String,ModelFitting> fittings
My action-less model fitters.


fitlabel

private String fitlabel
If we have active model fitters, they change this label.


fired

private boolean fired
Gets true, if we have fired a MODELFITTER.


info

private PropertyBearing info
My properties, composed from a PropertyContainer.


about

private Action about
The about action.

Constructor Detail

JBorderFrame

public JBorderFrame(Map<String,String> prop)
Constructs a generic peripheral from a property container.


JBorderFrame

public JBorderFrame(PropertyBearing prop)
Constructs a generic peripheral from a property container.

Method Detail

setComposedProperties

public void setComposedProperties(PropertyBearing prop)
Sets a PropertyBearing object as a composite of the canvas. Defaults the necessary parameter.

Specified by:
setComposedProperties in interface PropertyAware

getComposedProperties

public PropertyBearing getComposedProperties()
Returns the PropertyBearings this frame refers to.

Specified by:
getComposedProperties in interface PropertyComposed

init

public void init()
Initializes the frame. At this stage, daughter classes must be able to deliver the central component they want to display. Additionally, subclasses that want to add menus to the menubar, should override the #getMenus method that in the basic version delivers a 'File' menu that allows connecting/disconnecting/save/print/exit. If additional help is needed, the #getHelpActions method must be overridn which delivers an empty list in the basic version. Right to the main area, where the #deliverComponent return is placed, the AIP-logo is displayed. Underneath the buttons are placed delivered by the #getRightActions method, which in the basic version returns an empty list.

Specified by:
init in interface Initializable

getLesserStrut

public int getLesserStrut()
For layout purposes get the size of a lesser strut.


getBiggerStrut

public int getBiggerStrut()
For layout purposes get the size of a bigger strut.


getRepresentation

public Component getRepresentation()
The default implementation returns null here.

Specified by:
getRepresentation in interface Displayable

getIcon

public Icon getIcon()
The default implementation returns null here.

Specified by:
getIcon in interface Displayable

getBoxAt

private Box getBoxAt(Object constraint)
We can try to retrieve the box at the given location.

Parameters:
constrain - BorderLayout.NORTH, EAST, SOUTH, WEST.

createBox

private static Container createBox(int axis,
                                   int align,
                                   int afill,
                                   List<?> all,
                                   Class<?> action)
Creates a box using the specified layout direction.

Parameters:
axis - The orientation of the box
xalign - Common x-alignment for all components added.
yalign - Common y-alignment for all components added.
list - The non-null list of components or actions to add.

getStatusField

protected JStatusField getStatusField()
Returns the status field.


getAboutAction

protected Action getAboutAction()
Returns an action that pops up an about dialog. If called repeatedly, identical actions are returned.


analyserListenTo

protected void analyserListenTo(JComponent c)
Adds the list of analysers to the data canvas. If the anaylser is also a property listener, it is added here, too.


getFitterComboBox

public JComboBox getFitterComboBox()
Creates a combo box out of the fitting mechanisms. If a new fitter is selected, a #MODELLFITTER property change is fired.


getFitterButtonGroup

public ButtonGroup getFitterButtonGroup()
Creates a radio button group out of the fitting mechanisms. If a new fitter is selected, a #MODELLFITTER property change is fired.


getRightItems

protected List<Object> getRightItems()
Returns the list of actions where buttons below the AIP logo should be created. Per default we return null, if we have no model fitting instances. Otherwise, the model fitters are packed into a combo box and returned here.


getActiveFit

public ModelFitting getActiveFit()
Gets the currently selected analyser.


getTopItems

protected List<Object> getTopItems()
Returns the list of items to add to the north box.


getLeftItems

protected List<Object> getLeftItems()
Returns the list of items to add to the west box.


createStatus

protected JStatusField createStatus()
Creates the status field or a subclass of it.


createDataAnalysers

protected boolean createDataAnalysers()
We create the data anlysers here by listing through the KEY_DATAANALYSER property and using each entry as a resource for a DataAnlysing class. Normally, this method is called once at the beginning of the initialization process (as the first item in the init() method). This implies that the analysers are ready when getRepresentation() is called.

As soon as it is called, all created analysers should be retrieved with getDataAnalysers().

Returns:
True, if at least a single analyser was created.

createFitters

protected boolean createFitters()
We create the anlysers here by propertizing through the #KEY_ANALYSER property and using each value entry as a resource for a Anlyser class. Normally, this method is called once at the beginning of the initialization process (as the first item in the init() method). This implies that the analysers are ready when getRepresentation() is called.

As soon as it is called, all created analysers should be retrieved with #getAnalysers.

Returns:
True, if at least a single analyser was created.

hasFired

protected boolean hasFired()
Returns the fired flag.


setFired

protected void setFired(boolean virgin)
Sets the fired flag.


getDataAnalysers

public List<DataAnalysing> getDataAnalysers()
Returns the list of possible analysers for this frame. Is accessible after a call to #createAnalysers, which in due curse happens right after the entry to the init(), before the getRepresentation() call.


getModelFittings

public Map<String,ModelFitting> getModelFittings()
Returns a mapping of names of analysers to analysers.


getBottomItems

protected List<Object> getBottomItems()
Returns the bottom. If we have analyser, i.e. #getAnalysers returns In this version it only consits of a status field, which is also intialized here.


createLocalizedLabel

public static JLabel createLocalizedLabel(PropertyBearing info,
                                          String textkey,
                                          Icon icon,
                                          String tipkey)
Creates a localized button, scanning the resource bundle for the appropriate keys.


createLabel

public static JLabel createLabel(String text,
                                 Icon icon,
                                 String tooltip)
Creates a new button, set the command if specified and the tooltip


createLocalizedButton

public static JButton createLocalizedButton(PropertyBearing info,
                                            String textkey,
                                            Icon icon,
                                            String command,
                                            String tipkey)
Creates a localized button, scanning the resource bundle for the appropriate keys.


createButton

public static JButton createButton(String text,
                                   Icon icon,
                                   String command,
                                   String tooltip)
Creates a new button, set the command if specified and the tooltip


createLocalizedCheckBox

public static JCheckBox createLocalizedCheckBox(PropertyBearing info,
                                                String textkey,
                                                Icon icon,
                                                String command,
                                                String tipkey)
Creates a localized button, scanning the resource bundle for the appropriate keys.


createCheckBox

public static JCheckBox createCheckBox(String text,
                                       Icon icon,
                                       String command,
                                       String tooltip)
Creates a new button, set the command if specified and the tooltip


createLocalizedHelp

public Action createLocalizedHelp(PropertyBearing info,
                                  String labelkey,
                                  String acckey,
                                  String url,
                                  Icon icon)
Creates a localized help.


createHelp

public static Action createHelp(PropertyBearing i,
                                String label,
                                String acc,
                                String url,
                                Icon icon)
Creates a standard help action with a label, a accelerator and an icon. The action command is used as an url that contains a html page that is displayed if the help item is invoked.


printAlignment

protected static void printAlignment(Component c,
                                     String name)
For testing, this prints out the alignment of a component.


setAlignment

protected static void setAlignment(JComponent c,
                                   float x,
                                   float y)