|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.gui.sequence.SubCircularRendererContext
public class SubCircularRendererContext
A renderer context that allows some or all properties of another context to be over-ridden.
| Constructor Summary | |
|---|---|
SubCircularRendererContext(CircularRendererContext delegate,
SymbolList symbols,
FeatureHolder features,
double radius)
Create a new sub context. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 NaN
NullPointerException - if delegate is null| Method Detail |
|---|
public double getOffset()
CircularRendererContextThis is equivalent to adding the offset to all calculated angles.
getOffset in interface CircularRendererContextpublic double getAngle(int indx)
CircularRendererContext
getAngle in interface CircularRendererContextindx - the sequence offset
public int getIndex(double angle)
CircularRendererContext
getIndex in interface CircularRendererContextangle - the angle arround the circle
public double getRadius()
CircularRendererContext
getRadius in interface CircularRendererContextpublic SymbolList getSymbols()
CircularRendererContext
getSymbols in interface CircularRendererContextpublic FeatureHolder getFeatures()
CircularRendererContext
getFeatures in interface CircularRendererContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||