public class SubCircularRendererContext extends Object implements CircularRendererContext
| Constructor and Description | 
|---|
SubCircularRendererContext(CircularRendererContext delegate,
                          SymbolList symbols,
                          FeatureHolder features,
                          double radius)
Create a new sub context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
getAngle(int indx)
Return the angle for an index into a sequence. 
 | 
FeatureHolder | 
getFeatures()
The features to render. 
 | 
int | 
getIndex(double angle)
Calculate the position in the sequence relating to the angle. 
 | 
double | 
getOffset()
Get the angle through which the origin of the sequence is rotated through. 
 | 
double | 
getRadius()
Get the current radius at which data should be rendered. 
 | 
SymbolList | 
getSymbols()
The SymbolList that is currently rendered by this context. 
 | 
public SubCircularRendererContext(CircularRendererContext delegate, SymbolList symbols, FeatureHolder features, double radius)
Supply the real values for symbols, features and radius if you want this context to mask the values of the parent context. Otherwise, provide the default values.
delegate - the original context to wrapsymbols - the SymbolList to return for getSymbols(), or nullfeatures - the FeatureHolder to return for getFeatures(), or nullradius - the radius to return for getRadius(), or NaNNullPointerException - if delegate is nullpublic double getOffset()
CircularRendererContextThis is equivalent to adding the offset to all calculated angles.
getOffset in interface CircularRendererContextpublic double getAngle(int indx)
CircularRendererContextgetAngle in interface CircularRendererContextindx - the sequence offsetpublic int getIndex(double angle)
CircularRendererContextgetIndex in interface CircularRendererContextangle - the angle arround the circlepublic double getRadius()
CircularRendererContextgetRadius in interface CircularRendererContextpublic SymbolList getSymbols()
CircularRendererContextgetSymbols in interface CircularRendererContextpublic FeatureHolder getFeatures()
CircularRendererContextgetFeatures in interface CircularRendererContextCopyright © 2020 BioJava. All rights reserved.