Package org.biojava.bio.gui.sequence
Interface CircularRendererContext
- All Known Implementing Classes:
SubCircularRendererContext
public interface CircularRendererContext
A context providing information for rendering sequences into circular coordinate systems.
Note: All angles are measured in radians, using the normal Java graphics concepts of angles.
- Since:
- 1.4
- Author:
- Matthew Pocock
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getAngle
(int indx) Return the angle for an index into a sequence.The features to render.int
getIndex
(double angle) Calculate the position in the sequence relating to the angle.double
Get the angle through which the origin of the sequence is rotated through.double
Get the current radius at which data should be rendered.The SymbolList that is currently rendered by this context.
-
Method Details
-
getOffset
double getOffset()Get the angle through which the origin of the sequence is rotated through.This is equivalent to adding the offset to all calculated angles.
- Returns:
- the rotation offset
-
getAngle
Return the angle for an index into a sequence.- Parameters:
indx
- the sequence offset- Returns:
- the angle this offset is to be rendered to
-
getIndex
Calculate the position in the sequence relating to the angle.- Parameters:
angle
- the angle arround the circle- Returns:
- the index of the symbol rendered at that angle
-
getRadius
double getRadius()Get the current radius at which data should be rendered.- Returns:
- the radius
-
getSymbols
The SymbolList that is currently rendered by this context.- Returns:
- the Sequence value
-
getFeatures
The features to render.- Returns:
- a FeatureHolder with the Features to render
-