|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.gui.genomemap.LinearView
apollo.gui.genomemap.ManagedView
apollo.gui.genomemap.TierView
apollo.gui.genomemap.SiteView
public class SiteView
A view to display sites (start and stop codons). Displays 3 stop tiers/Sites and 3 start tiers/Sites. Took out implementing of SelectViewI. SelectViewI is for handling external selections, but presently there is no way to externally select a codon, except that codons will select when transcripts are selected, but this is handled through handlefeatureSelection(it's easier that way)
| Field Summary | |
|---|---|
protected CurationSet |
curation
|
protected int |
height
|
protected static org.apache.log4j.Logger |
logger
|
protected ResultView |
resultView
For TranslationStartStopSelectionListener |
protected Sites[] |
sitesArray
[0,1,2] start sites, [3,4,5] for stop sites (3 frames for each) |
static char[] |
startCodon
|
static int |
startCodonHashCode
|
| Fields inherited from class apollo.gui.genomemap.TierView |
|---|
controller, dragSources, rightSide, selectionManager, vScroll, vscrollable |
| Fields inherited from class apollo.gui.genomemap.ManagedView |
|---|
dropSpaceSize, leadSpaceSize, manager, visibleDrawables |
| Fields inherited from class apollo.gui.genomemap.LinearView |
|---|
apollo_panel, backgroundColour, debug, foregroundColour, graphics, limitsSet, transformer, transparent, viewBounds, visibilityListeners, visible |
| Constructor Summary | |
|---|---|
SiteView(javax.swing.JComponent ap,
java.lang.String name,
Controller controller,
SelectionManager selectionManager)
component is ApolloPanel |
|
| Method Summary | |
|---|---|
void |
_createSites(int[] visRange)
visRange[] has 2 ints which are the start and stop in basepair of what is currently visible. |
boolean |
allowsTierDrags()
Whether this view allows tier dragging |
void |
clearSelections()
Clear all selections in all Sites |
protected java.util.Vector |
findDrawables(java.awt.Rectangle rect,
boolean selected_only)
Finds all the sites in rect and creates SiteCodon for them. |
Selection |
findFeaturesForSelection(java.awt.Rectangle rect,
boolean selectParents)
From PickViewI for selection, selectParents is ignored here |
java.awt.Rectangle |
getPreferredSize()
Get the preferred size for the view |
ResultView |
getResultView()
|
Selection |
getViewSelection(Selection selection)
given the entirety of what is currently selected, remove anything that doesn't belong to this view and return the remaining selections. |
boolean |
handleTierManagerEvent(TierManagerEvent evt)
|
protected boolean |
needsTextAvoidUpdate()
|
void |
paintDrawables()
|
void |
selectParents(Selection selection)
|
void |
setCentre(int val)
Set the centre position. |
void |
setCurationSet(CurationSet set)
|
void |
setResultView(ResultView rv)
|
void |
setVisible(boolean state)
Set whether or not a view is visible |
void |
setZoomFactor(double fac)
Set the ZoomFactor along the linear axis |
| Methods inherited from class apollo.gui.genomemap.ManagedView |
|---|
getDropSpaceSize, getLeadSpaceSize, getTierManager, getVisibleDrawables, getYRange, setBounds, setDropSpaceSize, setLeadSpaceSize, setTierManager, setXOrientation |
| Methods inherited from class apollo.gui.genomemap.LinearView |
|---|
addViewListener, addVisibilityListener, areLimitsSet, fireViewEvent, getBackgroundColour, getBounds, getCentre, getComponent, getDrawBounds, getForegroundColour, getGraphics, getLimits, getMaximum, getMinimum, getName, getSelectionRectangle, getStrand, getTransform, getVisibleRange, init, isInvalid, isTransparent, isVisible, setBackgroundColour, setComponent, setDebug, setDrawBounds, setForegroundColour, setGraphics, setInvalidity, setLimits, setLimitsSet, setMaximum, setMinimum, setName, setStrand, setTransform, setTransparent, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface apollo.gui.genomemap.TierViewI |
|---|
getVisibleDrawables |
| Methods inherited from interface apollo.gui.genomemap.ManagedViewI |
|---|
getTierManager, setTierManager |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
public static final char[] startCodon
public static final int startCodonHashCode
protected int height
protected Sites[] sitesArray
protected CurationSet curation
protected ResultView resultView
| Constructor Detail |
|---|
public SiteView(javax.swing.JComponent ap,
java.lang.String name,
Controller controller,
SelectionManager selectionManager)
| Method Detail |
|---|
public void setCurationSet(CurationSet set)
public void paintDrawables()
paintDrawables in class ManagedViewpublic void setVisible(boolean state)
ViewI
setVisible in interface ViewIsetVisible in class TierViewpublic void setCentre(int val)
ViewI
setCentre in interface ViewIsetCentre in class LinearViewprotected boolean needsTextAvoidUpdate()
public void setZoomFactor(double fac)
ViewI
setZoomFactor in interface ViewIsetZoomFactor in class LinearViewpublic void _createSites(int[] visRange)
public boolean allowsTierDrags()
TierViewI
allowsTierDrags in interface TierViewIallowsTierDrags in class TierViewpublic java.awt.Rectangle getPreferredSize()
ViewI
getPreferredSize in interface ViewIgetPreferredSize in class LinearViewpublic void setResultView(ResultView rv)
public ResultView getResultView()
public boolean handleTierManagerEvent(TierManagerEvent evt)
handleTierManagerEvent in interface TierManagerListenerhandleTierManagerEvent in class TierView
public Selection findFeaturesForSelection(java.awt.Rectangle rect,
boolean selectParents)
findFeaturesForSelection in class TierView
protected java.util.Vector findDrawables(java.awt.Rectangle rect,
boolean selected_only)
findDrawables in class TierViewpublic void clearSelections()
public void selectParents(Selection selection)
public Selection getViewSelection(Selection selection)
TierView
getViewSelection in interface TierViewIgetViewSelection in class TierView
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||