apollo.gui.genomemap
Class DragView
java.lang.Object
apollo.gui.genomemap.LinearView
apollo.gui.genomemap.ManagedView
apollo.gui.genomemap.DragView
- All Implemented Interfaces:
- DragViewI, ManagedViewI, ViewI
public class DragView
- extends ManagedView
- implements DragViewI
A FeatureView which has extra methods to handle dragging.
| Fields inherited from class apollo.gui.genomemap.LinearView |
apollo_panel, backgroundColour, debug, foregroundColour, graphics, limitsSet, transformer, transparent, viewBounds, visibilityListeners, visible |
|
Constructor Summary |
DragView(javax.swing.JComponent ap,
java.lang.String name,
Selection selection)
|
| Methods inherited from class apollo.gui.genomemap.ManagedView |
clear, getDropSpaceSize, getLeadSpaceSize, getTierManager, getVisibleDrawables, getYRange, paintDrawables, setBounds, setDropSpaceSize, setLeadSpaceSize, setXOrientation, setYOrientation, updateManagerHeight |
| Methods inherited from class apollo.gui.genomemap.LinearView |
addViewListener, addVisibilityListener, areLimitsSet, fireViewEvent, getBackgroundColour, getBounds, getCentre, getComponent, getDrawBounds, getForegroundColour, getGraphics, getLimits, getMaximum, getMinimum, getName, getPreferredSize, getSelectionRectangle, getStrand, getTransform, getVisibleRange, init, isInvalid, isTransparent, isVisible, setBackgroundColour, setCentre, setComponent, setDebug, setDrawBounds, setForegroundColour, setGraphics, setInvalidity, setLimits, setLimitsSet, setMaximum, setMinimum, setName, setStrand, setTransform, setTransparent, setVisible, setVisible, setZoomFactor |
| 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.ViewI |
addViewListener, areLimitsSet, clear, getBounds, getCentre, getComponent, getLimits, getMaximum, getMinimum, getName, getPreferredSize, getTransform, getVisibleRange, isInvalid, isTransparent, isVisible, setBounds, setCentre, setComponent, setGraphics, setInvalidity, setLimits, setLimitsSet, setMaximum, setMinimum, setName, setTransparent, setVisible, setZoomFactor |
drawables
protected java.util.Vector drawables
EVIDENCE_HOTSPOT
public static int EVIDENCE_HOTSPOT
OTHER_HOTSPOT
public static int OTHER_HOTSPOT
DragView
public DragView(javax.swing.JComponent ap,
java.lang.String name,
Selection selection)
setTierManager
public void setTierManager(TierManagerI manager)
- Sets ignoreScoreThresholds to true.
Makes stacker not consider score thresholds
in populating the tier.
This is needed for when ya drag a feature that has
a score under threshold, but since it has siblings(in feat set)
above threshold it gets displayed. Since only items that have
somehow gotten through the threshold (either by self score or siblings)
can be displayed and thus dragged, there is no need to do the
score threshold again.
- Specified by:
setTierManager in interface ManagedViewI- Overrides:
setTierManager in class ManagedView
getSelection
public Selection getSelection()
setHotspotColor
public void setHotspotColor(java.awt.Color in)
setHotspotType
public void setHotspotType(int Type)
setInHotspot
public void setInHotspot(boolean hotspot)
paintView
public void paintView()
- Description copied from class:
LinearView
- paintView draws a cross in the centre of the View
and a small cross in the upper left quadrant
- Specified by:
paintView in interface ViewI- Overrides:
paintView in class ManagedView
collectShadows
public java.util.Vector collectShadows()
setOrigin
public void setOrigin(TierViewI v,
java.awt.Point p)
- Specified by:
setOrigin in interface DragViewI
getOriginView
public TierViewI getOriginView()
- Specified by:
getOriginView in interface DragViewI
getOriginPosition
public java.awt.Point getOriginPosition()
- Specified by:
getOriginPosition in interface DragViewI
setLocation
public void setLocation(java.awt.Point p)
- Specified by:
setLocation in interface DragViewI
setRelativePosition
public void setRelativePosition(java.awt.Point p)
- Specified by:
setRelativePosition in interface DragViewI
setDrawables
protected void setDrawables(java.util.Vector drawables)