public final class DrawSettings
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
java.awt.Color |
backboneColor |
java.awt.Stroke |
backboneStroke |
float |
backboneWidth |
java.awt.Color |
bondColor |
java.awt.Color |
bondColorPseudo |
float |
bondLength |
java.awt.Stroke |
bondStroke |
java.awt.Stroke |
bondStrokePseudo |
float |
bondWidth |
double |
circularStartAngle |
private NucStyle |
defaultStyle |
boolean |
drawBackboneCurved |
boolean |
drawBackboneInHelix |
boolean |
drawBackboneInLoops |
boolean |
drawBondsInHelix |
boolean |
drawNumbers |
boolean |
drawNumbersAtHelix |
int |
drawNumbersInterval |
java.awt.Stroke |
editBondStroke |
java.awt.Color |
hint |
java.awt.Color |
hintEmphasis |
float |
loopSpacing
Spacing between nucs in a loop or hairpin.
|
java.awt.Color |
nucFillColor |
java.awt.Color |
nucFocusColor |
java.awt.Font |
nucFont |
java.awt.Color |
nucHitColor |
java.awt.Color |
nucOutlineColor |
java.awt.Stroke |
nucOutlineSelStroke |
java.awt.Stroke |
nucOutlineStroke |
float |
nucOutlineWidth |
float |
nucRadius |
java.awt.Color |
nucSelColor |
float |
nucSpacing
Spacing between nucs in a helix.
|
java.awt.Color |
nucTextColor |
float |
numberDistance |
java.awt.Font |
numberFont |
java.awt.Color |
numberLineColor |
float |
numberLineMargin |
java.awt.Stroke |
numberLineStroke |
float |
numberLineWidth |
float |
pseudoBondWidth |
java.awt.Color |
sceneBgColor |
java.awt.Color |
selBandFillColor |
java.awt.Color |
selBandLineColor |
java.awt.Stroke |
selBandOutline |
Constructor and Description |
---|
DrawSettings() |
Modifier and Type | Method and Description |
---|---|
float |
calcBondLength() |
float |
calcOptimalLoopDistance(int nucCount,
int endSpacers)
Calculate the optimal circumference for a circle containing the given number of nucleotides.
|
float |
calcOptimalLoopDistance(Nuc n1,
Nuc n2,
int endSpacers)
Calculate the optimal circumference for a circle containing nucs in the given region.
|
float |
calcOptimalNuc2NucDistance(int nucCount) |
float |
calcOptimalNuc2NucDistance(Nuc n1,
Nuc n2)
Calculate the optimal distance between nuc midpoints.
|
float |
calcOptimalOuterDistance(int nucCount,
int endSpacers) |
float |
calcOptimalOuterDistance(Nuc n1,
Nuc n2,
int endSpacers)
Calculate the optimal distance from the outside of one nuc to the outside of another.
|
DrawSettings |
copy() |
void |
fillStyle(Nuc n,
NucStyle fillProperties) |
NucStyle |
getStyle(Nuc n) |
float |
nucDiameter() |
float |
nucleotideRadius(Nuc nuc) |
void |
onSettingsChanged()
Call this to update dependent settings whenever settings have been changed.
|
public java.awt.Color backboneColor
public transient java.awt.Stroke backboneStroke
public float backboneWidth
public java.awt.Color bondColor
public java.awt.Color bondColorPseudo
public transient float bondLength
public transient java.awt.Stroke bondStroke
public transient java.awt.Stroke bondStrokePseudo
public float bondWidth
public double circularStartAngle
private transient NucStyle defaultStyle
public boolean drawBackboneCurved
public boolean drawBackboneInHelix
public boolean drawBackboneInLoops
public boolean drawBondsInHelix
public boolean drawNumbers
public boolean drawNumbersAtHelix
public int drawNumbersInterval
public transient java.awt.Stroke editBondStroke
public java.awt.Color hint
public java.awt.Color hintEmphasis
public float loopSpacing
calcOptimalLoopDistance(Nuc, Nuc, int)
for details.public java.awt.Color nucFillColor
public java.awt.Color nucFocusColor
public java.awt.Font nucFont
public java.awt.Color nucHitColor
public java.awt.Color nucOutlineColor
public transient java.awt.Stroke nucOutlineSelStroke
public transient java.awt.Stroke nucOutlineStroke
public float nucOutlineWidth
public float nucRadius
public java.awt.Color nucSelColor
public float nucSpacing
calcOptimalNuc2NucDistance(Nuc, Nuc)
for details.public java.awt.Color nucTextColor
public float numberDistance
public java.awt.Font numberFont
public java.awt.Color numberLineColor
public float numberLineMargin
public transient java.awt.Stroke numberLineStroke
public float numberLineWidth
public float pseudoBondWidth
public java.awt.Color sceneBgColor
public java.awt.Color selBandFillColor
public java.awt.Color selBandLineColor
public transient java.awt.Stroke selBandOutline
public float calcBondLength()
public float calcOptimalLoopDistance(int nucCount, int endSpacers)
nucCount
- the number of nucleotides in the circleendSpacers
- the number of spacers required on the outside of the terminal nucs (n1=first and n2=last)
0 means no space before the center of n1 or the after the center of n2
(e.g. the arc-length of a hairpin loop from the center of n1 to the center of n2)
1 means a single spacer (e.g. connecting n1 to n2 in a circle)
2 means a spacer before n1 and after n2 (e.g. a spacer connecting n1 to a previous nuc and another connecting n2 to a subsequent nuc)public float calcOptimalLoopDistance(Nuc n1, Nuc n2, int endSpacers)
n1
- the nucleotide at the start of the region (inclusive)n2
- the nucleotide at the end of the region (inclusive)endSpacers
- the number of spacers required on the outside of the region.
0 means no space before the center of n1 or the after the center of n2
(e.g. the arc-length of a hairpin loop from the center of n1 to the center of n2)
1 means a single spacer (e.g. connecting n1 to n2 in a circle)
2 means a spacer before n1 and after n2 (e.g. a spacer connecting n1 to a previous nuc and another connecting n2 to a subsequent nuc)public float calcOptimalNuc2NucDistance(int nucCount)
public float calcOptimalNuc2NucDistance(Nuc n1, Nuc n2)
calcOptimalOuterDistance(Nuc, Nuc, int)
for a calculation
that includes the end-to-end distance when the outer ends are included.public float calcOptimalOuterDistance(int nucCount, int endSpacers)
public float calcOptimalOuterDistance(Nuc n1, Nuc n2, int endSpacers)
public DrawSettings copy()
public float nucDiameter()
public float nucleotideRadius(Nuc nuc)
public void onSettingsChanged()