Modifier and Type | Field and Description |
---|---|
(package private) int |
indexInScene
Stores the index of the nucleotide within the full scene.
|
java.awt.geom.Point2D.Float |
location |
int |
number |
(package private) Bond |
pair |
(package private) Strand |
strand |
NucStyle |
style |
java.lang.String |
symbol |
Constructor and Description |
---|
Nuc() |
Nuc(java.lang.String symbol) |
Nuc(java.lang.String symbol,
float x,
float y) |
Modifier and Type | Method and Description |
---|---|
Nuc |
clone() |
static int |
compare(Nuc lhs,
Nuc rhs)
Compares based on index in scene.
|
int |
compareTo(Nuc other)
Compares based on index in scene.
|
java.util.Set<Nuc> |
getBases()
Implementation of
INucGroup.getBases() |
Motif.Branch |
getBranch() |
Motif.Domain |
getDomain() |
Motif.Helix |
getHelix() |
Motif.Loop |
getLoop() |
Motif.MultiLoop |
getMultiLoop(int minimumBranches,
boolean includeExterior) |
Nuc |
getNext() |
Nuc |
getNext(int steps) |
Bond |
getPairBond() |
Nuc |
getPaired() |
Nuc |
getPaired(boolean includePseudo) |
Nuc |
getPrev() |
RnaScene |
getScene() |
Strand |
getStrand() |
int |
getStrandIndex() |
int |
indexInScene()
Gets the overall index of this nucleotide, including all nucleotides in previous strands.
|
int |
indexInScene(int[] strandIndexes)
Gets the overall index of this nucleotide, given the starting indices for each strand as specified in strandIndexes
For example:
strandIndexes = int[] { 1, 20, 100 }
for a Nuc with index=0 in the first strand, indexInScene would return 1.
|
int |
indexInStrand() |
boolean |
isPaired() |
boolean |
isPaired(boolean includePseudo) |
Nuc |
nextInScene() |
Nuc |
nextInScene(int steps,
boolean loopToBeginning) |
NucStyle |
style()
Returns the style for this nucleotide, creating a new one if necessary.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
java.lang.String |
toString(java.lang.String format) |
void |
transform(java.awt.geom.AffineTransform tr) |
void |
transformAll(java.awt.geom.AffineTransform tr)
Implementation of
INucGroup.transformAll(AffineTransform) |
void |
translate(float dx,
float dy) |
transient int indexInScene
public java.awt.geom.Point2D.Float location
public int number
Bond pair
transient Strand strand
public NucStyle style
public java.lang.String symbol
public Nuc()
public Nuc(java.lang.String symbol)
public Nuc(java.lang.String symbol, float x, float y)
public Nuc clone()
clone
in class java.lang.Object
public static int compare(Nuc lhs, Nuc rhs)
public int compareTo(Nuc other)
compareTo
in interface java.lang.Comparable<Nuc>
public java.util.Set<Nuc> getBases()
INucGroup.getBases()
public Motif.Branch getBranch()
public Motif.Domain getDomain()
public Motif.Helix getHelix()
public Motif.Loop getLoop()
public Motif.MultiLoop getMultiLoop(int minimumBranches, boolean includeExterior)
public Nuc getNext()
public Nuc getNext(int steps)
public Bond getPairBond()
public Nuc getPaired()
public Nuc getPaired(boolean includePseudo)
public Nuc getPrev()
public RnaScene getScene()
public Strand getStrand()
public int getStrandIndex()
public int indexInScene()
public int indexInScene(int[] strandIndexes)
public int indexInStrand()
public boolean isPaired()
public boolean isPaired(boolean includePseudo)
public Nuc nextInScene()
public Nuc nextInScene(int steps, boolean loopToBeginning)
@NotNull public NucStyle style()
public java.lang.String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String format)
public void transform(java.awt.geom.AffineTransform tr)
public void transformAll(java.awt.geom.AffineTransform tr)
INucGroup.transformAll(AffineTransform)
transformAll
in interface INucGroup
public void translate(float dx, float dy)