|
|||||||||
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 | +--jadex.swing.sequence.SequenceDisplay
SequenceDisplay.java: Graphics Sequence display designed based on Swing MVC model and renderer method.
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 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 | |
SequenceDisplay()
Default constructor |
|
SequenceDisplay(SequenceModel model)
Second constructor. |
Method Summary | |
void |
clear()
Clear up and force to release all resources. |
void |
clearSelection()
Clear all selected sequences. |
void |
deSelectSequence(org.jdom.Element sequence)
Remove selected sequence. |
void |
firePropertyChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
Release proteced access to public, so its package class can call it. |
GeneRenderer |
getGeneRenderer()
Get the gene renderer. |
SequenceLayoutModel |
getLayoutModel()
Get the layoutModel used in this SequenceDisplay. |
MapRange |
getMapRange()
Get the current maprange |
SequenceModel |
getModel()
Get the sequence model. |
void |
getMouseAt()
Get the mouse position in bp unit |
javax.swing.JPopupMenu |
getPopup()
Expose the popup to the classes at the same package |
java.awt.Dimension |
getPreferredScrollableViewportSize()
Returns the preferred size of the viewport for a view component. |
SequenceRenderer |
getRenderer()
Get the sequence renderer. |
int |
getScrollableBlockIncrement(java.awt.Rectangle p1,
int p2,
int p3)
Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation. |
boolean |
getScrollableTracksViewportHeight()
Horizontal is always in a whole view |
boolean |
getScrollableTracksViewportWidth()
Return true if a viewport should always force the width of this Scrollable to match the width of the viewport. |
int |
getScrollableUnitIncrement(java.awt.Rectangle p1,
int p2,
int p3)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. |
org.jdom.Element |
getSelectedSequence()
Get the selected sequence element. |
java.util.List |
getSelectedSequences()
Get the selected sequence elemnet list. |
SequenceSelectionModel |
getSelectionModel()
Get the selectionModel used in this SequenceDisplay. |
SequenceUI |
getUI()
Get the SequenceUI used in this SequenceDisplay. |
static void |
main(java.lang.String[] args)
|
void |
search(java.lang.String name)
Search a sequence element with the name of name. |
void |
setGeneRenderer(GeneRenderer renderer)
Set gene renderer. |
void |
setLayoutModel(SequenceLayoutModel model)
Set the layoutModel |
void |
setMapRange(MapRange range)
Specify a maprange for this display |
void |
setModel(SequenceModel model)
Set the sequence model. |
void |
setMouseAt(long p)
Set the mouseAt position in bp unit |
void |
setPopup(javax.swing.JPopupMenu pop)
Set up a popup menu |
void |
setRenderer(SequenceRenderer renderer)
Set the sequence renderer. |
void |
setSelectedSequence(org.jdom.Element sequence)
Set one and only one selected Sequence element. |
void |
setSelectedSequences(java.util.List list)
Set a list of selected sequence elements. |
void |
setSelectionModel(SequenceSelectionModel model)
Set the selection model |
void |
setUI(SequenceUI ui)
Set the SequenceUI. |
void |
updateUI()
Create and set SequenceUI for this SequenceDisplay. |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, getPreferredSize, 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, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
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 |
Constructor Detail |
public SequenceDisplay()
public SequenceDisplay(SequenceModel model)
model
- the data model for this SequenceDisplay.Method Detail |
public void setModel(SequenceModel model)
model
- the data model for this SequenceDisplay.public SequenceModel getModel()
public void setRenderer(SequenceRenderer renderer)
renderer
- the SequenceRenderer used for rendering Seqeunce objects in
this SequenceDisplay.public SequenceRenderer getRenderer()
public void setGeneRenderer(GeneRenderer renderer)
public GeneRenderer getGeneRenderer()
public void setUI(SequenceUI ui)
ui
- the SequenceUI used in the SequenceDisplay.public SequenceUI getUI()
public void updateUI()
updateUI
in class javax.swing.JComponent
javax.swing.JComponent
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
UIManager#getLookAndFeel
,
UIManager#getUI
public void clear()
public void setPopup(javax.swing.JPopupMenu pop)
public javax.swing.JPopupMenu getPopup()
public void setSelectionModel(SequenceSelectionModel model)
public SequenceSelectionModel getSelectionModel()
public void setLayoutModel(SequenceLayoutModel model)
public SequenceLayoutModel getLayoutModel()
public void setSelectedSequence(org.jdom.Element sequence)
sequence
- the selected seqeunce element.public void setSelectedSequences(java.util.List list)
list
- the selected seqeunce element list.public org.jdom.Element getSelectedSequence()
public java.util.List getSelectedSequences()
public void deSelectSequence(org.jdom.Element sequence)
sequence
- the sequence element to be removed from the selection.public void clearSelection()
public void setMapRange(MapRange range)
range
- the maprange to be layoutedpublic MapRange getMapRange()
public void setMouseAt(long p)
public void getMouseAt()
public void search(java.lang.String name)
name
- the searching key.public void firePropertyChange(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
firePropertyChange
in class javax.swing.JComponent
javax.swing.JComponent
propertyName
- the programmatic name of the property that was changedoldValue
- the old value of the propertynewValue
- the new value of the propertyPropertyChangeSupport
public static void main(java.lang.String[] args)
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface javax.swing.Scrollable
javax.swing.Scrollable
public int getScrollableUnitIncrement(java.awt.Rectangle p1, int p2, int p3)
javax.swing.Scrollable
Scrolling containers, like JScrollPane, will use this method each time the user requests a unit scroll.
getScrollableUnitIncrement
in interface javax.swing.Scrollable
javax.swing.Scrollable
visibleRect
- The view area visible within the viewportorientation
- Either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL.direction
- Less than zero to scroll up/left, greater than zero for down/right.JScrollBar.setUnitIncrement(int)
public int getScrollableBlockIncrement(java.awt.Rectangle p1, int p2, int p3)
javax.swing.Scrollable
Scrolling containers, like JScrollPane, will use this method each time the user requests a block scroll.
getScrollableBlockIncrement
in interface javax.swing.Scrollable
javax.swing.Scrollable
visibleRect
- The view area visible within the viewportorientation
- Either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL.direction
- Less than zero to scroll up/left, greater than zero for down/right.JScrollBar.setBlockIncrement(int)
public java.awt.Dimension getPreferredScrollableViewportSize()
javax.swing.Scrollable
getPreferredScrollableViewportSize
in interface javax.swing.Scrollable
javax.swing.Scrollable
JComponent.getPreferredSize()
public boolean getScrollableTracksViewportWidth()
javax.swing.Scrollable
Scrolling containers, like JViewport, will use this method each time they are validated.
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
javax.swing.Scrollable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |