Package org.biojava.bio.gui.sequence
Class TickFeatureRenderer
- java.lang.Object
-
- org.biojava.utils.AbstractChangeable
-
- org.biojava.bio.gui.sequence.TickFeatureRenderer
-
- All Implemented Interfaces:
FeatureRenderer
,Changeable
public class TickFeatureRenderer extends AbstractChangeable implements FeatureRenderer
- Author:
- Thomas Down, Matthew Pocock, David Huen
-
-
Field Summary
Fields Modifier and Type Field Description static ChangeType
DEPTH
static ChangeType
FILL
static ChangeType
OUTLINE
-
Constructor Summary
Constructors Constructor Description TickFeatureRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDepth()
double
getDepth(SequenceRenderContext src)
Paint
getFill()
Paint
getOutline()
FeatureHolder
processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
void
renderFeature(Graphics2D g, Feature f, SequenceRenderContext src)
void
setDepth(double arrowSize)
void
setFill(Paint p)
void
setOutline(Paint p)
-
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
-
-
-
Field Detail
-
FILL
public static final ChangeType FILL
-
OUTLINE
public static final ChangeType OUTLINE
-
DEPTH
public static final ChangeType DEPTH
-
-
Constructor Detail
-
TickFeatureRenderer
public TickFeatureRenderer()
-
-
Method Detail
-
setFill
public void setFill(Paint p) throws ChangeVetoException
- Throws:
ChangeVetoException
-
setOutline
public void setOutline(Paint p) throws ChangeVetoException
- Throws:
ChangeVetoException
-
getOutline
public Paint getOutline()
-
setDepth
public void setDepth(double arrowSize) throws ChangeVetoException
- Throws:
ChangeVetoException
-
getDepth
public double getDepth()
-
renderFeature
public void renderFeature(Graphics2D g, Feature f, SequenceRenderContext src)
- Specified by:
renderFeature
in interfaceFeatureRenderer
-
getDepth
public double getDepth(SequenceRenderContext src)
- Specified by:
getDepth
in interfaceFeatureRenderer
-
processMouseEvent
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
- Specified by:
processMouseEvent
in interfaceFeatureRenderer
-
-