public interface PairwiseRenderContext extends SequenceRenderContext
PairwiseRenderContext
encapsulates information
required for the rendering of a pair of sequences. No assumption is
made as to whether the sequences are to be rendered in different
directions (as in a dotplot) or in the same direction; this is left
to the implementation. The leading and trailing borders refer to
the primary sequence only.SequenceRenderContext.Border
LAYOUT, REPAINT
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Modifier and Type | Method and Description |
---|---|
int |
getSecondaryDirection()
getSecondaryDirection returns the direction in
which the secondary sequence is rendered. |
FeatureHolder |
getSecondaryFeatures()
getSecondaryFeatures returns the features on the
secondary sequence. |
RangeLocation |
getSecondaryRange()
getSecondaryRange returns the range of the
secondary sequence currently rendered. |
SymbolList |
getSecondarySymbols()
getSecondarySymbols returns the symbols of the
secondary sequence. |
int |
graphicsToSecondarySequence(double graphicsPos)
graphicsToSecondarySequence converts a graphical
position to a sequence coordinate on the secondary sequence. |
int |
graphicsToSecondarySequence(Point point)
graphicsToSecondarySequence converts a graphical
position to a secondary sequence index. |
double |
secondarySequenceToGraphics(int sequencePos)
secondarySequenceToGraphics converts a sequence
coordinate on the secondary sequence to a graphical position. |
getDirection, getFeatures, getFont, getLeadingBorder, getRange, getScale, getSymbols, getTrailingBorder, graphicsToSequence, graphicsToSequence, sequenceToGraphics
int getSecondaryDirection()
getSecondaryDirection
returns the direction in
which the secondary sequence is rendered. This may be either
HORIZONTAL or VERTICAL.int
.SymbolList getSecondarySymbols()
getSecondarySymbols
returns the symbols of the
secondary sequence.SymbolList
.FeatureHolder getSecondaryFeatures()
getSecondaryFeatures
returns the features on the
secondary sequence.FeatureHolder
.RangeLocation getSecondaryRange()
getSecondaryRange
returns the range of the
secondary sequence currently rendered.RangeLocation
.double secondarySequenceToGraphics(int sequencePos)
secondarySequenceToGraphics
converts a sequence
coordinate on the secondary sequence to a graphical position.sequencePos
- an int
.double
.int graphicsToSecondarySequence(double graphicsPos)
graphicsToSecondarySequence
converts a graphical
position to a sequence coordinate on the secondary sequence.graphicsPos
- a double
.int
.int graphicsToSecondarySequence(Point point)
graphicsToSecondarySequence
converts a graphical
position to a secondary sequence index.point
- a Point
.int
.Copyright © 2014 BioJava. All rights reserved.