apollo.gui.genomemap
Class DragView

java.lang.Object
  extended by apollo.gui.genomemap.LinearView
      extended by apollo.gui.genomemap.ManagedView
          extended by 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.


Field Summary
protected  java.util.Vector drawables
           
static int EVIDENCE_HOTSPOT
           
static int OTHER_HOTSPOT
           
 
Fields inherited from class apollo.gui.genomemap.ManagedView
dropSpaceSize, leadSpaceSize, logger, manager, visibleDrawables
 
Fields inherited from class apollo.gui.genomemap.LinearView
apollo_panel, backgroundColour, debug, foregroundColour, graphics, limitsSet, transformer, transparent, viewBounds, visibilityListeners, visible
 
Fields inherited from interface apollo.gui.genomemap.ViewI
LEFTSIDE, NONE, RIGHTSIDE
 
Constructor Summary
DragView(javax.swing.JComponent ap, java.lang.String name, Selection selection)
           
 
Method Summary
 java.util.Vector collectShadows()
           
 java.awt.Point getOriginPosition()
           
 TierViewI getOriginView()
           
 Selection getSelection()
           
 void paintView()
          paintView draws a cross in the centre of the View and a small cross in the upper left quadrant
protected  void setDrawables(java.util.Vector drawables)
           
 void setHotspotColor(java.awt.Color in)
           
 void setHotspotType(int Type)
           
 void setInHotspot(boolean hotspot)
           
 void setLocation(java.awt.Point p)
           
 void setOrigin(TierViewI v, java.awt.Point p)
           
 void setRelativePosition(java.awt.Point p)
           
 void setTierManager(TierManagerI manager)
          Sets ignoreScoreThresholds to true.
 
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
 

Field Detail

drawables

protected java.util.Vector drawables

EVIDENCE_HOTSPOT

public static int EVIDENCE_HOTSPOT

OTHER_HOTSPOT

public static int OTHER_HOTSPOT
Constructor Detail

DragView

public DragView(javax.swing.JComponent ap,
                java.lang.String name,
                Selection selection)
Method Detail

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)