public class LayeredRenderer extends Object
LayeredRenderer
handles the lane offsets for
MultiLineRender
s. For each successive lane it
translates the Graphics2D
perpendicular to the
sequence rendering direction by an amount equal to the value
returned by the getDepth()
method of that lane's
renderer.Modifier and Type | Field and Description |
---|---|
static LayeredRenderer |
INSTANCE
Static
LayeredRenderer INSTANCE used
by MultiLineRenderer s. |
Constructor and Description |
---|
LayeredRenderer() |
Modifier and Type | Method and Description |
---|---|
double |
getDepth(List srcL,
List renderers)
getDepth returns the total depth of a list of
SequenceRenderer s. |
double |
getMinimumLeader(List srcL,
List renderers)
getMinimumLeader returns the maximum value of
getMinimumLeader() for a list of SequenceRenderer s. |
double |
getMinimumTrailer(List srcL,
List renderers)
getMinimumTrailer returns the maximum value of
getMinimumTrailer() for a list of SequenceRenderer s. |
void |
paint(Graphics2D g,
List srcL,
List renderers) |
SequenceViewerEvent |
processMouseEvent(List srcL,
MouseEvent me,
List path,
List renderers) |
public static final LayeredRenderer INSTANCE
LayeredRenderer
INSTANCE
used
by MultiLineRenderer
s.public LayeredRenderer()
public double getDepth(List srcL, List renderers)
getDepth
returns the total depth of a list of
SequenceRenderer
s.srcL
- a List
of
SequenceRenderContext
s.renderers
- a List
of
SequenceRenderer
s.double
.public double getMinimumLeader(List srcL, List renderers)
getMinimumLeader
returns the maximum value of
getMinimumLeader() for a list of SequenceRenderer
s.srcL
- a List
of
SequenceRenderContext
s.renderers
- a List
of
SequenceRenderer
s.double
.public double getMinimumTrailer(List srcL, List renderers)
getMinimumTrailer
returns the maximum value of
getMinimumTrailer() for a list of SequenceRenderer
s.srcL
- a List
of
SequenceRenderContext
s.renderers
- a List
of
SequenceRenderer
s.double
.public void paint(Graphics2D g, List srcL, List renderers)
public SequenceViewerEvent processMouseEvent(List srcL, MouseEvent me, List path, List renderers)
Copyright © 2014 BioJava. All rights reserved.