public abstract class DataCanvas
extends javax.swing.JApplet
implements org.biopcd.parser.PCDIO
This class is used to generate the main window, do all startup processing, and run the program. This class also contains most of the utility functions.
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
javax.swing.JMenuItem |
ABOUT_MENUITEM
The menu item for BioLegato's "About..."
|
static java.lang.String |
EMPTY_STRING
This constant stores an empty string (to avoid recreation)
|
javax.swing.JMenuItem |
EXIT_MENUITEM
The menu item for BioLegato's "Exit..."
|
java.lang.String |
NAME
This constant stores the program's name
|
protected java.util.Properties |
properties
Stores the properties for BioLegato.
|
static long |
serialVersionUID
This constant is used for Serialization
|
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
DataCanvas()
Constructs a default instance of a DataCanvas
|
DataCanvas(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> importProperties)
Constructs a new instance of a DataCanvas, importing a properties
map to overwrite default program properties.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenu |
addMenuHeading(int order,
java.lang.String name)
Adds a menu heading (JMenu) to our menu (BLMenu).
|
javax.swing.JMenu |
addMenuHeading(java.lang.String name)
Adds a menu heading (JMenu) to our menu (BLMenu).
|
void |
createJFrame()
Used to create a JFrame containing the current canvas
|
abstract java.awt.Component |
display()
Displays the main pane of the data canvas
|
void |
error(java.lang.String message,
java.lang.String location)
Sends an error message to BioLegato's standard err.
|
javax.swing.JFrame |
getJFrame()
Provides access for other classes to the main program window JFrame
object.
|
abstract java.lang.String |
getPluginName()
Deprecated.
vestigial code from a previous BioLegato framework structure.
|
java.lang.String |
getProperty(java.lang.String property)
Retrieves individual settings for BioLegato.
|
void |
init()
Starts BioLegato Applet version.
|
void |
message(java.lang.String message,
java.lang.String location)
Sends a message to BioLegato's standard out.
|
static boolean |
testNumber(java.lang.String test)
Checks if a character array is all digits.
|
void |
warning(java.lang.String message,
java.lang.String location)
Sends an warning message to BioLegato's standard err.
|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String EMPTY_STRING
public static final long serialVersionUID
public final javax.swing.JMenuItem ABOUT_MENUITEM
public final javax.swing.JMenuItem EXIT_MENUITEM
protected java.util.Properties properties
Stores the properties for BioLegato.
Please see the manpage (within the jar, manpage.txt) for a list of available properties.
This properties class will read properties files from the directory containing BioLegato, the user directory and finally the directory BioLegato was launched from. Please note that this behaviour can be changed using the BL_PROPERTIES environment variable.
NOTE: for path properties BioLegato will replace all $'s with the appropriate environment variables if set.
public java.lang.String NAME
public DataCanvas()
public DataCanvas(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> importProperties)
importProperties
- a map containing the properties to overwritepublic void init()
init
in class java.applet.Applet
public java.lang.String getProperty(java.lang.String property)
property
- the property key to retrieve the value forpublic javax.swing.JFrame getJFrame()
public final javax.swing.JMenu addMenuHeading(java.lang.String name)
name
- the name of the menu headingpublic javax.swing.JMenu addMenuHeading(int order, java.lang.String name)
order
- the position to place the menu tagname
- the name of the menu headingpublic void error(java.lang.String message, java.lang.String location)
message
- the error message to send.location
- the location the error occurred.public void warning(java.lang.String message, java.lang.String location)
message
- the warning message to send.location
- the location the error occurred.public void message(java.lang.String message, java.lang.String location)
message
- the message to send.location
- the location the message was sent from.public static boolean testNumber(java.lang.String test)
test
- the character array to test.public final void createJFrame()
public abstract java.awt.Component display()
public abstract java.lang.String getPluginName()
Copyright © 2008-2022 University of Manitoba.