|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--org.concord.biologica.ui.UIView | +--org.concord.biologica.ui.AllInOneView
This class represents a view which contains and acts as a parent or manager of all of the other views of BioLogica. A script should use this view when they want to give a user an open-ended interface to all of the functionality of BioLogica.
An object of this class will generate the following property change events:
UIProp.BACKGROUND
,
UIProp.FONT
,
UIProp.FOREGROUND
,
PropertyChangeListener
, Serialized FormInner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
static int |
WINDOW_MODE_EXPORT_SPECIES_FILE
Export Species window mode, meaning the file chooser is shown for choosing a species file to export. |
static int |
WINDOW_MODE_IMPORT_SPECIES_FILE
Import Species window mode, meaning the file chooser is shown for choosing a species file to import. |
static int |
WINDOW_MODE_NORMAL
Normal window mode, meaning we have a world open and the normal views can be seen. |
static int |
WINDOW_MODE_OPEN_WORLD_FILE
Open window mode, meaning the file chooser is shown for choosing a world file to open. |
static int |
WINDOW_MODE_SAVE_WORLD_FILE_AS
Save As window mode, meaning the file chooser is shown for choosing a world file to save to. |
static int |
WINDOW_MODE_STARTUP
Startup window mode, meaning we want ALL views visible so they all get the proper look and feel. |
static int |
WINDOW_MODE_WELCOME
Welcome window mode, meaning no world is currently open and we want some text on the screen telling the user to choose New or Open... |
Fields inherited from class org.concord.biologica.ui.UIView |
changes, fontAscent, fontDescent, fontHeight, fontMetrics, preferredHeight, preferredWidth, scrollPane |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AllInOneView()
Creates BioLogica AllInOne view |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
React to actions |
void |
doSelectionOrganismStuff(Organism selectedOrganism)
Do selection organism stuff |
java.io.File |
enforceFileExtension(java.io.File aFile,
java.lang.String anExtension)
Enforce the proper file extension, if possible |
ChromosomeView |
getChromosomeView()
Get the chromosome view |
boolean |
getFileControlsVisible()
Get file controls visible |
boolean |
getMemoryMenuVisible()
Get memory menu visible |
MultipleOrganismView |
getMultipleOrganismView()
Get the multiple organism view |
ObjectPropertiesView |
getObjectPropertiesView()
Get the object properties view |
PedigreeView |
getPedigreeView()
Get the pedigree view |
java.awt.Dimension |
getPreferredSize()
Return the preferred size of this application |
SelectionSet |
getSelectionSet()
Get the current selection set |
SexView |
getSexView()
Get the sex view |
boolean |
getSpeciesPulldownVisible()
Get species pulldown visible |
boolean |
getTreePaneVisible()
Get the tree pane visibility |
TreeView |
getTreeView()
Get the tree view |
void |
itemStateChanged(java.awt.event.ItemEvent event)
Handle combo box item changed events. |
void |
menuCanceled(javax.swing.event.MenuEvent e)
|
void |
menuDeselected(javax.swing.event.MenuEvent e)
|
void |
menuSelected(javax.swing.event.MenuEvent e)
React to menu events |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle property change events |
void |
selectionChanged()
Selection changed notification |
void |
setCurrentWorld(World aWorld)
Set the current world. |
void |
setFileControlsVisible(boolean aVisible)
Set file controls visible |
void |
setFont(java.awt.Font aFont)
Set the font for this view. |
void |
setMemoryMenuVisible(boolean aVisible)
Set memory menu visible |
void |
setSelectionSet(SelectionSet aSelectionSet)
Set the current selection set. |
void |
setSpeciesPulldownVisible(boolean aVisible)
Set species pulldown visible |
void |
setTreePaneVisible(boolean aVisible)
Set the tree pane visibility. |
void |
setWindowMode(int aWindowMode)
Set window mode, updating window appropriately. |
Methods inherited from class org.concord.biologica.ui.UIView |
addPropertyChangeListener, getLocalImage, paintBackground, removePropertyChangeListener, setBackground, setForeground, setScrollPane, toolChanged, updateFont |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.image.ImageObserver |
imageUpdate |
Field Detail |
public static final int WINDOW_MODE_STARTUP
public static final int WINDOW_MODE_WELCOME
public static final int WINDOW_MODE_OPEN_WORLD_FILE
public static final int WINDOW_MODE_SAVE_WORLD_FILE_AS
public static final int WINDOW_MODE_IMPORT_SPECIES_FILE
public static final int WINDOW_MODE_EXPORT_SPECIES_FILE
public static final int WINDOW_MODE_NORMAL
Constructor Detail |
public AllInOneView()
Method Detail |
public boolean getFileControlsVisible()
public void setFileControlsVisible(boolean aVisible)
aVisible
- boolean - new visible of file controlspublic boolean getSpeciesPulldownVisible()
public void setSpeciesPulldownVisible(boolean aVisible)
aVisible
- boolean - new visibility of species pulldownpublic boolean getMemoryMenuVisible()
public void setMemoryMenuVisible(boolean aVisible)
aVisible
- boolean - new visible of memory menupublic java.awt.Dimension getPreferredSize()
getPreferredSize
in class UIView
public SelectionSet getSelectionSet()
getSelectionSet
in interface SelectionPresenter
public void setSelectionSet(SelectionSet aSelectionSet)
setSelectionSet
in interface SelectionPresenter
aSelectionSet
- SelectionSet - a new selection setpublic TreeView getTreeView()
public ObjectPropertiesView getObjectPropertiesView()
public PedigreeView getPedigreeView()
public MultipleOrganismView getMultipleOrganismView()
public SexView getSexView()
public ChromosomeView getChromosomeView()
public void selectionChanged()
selectionChanged
in interface SelectionPresenter
public void doSelectionOrganismStuff(Organism selectedOrganism)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public boolean getTreePaneVisible()
public void setTreePaneVisible(boolean aVisible)
aVisible
- boolean - new visibilitypublic java.io.File enforceFileExtension(java.io.File aFile, java.lang.String anExtension)
aFile
- File - a possible fileanExtension
- String - filename extension to enforce (e.g. "xml", "blw" or "bls")public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
event
- PropertyChangeEvent - the property change eventpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
event
- ItemEvent - item changed eventpublic void setFont(java.awt.Font aFont)
setFont
in class UIView
aFont
- Font - a new font, if null, then will revert to default fontpublic void setCurrentWorld(World aWorld)
aWorld
- World - a world, may be nullpublic void setWindowMode(int aWindowMode)
aWindowMode
- int - new window modepublic void menuSelected(javax.swing.event.MenuEvent e)
menuSelected
in interface javax.swing.event.MenuListener
public void menuDeselected(javax.swing.event.MenuEvent e)
menuDeselected
in interface javax.swing.event.MenuListener
public void menuCanceled(javax.swing.event.MenuEvent e)
menuCanceled
in interface javax.swing.event.MenuListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |