|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Nested Class Summary |
Nested classes inherited from class org.biojava.bio.gui.sequence.SequenceRenderContext |
SequenceRenderContext.Border |
Field Summary |
Fields inherited from interface org.biojava.bio.gui.sequence.SequenceRenderContext |
LAYOUT, REPAINT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Method Summary | |
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(java.awt.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. |
Methods inherited from interface org.biojava.bio.gui.sequence.SequenceRenderContext |
getDirection, getFeatures, getFont, getLeadingBorder, getRange, getScale, getSymbols, getTrailingBorder, graphicsToSequence, graphicsToSequence, sequenceToGraphics |
Method Detail |
public int getSecondaryDirection()
getSecondaryDirection
returns the direction in
which the secondary sequence is rendered. This may be either
HORIZONTAL or VERTICAL.
int
.public SymbolList getSecondarySymbols()
getSecondarySymbols
returns the symbols of the
secondary sequence.
SymbolList
.public FeatureHolder getSecondaryFeatures()
getSecondaryFeatures
returns the features on the
secondary sequence.
FeatureHolder
.public RangeLocation getSecondaryRange()
getSecondaryRange
returns the range of the
secondary sequence currently rendered.
RangeLocation
.public double secondarySequenceToGraphics(int sequencePos)
secondarySequenceToGraphics
converts a sequence
coordinate on the secondary sequence to a graphical position.
sequencePos
- an int
.
double
.public int graphicsToSecondarySequence(double graphicsPos)
graphicsToSecondarySequence
converts a graphical
position to a sequence coordinate on the secondary sequence.
graphicsPos
- a double
.
int
.public int graphicsToSecondarySequence(java.awt.Point point)
graphicsToSecondarySequence
converts a graphical
position to a secondary sequence index.
point
- a Point
.
int
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |