Package no.uib.jsparklines.data
Class Chromosome
java.lang.Object
no.uib.jsparklines.data.Chromosome
- All Implemented Interfaces:
Serializable
,Comparable<Chromosome>
public class Chromosome extends Object implements Comparable<Chromosome>, Serializable
Object storing data about one data point in a XY plot.
- Author:
- Harald Barsnes
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Chromosome(String chromosomeName)
Create a new Chromosome. -
Method Summary
Modifier and Type Method Description int
compareTo(Chromosome o)
Compares based on the chromosome numbers.String
toString()
Returns the chromosome as a string.
-
Field Details
-
UNKNOWN
Integer value representing an unknown chromosome.
-
-
Constructor Details
-
Chromosome
Create a new Chromosome.- Parameters:
chromosomeName
- the name of the chromosome, integer or X, Y, Z, W is preferred
-
-
Method Details
-
toString
Returns the chromosome as a string. -
compareTo
Compares based on the chromosome numbers. X, Y, Z and W are ordered at the end, in this order.- Specified by:
compareTo
in interfaceComparable<Chromosome>
-