|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
apollo.gui.ControlledPanel
apollo.gui.genomemap.StrandedZoomableApolloPanel
public class StrandedZoomableApolloPanel
The class which controls and renders the main feature display panel, containing an AnnotationView, ResultView and SiteView for each strand. This class contains ApolloPanel which contains all the views, but it also contains the views as well, which seems confusing. Shouldnt either this or ApolloPanel contain all the views but not both? SiteViews should not be created unless there is sequence - change this. In addition to ApolloPanel this also has scrollbars, zoom buttons, & nav bar.
| Nested Class Summary | |
|---|---|
class |
StrandedZoomableApolloPanel.ShiftAwareButton
My zoom-buttons are aware of when they are pressed with a shift-key. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static java.lang.String |
CUSTOM
|
AnnotationView |
forwardAnnotView
|
protected static org.apache.log4j.Logger |
logger
|
static java.lang.String |
RESET
|
AnnotationView |
reverseAnnotView
|
static java.lang.String |
ZOOMIN
|
static java.lang.String |
ZOOMIN2
|
static java.lang.String |
ZOOMOUT
|
static java.lang.String |
ZOOMOUT2
|
| 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 apollo.gui.drawable.DrawableAnnotationConstants |
|---|
ALLSTOPS, BOTHENDS, END, NOSTOPS, ONESTOP, START |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StrandedZoomableApolloPanel(GuiCurationState curationState,
java.lang.String zoomPosition)
Makes zoomable scrollable szap |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Action event listener |
void |
addGraph(ScoreCalculator s,
boolean isDiscrete,
java.awt.Color color)
|
void |
addHighlightRegion(BaseScrollable scroller,
java.awt.Color color,
boolean reverse)
|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
|
void |
applyLayout(misc.JIniFile iniFile,
java.lang.String section,
boolean updateBaseLocation)
|
void |
applyVisibilityFromLayout(misc.JIniFile iniFile,
java.lang.String section)
|
boolean |
areAnnotationViewsVisible()
|
boolean |
areResultViewsVisible()
|
java.awt.Rectangle |
calculateHighlightRect(apollo.gui.genomemap.StrandedZoomableApolloPanel.HighlightWrapper hw)
|
void |
changeYOrientation()
|
void |
clearData()
|
Drawable |
findDrawableForFeatureInResultViews(SeqFeatureI sf)
|
FeatureSetI |
getAnnotations()
|
AnnotationView |
getAnnotView(int strand)
|
ApolloPanel |
getApolloPanel()
I think this will need to change to: ApolloPanel[] getApolloPanels() |
int |
getCentreBase()
|
java.awt.Component |
getComponent()
|
Controller |
getController()
Gets the Controller for the object |
CurationSet |
getCurationSet()
|
FeatureSetI |
getForwardAnnotations()
|
FeatureSetI |
getForwardResults()
|
java.util.List<GraphView> |
getGraphs()
|
GraphView |
getGraphView()
|
boolean |
getGraphVisibility()
true if GraphView is visible |
javax.swing.JLabel |
getOrganismLabel()
A label that's stamped with a curation set's organism name and range whenever I'm informed of a new curation set. |
FeatureSetI |
getResults()
|
RevCompListener |
getRevCompListener()
|
FeatureSetI |
getReverseAnnotations()
|
FeatureSetI |
getReverseResults()
|
ScaleView |
getScaleView()
|
SelectionManager |
getSelectionManager()
|
boolean |
getSiteViewVisibleOnZoom()
This does not return whther the sites are actually visible but whether they are capable of being visible. |
Transformer |
getTransformer()
|
ResultView |
getViewForFeature(SeqFeatureI sf)
|
boolean |
handleBaseFocusEvent(BaseFocusEvent evt)
|
boolean |
handleDataLoadEvent(DataLoadEvent evt)
|
boolean |
handleNamedFeatureSelectionEvent(NamedFeatureSelectionEvent theEvent)
If we are handed a feature selected only by name, then - as long as we are not the source of the event, we will try to find the features in our result set which correspond to the named features. |
boolean |
handleOrientationEvent(OrientationEvent evt)
|
boolean |
handleReverseComplementEvent(ReverseComplementEvent evt)
|
boolean |
handleRubberbandEvent(RubberbandEvent evt)
|
boolean |
handleScrollEvent(ScrollEvent event)
|
boolean |
handleSetActiveCurStateEvent(SetActiveCurStateEvent evt)
|
boolean |
handleZoomEvent(ZoomEvent event)
|
boolean |
haveSequence()
|
boolean |
isControlPanelVisible()
|
boolean |
isForwardStrandVisible()
|
boolean |
isReverseComplement()
Single stranded holder return false? |
boolean |
isReverseStrandVisible()
|
boolean |
isScaleViewVisible()
|
boolean |
isScrollingPropagated()
|
boolean |
isShowingEdgeMatches()
|
void |
paint(java.awt.Graphics g)
|
void |
paintComponent(java.awt.Graphics g)
|
void |
putVerticalScrollbarsAtStart()
This sets all the views scrollbars at start position. |
void |
removeAllGraphs()
|
void |
removeGraph(GraphView graph)
|
void |
removeHighlightRegion(BaseScrollable scroller)
|
void |
repaint()
|
void |
repaintHighlights()
|
void |
resetViews()
|
void |
saveLayout(misc.JIniFile iniFile,
java.lang.String section)
|
void |
scrollToSelection()
|
boolean |
selectFeaturesByName(java.lang.String name,
int window)
Searches features for name and selects all that are found, does nothing if none are found. |
boolean |
selectFeaturesByName(java.lang.String name,
int window,
boolean useRegExp)
window is how much padding to allow in the zoom. |
void |
setAnnotations(CurationSet curation)
|
void |
setAnnotationViewsVisible(boolean state)
|
void |
setCentreBase(int location)
|
void |
setController(Controller controller)
Sets the Controller for the object |
void |
setControlPanelVisibility(boolean state)
|
void |
setCurationSet(CurationSet set)
|
void |
setEdgeMatching(boolean state)
|
void |
setFeatureSet(CurationSet cset)
|
void |
setForwardVisible(boolean state)
|
void |
setGraphVisibility(boolean state)
|
void |
setGuideLine(boolean state)
|
void |
setResultViewsVisible(boolean state)
|
void |
setRevCompListener(RevCompListener l)
For now only one listener, if need more then one listener in future make this addStrandVisibilyListener and add to vector |
void |
setReverseComplement(boolean state)
|
void |
setReverseVisible(boolean state)
|
void |
setScaleViewVisible(boolean state)
|
void |
setScrollingPropagated(boolean value)
|
void |
setScrollValues()
|
void |
setSelectionManager(SelectionManager sm)
|
void |
setShiftForLockedZooming(boolean state)
|
void |
setSiteViewVisibleOnZoom(boolean state)
If state is false hide site view, even if zoomed in. |
void |
setStatusBar(StatusBar sb)
|
void |
setTextAvoidance(boolean state)
|
void |
setViewColours()
|
void |
setVisible(boolean state)
setVisible calls setTextAvoidance(true). |
void |
setZoomFactor(double factor)
|
void |
updateHighlightRegion(BaseScrollable scroller,
java.awt.Color color,
boolean reverse)
|
void |
zoomToSelection()
|
void |
zoomToSelectionWithWindow(int window)
If zoomToSelectionWithWindow is called with no centerBase argument, make centerBase -1 to let the real method know that. |
void |
zoomToSelectionWithWindow(int window,
int centerBase)
|
void |
zoomToWidth(double dispWidth,
int[] limits)
|
| Methods inherited from class apollo.gui.ControlledPanel |
|---|
addNotify, getControllerWindow, needsAutoRemoval |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface apollo.gui.genomemap.ApolloPanelHolderI |
|---|
setPreferredSize |
| Methods inherited from interface apollo.gui.ControlledObjectI |
|---|
getControllerWindow, needsAutoRemoval |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
public static java.lang.String ZOOMIN
public static java.lang.String ZOOMIN2
public static java.lang.String ZOOMOUT
public static java.lang.String ZOOMOUT2
public static java.lang.String RESET
public static java.lang.String CUSTOM
public AnnotationView forwardAnnotView
public AnnotationView reverseAnnotView
| Constructor Detail |
|---|
public StrandedZoomableApolloPanel(GuiCurationState curationState,
java.lang.String zoomPosition)
| Method Detail |
|---|
public void setGraphVisibility(boolean state)
public void setGuideLine(boolean state)
public CurationSet getCurationSet()
public void setCurationSet(CurationSet set)
setCurationSet in interface ApolloPanelHolderIpublic boolean handleSetActiveCurStateEvent(SetActiveCurStateEvent evt)
handleSetActiveCurStateEvent in interface SetActiveCurStateListenerpublic FeatureSetI getForwardResults()
public FeatureSetI getReverseResults()
public void setFeatureSet(CurationSet cset)
public void setVisible(boolean state)
setVisible in interface ApolloPanelHolderIsetVisible in class javax.swing.JComponentpublic void putVerticalScrollbarsAtStart()
putVerticalScrollbarsAtStart in interface ApolloPanelHolderIpublic ApolloPanel getApolloPanel()
ApolloPanelHolderI
getApolloPanel in interface ApolloPanelHolderIpublic FeatureSetI getForwardAnnotations()
public FeatureSetI getReverseAnnotations()
public void setAnnotations(CurationSet curation)
public Drawable findDrawableForFeatureInResultViews(SeqFeatureI sf)
public FeatureSetI getAnnotations()
public FeatureSetI getResults()
public void zoomToSelection()
public void zoomToSelectionWithWindow(int window)
public void zoomToSelectionWithWindow(int window,
int centerBase)
public void setRevCompListener(RevCompListener l)
public RevCompListener getRevCompListener()
public void scrollToSelection()
public void zoomToWidth(double dispWidth,
int[] limits)
public boolean selectFeaturesByName(java.lang.String name,
int window)
selectFeaturesByName in interface ApolloPanelHolderI
public boolean selectFeaturesByName(java.lang.String name,
int window,
boolean useRegExp)
public void setControlPanelVisibility(boolean state)
public boolean isControlPanelVisible()
public void setViewColours()
public void setForwardVisible(boolean state)
public void setReverseVisible(boolean state)
public AnnotationView getAnnotView(int strand)
public boolean isForwardStrandVisible()
public boolean isReverseStrandVisible()
public void setController(Controller controller)
ControlledObjectI
setController in interface ControlledObjectIsetController in class ControlledPanelpublic boolean handleOrientationEvent(OrientationEvent evt)
handleOrientationEvent in interface OrientationListenerpublic boolean handleNamedFeatureSelectionEvent(NamedFeatureSelectionEvent theEvent)
handleNamedFeatureSelectionEvent in interface NamedFeatureSelectionListenerpublic void changeYOrientation()
public void setSelectionManager(SelectionManager sm)
setSelectionManager in interface ApolloPanelHolderIpublic void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentpublic ScaleView getScaleView()
public GraphView getGraphView()
public boolean getGraphVisibility()
public java.util.List<GraphView> getGraphs()
public void addGraph(ScoreCalculator s,
boolean isDiscrete,
java.awt.Color color)
public java.awt.Rectangle calculateHighlightRect(apollo.gui.genomemap.StrandedZoomableApolloPanel.HighlightWrapper hw)
public void repaintHighlights()
public void paint(java.awt.Graphics g)
paint in class javax.swing.JComponent
public void addHighlightRegion(BaseScrollable scroller,
java.awt.Color color,
boolean reverse)
public void removeHighlightRegion(BaseScrollable scroller)
public void updateHighlightRegion(BaseScrollable scroller,
java.awt.Color color,
boolean reverse)
public boolean isReverseComplement()
ApolloPanelHolderI
isReverseComplement in interface ApolloPanelHolderIpublic void setReverseComplement(boolean state)
setReverseComplement in interface ApolloPanelHolderIpublic boolean handleScrollEvent(ScrollEvent event)
handleScrollEvent in interface ScrollListenerpublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic boolean handleBaseFocusEvent(BaseFocusEvent evt)
handleBaseFocusEvent in interface BaseFocusListenerpublic boolean handleReverseComplementEvent(ReverseComplementEvent evt)
handleReverseComplementEvent in interface ReverseComplementListenerpublic int getCentreBase()
public void setCentreBase(int location)
public void setScrollValues()
public Controller getController()
ControlledObjectI
getController in interface ControlledObjectIgetController in class ControlledPanelpublic SelectionManager getSelectionManager()
public boolean handleRubberbandEvent(RubberbandEvent evt)
handleRubberbandEvent in interface RubberbandListenerpublic boolean handleDataLoadEvent(DataLoadEvent evt)
handleDataLoadEvent in interface DataLoadListenerpublic void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerpublic void setShiftForLockedZooming(boolean state)
public void resetViews()
public void setZoomFactor(double factor)
setZoomFactor in interface ApolloPanelHolderIpublic void setTextAvoidance(boolean state)
public void setStatusBar(StatusBar sb)
setStatusBar in interface ApolloPanelHolderIpublic void setEdgeMatching(boolean state)
public Transformer getTransformer()
public boolean haveSequence()
public void clearData()
clearData in interface ApolloPanelHolderIpublic javax.swing.JLabel getOrganismLabel()
public void repaint()
repaint in class java.awt.Componentpublic boolean handleZoomEvent(ZoomEvent event)
handleZoomEvent in interface ZoomListenerpublic java.awt.Component getComponent()
getComponent in interface ApolloPanelHolderIpublic void setAnnotationViewsVisible(boolean state)
public boolean areAnnotationViewsVisible()
public ResultView getViewForFeature(SeqFeatureI sf)
public void setResultViewsVisible(boolean state)
public boolean areResultViewsVisible()
public void setScaleViewVisible(boolean state)
public boolean isScaleViewVisible()
public void setSiteViewVisibleOnZoom(boolean state)
public boolean getSiteViewVisibleOnZoom()
public void setScrollingPropagated(boolean value)
public boolean isScrollingPropagated()
public boolean isShowingEdgeMatches()
public void saveLayout(misc.JIniFile iniFile,
java.lang.String section)
public void applyVisibilityFromLayout(misc.JIniFile iniFile,
java.lang.String section)
public void applyLayout(misc.JIniFile iniFile,
java.lang.String section,
boolean updateBaseLocation)
public void removeAllGraphs()
public void removeGraph(GraphView graph)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||