public class BasicFeatureRenderer extends AbstractChangeable implements FeatureRenderer
Modifier and Type | Field and Description |
---|---|
static ChangeType |
FILL |
static ChangeType |
OUTLINE |
static ChangeType |
SCOOP |
static ChangeType |
SIZE |
Constructor and Description |
---|
BasicFeatureRenderer() |
Modifier and Type | Method and Description |
---|---|
double |
getArrowScoop() |
double |
getArrowSize() |
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 |
setArrowScoop(double arrowScoop) |
void |
setArrowSize(double arrowSize) |
void |
setFill(Paint p) |
void |
setOutline(Paint p) |
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
public static final ChangeType FILL
public static final ChangeType OUTLINE
public static final ChangeType SIZE
public static final ChangeType SCOOP
public BasicFeatureRenderer()
public void setFill(Paint p) throws ChangeVetoException
ChangeVetoException
public void setOutline(Paint p) throws ChangeVetoException
ChangeVetoException
public Paint getOutline()
public void setArrowSize(double arrowSize) throws ChangeVetoException
ChangeVetoException
public double getArrowSize()
public void setArrowScoop(double arrowScoop) throws ChangeVetoException
ChangeVetoException
public double getArrowScoop()
public void renderFeature(Graphics2D g, Feature f, SequenceRenderContext src)
renderFeature
in interface FeatureRenderer
public double getDepth(SequenceRenderContext src)
getDepth
in interface FeatureRenderer
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
processMouseEvent
in interface FeatureRenderer
Copyright © 2014 BioJava. All rights reserved.