public class PCDCanvas
extends org.biolegato.main.DataCanvas
implements org.biopcd.widgets.CloseableWindow
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,org.biopcd.widgets.Widget> |
widgets
List of widgets for the window.
|
ABOUT_MENUITEM, EMPTY_STRING, EXIT_MENUITEM, NAME, properties, serialVersionUID
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
PCDCanvas()
Creates a new instance of BioLegato's BioPCD canvas
|
PCDCanvas(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> importProperties)
Creates a new instance of BioLegato's BioPCD canvas
|
PCDCanvas(java.lang.String name,
java.util.Map<java.lang.String,org.biopcd.widgets.Widget> widgets)
Creates a new instance of BioLegato's BioPCD canvas
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Action for command buttons to close the window.
|
java.awt.Component |
display()
Displays the command parameter window.
|
java.lang.String |
getPluginName()
Deprecated.
vestigial code from a previous BioLegato framework structure.
|
static void |
main(java.lang.String[] args)
Starts BioLegato PCD canvas
|
void |
readFile(java.lang.String format,
java.io.Reader in,
boolean overwrite,
boolean forceall)
Reads data into the canvas
|
void |
writeFile(java.lang.String format,
java.lang.Appendable out,
boolean forceall)
Writes data out from the canvas
|
addMenuHeading, addMenuHeading, createJFrame, error, getJFrame, getProperty, init, message, testNumber, warning
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
protected java.util.Map<java.lang.String,org.biopcd.widgets.Widget> widgets
public PCDCanvas()
public PCDCanvas(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> importProperties)
importProperties
- a list of properties attributes to import into
the canvaspublic PCDCanvas(java.lang.String name, java.util.Map<java.lang.String,org.biopcd.widgets.Widget> widgets)
name
- the name to display in the window's title barwidgets
- the list of variable widgets to associate with the windowpublic java.awt.Component display()
display
in class org.biolegato.main.DataCanvas
public void close()
close
in interface org.biopcd.widgets.CloseableWindow
public java.lang.String getPluginName()
getPluginName
in class org.biolegato.main.DataCanvas
public void readFile(java.lang.String format, java.io.Reader in, boolean overwrite, boolean forceall) throws java.io.IOException
readFile
in interface org.biopcd.parser.PCDIO
format
- the file format to use for parsing the file.in
- the "stream" to read in from.overwrite
- whether to overwrite the currently selected sequences
with the data imported.java.io.IOException
- if an error occurs while readingpublic void writeFile(java.lang.String format, java.lang.Appendable out, boolean forceall) throws java.io.IOException
writeFile
in interface org.biopcd.parser.PCDIO
format
- the file format to use for writing the file.out
- the "stream" to write out to.forceall
- use the entire canvas instead of just its selected
sequences.java.io.IOException
- if an error occurs while writingpublic static void main(java.lang.String[] args)
args
- the command line arguments for BioLegatoCopyright © 2008-2022 University of Manitoba.