|
|||||||||
| 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.DNAView
The chromosome view of BioLogica.
An object of this class will generate the following property change events:
UIProp.APPLY_BUTTON_PUSHED,
UIProp.DEFER_APPLY,
UIProp.DEFER_REVERT,
UIProp.ORGANISM_ALLELE,
UIProp.ORGANISM_ALLELE_PAIR,
UIProp.REVERT_BUTTON_PUSHED,
UIProp.SELECTED_BASES,
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 |
| 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 | |
DNAView()
Creates a chromosome view. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
React to actions |
void |
addActionListener(java.awt.event.ActionListener listener)
|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
Handle adjustment event |
void |
allelesEdited()
Alleles edited |
void |
applyPendingChanges()
Apply pending changes made to DNA |
protected void |
callActionListeners(java.awt.event.ActionEvent e)
|
java.lang.String |
getAllelePendingTextSymbol(int topOrBottomAllele)
Get the text symbol of the top or bottom allele if the pending changes are made to that allele. |
java.awt.Color |
getCursorColor()
Get the cursor color |
static java.awt.Color |
getDefaultCursorColor()
Get the default cursor color |
static java.awt.Color |
getDefaultDifferentBaseColor()
Get the default different base color |
static java.awt.Color |
getDefaultEqualBaseColor()
Get the default equal base color |
boolean |
getDeferApply()
Get the defer apply setting. |
boolean |
getDeferRevert()
Get the defer revert setting. |
java.awt.Color |
getDifferentBaseColor()
Get the different base color |
java.awt.Color |
getEqualBaseColor()
Get the equal base color |
OrganismAllele |
getOrganismAllele()
Get the shown organism allele for this view. |
OrganismAllelePair |
getOrganismAllelePair()
Get the shown organism allele pair for this view. |
java.awt.Dimension |
getPreferredSize()
Return the preferred size of this canvas |
boolean |
imageUpdate(java.awt.Image anImage,
int infoFlags,
int x,
int y,
int width,
int height)
ImageObserver method |
void |
keyPressed(java.awt.event.KeyEvent e)
Handle key pressed event |
void |
keyReleased(java.awt.event.KeyEvent e)
Handle key released event |
void |
keyTyped(java.awt.event.KeyEvent e)
Handle key typed event |
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 |
paintAllele(java.awt.Graphics g,
OrganismAllele allele,
OrganismAllele comparisonAllele,
int xTopLeft,
int yTopLeft)
Paint a single allele |
void |
paintBase(java.awt.Graphics g,
byte base,
int xInView,
int yInView,
boolean inAllele,
boolean selected)
Paint a single base pair |
void |
paintComponent(java.awt.Graphics g)
Draw the graphics in this view. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle property change events |
void |
removeActionListener(java.awt.event.ActionListener listener)
|
void |
revertPendingChanges()
Revert pending changes to DNA |
void |
setApplyVisible(boolean visible)
|
void |
setCursorColor(java.awt.Color aColor)
Set the cursor color. |
static void |
setDefaultCursorColor(java.awt.Color aColor)
Set the default cursor color. |
static void |
setDefaultDifferentBaseColor(java.awt.Color aColor)
Set the default different base color. |
static void |
setDefaultEqualBaseColor(java.awt.Color aColor)
Set the default equal base color. |
void |
setDeferApply(boolean trueOrFalse)
Set the defer apply setting. |
void |
setDeferRevert(boolean trueOrFalse)
Set the defer revert setting. |
void |
setDifferentBaseColor(java.awt.Color aColor)
Set the different base color. |
void |
setEqualBaseColor(java.awt.Color aColor)
Set the equal base color. |
void |
setOrganismAllele(OrganismAllele anOrganismAllele)
Set the shown organism allele for this view. |
void |
setOrganismAllelePair(OrganismAllelePair anOrganismAllelePair)
Set the shown organism allele pair for this view. |
void |
setRevertVisible(boolean visible)
|
void |
startMouseMotionListener(int startIndex,
int endIndex)
Start mouse motion listener given the start and end index of any current selection. |
void |
stateChanged(javax.swing.event.ChangeEvent event)
Handle change event |
| Methods inherited from class org.concord.biologica.ui.UIView |
addPropertyChangeListener, getLocalImage, paintBackground, removePropertyChangeListener, setBackground, setFont, 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, 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 java.lang.String DNA_CMD_APPLY
public static final java.lang.String DNA_CMD_REVERT
public static final int DNA_AREA_LEFT
public static final int DNA_AREA_TOP
public static final int DNA_AREA_WIDTH
public static final int DNA_AREA_SINGLE_HEIGHT
public static final int DNA_AREA_DOUBLE_HEIGHT
public static final int DNA_AREA_GAP
public static final int DNA_IMAGE_HEIGHT
public static final int DNA_IMAGE_WIDTH
public static final int DNA_IMAGE_MAX_BASES
public static final int DNA_IMAGE_ARROWS_INDEX
public static final int DNA_IMAGE_GC_DARK_INDEX
public static final int DNA_IMAGE_CG_DARK_INDEX
public static final int DNA_IMAGE_TA_DARK_INDEX
public static final int DNA_IMAGE_AT_DARK_INDEX
public static final int DNA_IMAGE_GC_LIGHT_INDEX
public static final int DNA_IMAGE_CG_LIGHT_INDEX
public static final int DNA_IMAGE_TA_LIGHT_INDEX
public static final int DNA_IMAGE_AT_LIGHT_INDEX
public static final int DNA_IMAGE_GC_DARK_SELECTED_INDEX
public static final int DNA_IMAGE_CG_DARK_SELECTED_INDEX
public static final int DNA_IMAGE_TA_DARK_SELECTED_INDEX
public static final int DNA_IMAGE_AT_DARK_SELECTED_INDEX
public static final int DNA_TOP_STRAND_Y
public static final int DNA_BOTTOM_STRAND_Y
public static final int DNA_CURSOR_HEIGHT
public static final int DNA_SCROLLBAR_HEIGHT
public static final int DNA_SCROLLBAR_AREA_OFFSET
public static final int DNA_SCROLLBAR_GARBAGE_WIDTH_IN_BASES
public static final int DNA_TOP_STRAND
public static final int DNA_BOTTOM_STRAND
public static final int TOP_ALLELE
public static final int BOTTOM_ALLELE
protected java.awt.Color cursorColor
protected java.awt.Color equalBaseColor
protected java.awt.Color differentBaseColor
| Constructor Detail |
public DNAView()
| Method Detail |
public static java.awt.Color getDefaultCursorColor()
public static void setDefaultCursorColor(java.awt.Color aColor)
aColor - Color - a default cursor color, may not be nulljava.lang.IllegalArgumentException - - input argument illegal (null)public static java.awt.Color getDefaultEqualBaseColor()
public static void setDefaultEqualBaseColor(java.awt.Color aColor)
aColor - Color - a default equal base color, may not be nulljava.lang.IllegalArgumentException - - input argument illegal (null)public static java.awt.Color getDefaultDifferentBaseColor()
public static void setDefaultDifferentBaseColor(java.awt.Color aColor)
aColor - Color - a default different base color, may not be nulljava.lang.IllegalArgumentException - - input argument illegal (null)public java.awt.Color getCursorColor()
public void setCursorColor(java.awt.Color aColor)
aColor - Color - a new cursor color, may be nullpublic java.awt.Color getEqualBaseColor()
public void setEqualBaseColor(java.awt.Color aColor)
aColor - Color - a new equal base color, may be nullpublic java.awt.Color getDifferentBaseColor()
public void setDifferentBaseColor(java.awt.Color aColor)
aColor - Color - a new different base color, may be nullpublic boolean getDeferApply()
public void setDeferApply(boolean trueOrFalse)
trueOrFalse - boolean - true or falsepublic boolean getDeferRevert()
public void setDeferRevert(boolean trueOrFalse)
trueOrFalse - boolean - true or falsepublic void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentg - Graphics - the given graphics to use in drawing
public void paintAllele(java.awt.Graphics g,
OrganismAllele allele,
OrganismAllele comparisonAllele,
int xTopLeft,
int yTopLeft)
public void paintBase(java.awt.Graphics g,
byte base,
int xInView,
int yInView,
boolean inAllele,
boolean selected)
public java.awt.Dimension getPreferredSize()
getPreferredSize in class UIView
public boolean imageUpdate(java.awt.Image anImage,
int infoFlags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserverimageUpdate in class java.awt.Componentpublic 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.MouseMotionListener
public void startMouseMotionListener(int startIndex,
int endIndex)
public OrganismAllele getOrganismAllele()
public void setOrganismAllele(OrganismAllele anOrganismAllele)
anOrganismAllele - OrganismAllele - the organism allele whose base pairs to show, may be nullpublic OrganismAllelePair getOrganismAllelePair()
public void setOrganismAllelePair(OrganismAllelePair anOrganismAllelePair)
anOrganismAllelePair - OrganismAllelePair - the organism allele pair whose base pairs to show, may be nullpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerevent - PropertyChangeEvent - the property change eventpublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged in interface javax.swing.event.ChangeListenerpublic void setRevertVisible(boolean visible)
public void setApplyVisible(boolean visible)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void allelesEdited()
public java.lang.String getAllelePendingTextSymbol(int topOrBottomAllele)
topOrBottomAllele - int - DNAView.TOP_ALLELE or DNAView.BOTTOM_ALLELEjava.lang.IllegalArgumentException - - input topOrBottomAllele argument illegalpublic void applyPendingChanges()
public void revertPendingChanges()
public void addActionListener(java.awt.event.ActionListener listener)
public void removeActionListener(java.awt.event.ActionListener listener)
protected void callActionListeners(java.awt.event.ActionEvent e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||