Package org.biojava.bio.gui.sequence
Interface PairwiseRenderContext
- All Superinterfaces:
SequenceRenderContext,SwingConstants
- All Known Implementing Classes:
PairwiseSequencePanel,SubPairwiseRenderContext
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.- Since:
- 1.2
- Author:
- Keith James
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.gui.sequence.SequenceRenderContext
SequenceRenderContext.Border -
Field Summary
Fields inherited from interface org.biojava.bio.gui.sequence.SequenceRenderContext
LAYOUT, REPAINTFields 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
Modifier and TypeMethodDescriptionintgetSecondaryDirectionreturns the direction in which the secondary sequence is rendered.getSecondaryFeaturesreturns the features on the secondary sequence.getSecondaryRangereturns the range of the secondary sequence currently rendered.getSecondarySymbolsreturns the symbols of the secondary sequence.intgraphicsToSecondarySequence(double graphicsPos) graphicsToSecondarySequenceconverts a graphical position to a sequence coordinate on the secondary sequence.intgraphicsToSecondarySequence(Point point) graphicsToSecondarySequenceconverts a graphical position to a secondary sequence index.doublesecondarySequenceToGraphics(int sequencePos) secondarySequenceToGraphicsconverts 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 Details
-
getSecondaryDirection
int getSecondaryDirection()getSecondaryDirectionreturns the direction in which the secondary sequence is rendered. This may be either HORIZONTAL or VERTICAL.- Returns:
- an
int.
-
getSecondarySymbols
getSecondarySymbolsreturns the symbols of the secondary sequence.- Returns:
- a
SymbolList.
-
getSecondaryFeatures
getSecondaryFeaturesreturns the features on the secondary sequence.- Returns:
- a
FeatureHolder.
-
getSecondaryRange
getSecondaryRangereturns the range of the secondary sequence currently rendered.- Returns:
- a
RangeLocation.
-
secondarySequenceToGraphics
secondarySequenceToGraphicsconverts a sequence coordinate on the secondary sequence to a graphical position.- Parameters:
sequencePos- anint.- Returns:
- a
double.
-
graphicsToSecondarySequence
graphicsToSecondarySequenceconverts a graphical position to a sequence coordinate on the secondary sequence.- Parameters:
graphicsPos- adouble.- Returns:
- an
int.
-
graphicsToSecondarySequence
graphicsToSecondarySequenceconverts a graphical position to a secondary sequence index.- Parameters:
point- aPoint.- Returns:
- an
int.
-