|
|||||||||
| 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.OrganismView
|
+--org.concord.biologica.ui.MultipleOrganismView
The multiple organism view of BioLogica.
An object of this class will generate the following property change events:
UIProp.BACKGROUND,
UIProp.CHARACTERISTICS_TEXT_VISIBLE,
UIProp.CHROMOSOME_TOOL_PICK_ON_ORGANISM,
UIProp.FONT,
UIProp.FOREGROUND,
UIProp.LOCK_SYMBOL_VISIBLE,
UIProp.NAME_TEXT_VISIBLE,
UIProp.ORGANISM_ADDED_TO_VIEW,
UIProp.ORGANISM_IMAGE_SIZE,
UIProp.ORGANISM_LAYOUT_STYLE,
UIProp.ORGANISM_REMOVED_FROM_VIEW,
UIProp.SELECTION_MODE,
UIProp.SEX_TEXT_VISIBLE,
UIProp.SPECIES_TEXT_VISIBLE,
UIProp.TEXT_INDENT,
UIProp.TEXT_LINE_SPACING,
PropertyChangeListener, Serialized Form| Inner 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 |
ORGANISM_LAYOUT_STYLE_LEFT_TO_RIGHT_NO_WRAP
An alternative organism layout style for this view - left to right with no wrap (e.g. |
static int |
ORGANISM_LAYOUT_STYLE_LEFT_TO_RIGHT_WRAP
Default organism layout style for this view - left to right and wrap (e.g. |
static int |
ORGANISM_LAYOUT_STYLE_TOP_TO_BOTTOM_NO_WRAP
An alternative organism layout style for this view - top to bottom with no wrap (e.g. |
static int |
ORGANISM_LAYOUT_STYLE_TOP_TO_BOTTOM_WRAP
An alternative organism layout style for this view - top to bottom and wrap (e.g. |
| Fields inherited from class org.concord.biologica.ui.OrganismView |
characteristicsTextVisible, highlightColor, hotspotOrganism, hotspotOrganismImage, lockSymbolVisible, nameTextVisible, organismImageSize, selectionColor, sexTextVisible, speciesTextVisible, textIndent, textLineSpacing |
| 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 | |
MultipleOrganismView()
Creates a multiple organism view. |
|
| Method Summary | |
void |
addOrganism(Organism anOrganism)
Add an organism to this view. |
int |
getNumberOfOrganisms()
Get the number of organisms in this view. |
int |
getOrganismLayoutStyle()
Get the current organism layout style. |
java.util.Enumeration |
getOrganisms()
Get the set of organisms in this view. |
SelectionSet |
getSelectionSet()
Get the current selection set |
void |
mouseClicked(java.awt.event.MouseEvent event)
Handle mouse click events |
void |
mouseDragged(java.awt.event.MouseEvent event)
Handle mouse dragged event |
void |
mouseEntered(java.awt.event.MouseEvent event)
Handle mouse entered event |
void |
mouseExited(java.awt.event.MouseEvent event)
Handle mouse exited event |
void |
mouseMoved(java.awt.event.MouseEvent event)
Handle mouse moved event |
void |
mousePressed(java.awt.event.MouseEvent event)
Handle mouse pressed event |
void |
mouseReleased(java.awt.event.MouseEvent event)
Handle mouse released event |
void |
paintComponent(java.awt.Graphics g)
Draw the graphics in this view. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle property change events |
void |
removeAllOrganisms()
Remove all organisms |
boolean |
removeOrganism(Organism anOrganism)
Removes an organism from this view. |
void |
selectionChanged()
Selection changed notification |
void |
setOrganismLayoutStyle(int anOrganismLayoutStyle)
Set the current organism layout style. |
void |
setScrollPane(javax.swing.JScrollPane aScrollPane)
Tell this view its scroll pane. |
void |
setSelectionSet(SelectionSet aSelectionSet)
Set the current selection set. |
void |
toolChanged(int aTool)
Method called by ToolView when the current tool changes. |
void |
updateScrollBars()
Update the scroll bar extents based on the number of organisms |
| Methods inherited from class org.concord.biologica.ui.UIView |
addPropertyChangeListener, getLocalImage, getPreferredSize, paintBackground, removePropertyChangeListener, setBackground, setFont, setForeground, 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, 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, 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 |
| Field Detail |
public static final int ORGANISM_LAYOUT_STYLE_LEFT_TO_RIGHT_WRAP
public static final int ORGANISM_LAYOUT_STYLE_LEFT_TO_RIGHT_NO_WRAP
public static final int ORGANISM_LAYOUT_STYLE_TOP_TO_BOTTOM_WRAP
public static final int ORGANISM_LAYOUT_STYLE_TOP_TO_BOTTOM_NO_WRAP
| Constructor Detail |
public MultipleOrganismView()
| Method Detail |
public void setScrollPane(javax.swing.JScrollPane aScrollPane)
setScrollPane in class UIViewaScrollPane - JScrollPane - the scroll pane containing this viewpublic void addOrganism(Organism anOrganism)
anOrganism - Organism - an organism to add, may not be nulljava.lang.IllegalArgumentException - - input organism nullpublic boolean removeOrganism(Organism anOrganism)
anOrganism - Organism - an organism, may be nullpublic void removeAllOrganisms()
public int getNumberOfOrganisms()
public java.util.Enumeration getOrganisms()
public SelectionSet getSelectionSet()
getSelectionSet in interface SelectionPresenterpublic void setSelectionSet(SelectionSet aSelectionSet)
setSelectionSet in interface SelectionPresenteraSelectionSet - SelectionSet - a new selection setpublic int getOrganismLayoutStyle()
public void setOrganismLayoutStyle(int anOrganismLayoutStyle)
anOrganismLayoutStyle - int - a new organism layout stylepublic void updateScrollBars()
public void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentg - Graphics - the given graphics to use in drawingpublic void toolChanged(int aTool)
toolChanged in class UIViewaTool - int - the active toolpublic void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent event)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void selectionChanged()
selectionChanged in interface SelectionPresenterpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerevent - PropertyChangeEvent - the property change event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||