|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.objex.progeny.anywhere.data.MarkerLegend
public class MarkerLegend
MarkerLegend stores and manages chromosome legend items. A chromosome legend item acts as key (on the marker legend) to a chromsome of the same properties in a person's genetic data.
A single line is drawn (just as subtext legend items) per generation for each marker in marker legend. The marker names are drawn to the left and below the left most person in each generation.
If there are subtext legend items, the marker names or marker legend items will be rendered below that last subtext line. Rendering markers or haplotypes can be switched on or off by setting the
ProgenyAnywhere.setShowHaplotypes(Boolean) property appropriately
ChromosomeLegendItem,
Serialized Form| Constructor Summary | |
|---|---|
MarkerLegend()
Create new instance of MarkerLegend |
|
| Method Summary | |
|---|---|
void |
addChromoLegendItem(ChromosomeLegendItem a_chromosome)
Add a chromomsome legend item to the current list/map of items in this legend. |
void |
clear()
Deletes all the chromosome legend items. |
java.util.Map<java.lang.Integer,ChromosomeLegendItem> |
getChromoItems()
|
ChromosomeLegendItem |
getChromosomeItemForId(int ai_chromoid)
|
ChromosomeLegendItem |
getChromosomeItemForName(java.lang.String as_chromoname)
|
ChromosomeLegendItem |
getChromosomeLegendItem(int ai_marker_fieldid)
|
int |
getItemCount()
|
MarkerLegendItem |
getMarkerItem(int ai_fieldid)
|
MarkerLegendItem |
getMarkerItem(java.lang.String as_name)
|
java.util.Iterator<ChromosomeLegendItem> |
iterator()
|
java.util.Iterator<MarkerLegendItem> |
iterator(boolean ab_chromosome_order)
|
void |
setChromoItems(java.util.Map<java.lang.Integer,ChromosomeLegendItem> a_chromoItems)
Sets a new map of chromosome legend items keyed by sequence ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarkerLegend()
| Method Detail |
|---|
public ChromosomeLegendItem getChromosomeItemForId(int ai_chromoid)
ai_chromoid - The ID of the chromosome that is linked to this chromosome legend item
public ChromosomeLegendItem getChromosomeLegendItem(int ai_marker_fieldid)
ai_marker_fieldid - The ID of the marker on a chromosome that is linked to the chromosome legend item to be retrieved
public void setChromoItems(java.util.Map<java.lang.Integer,ChromosomeLegendItem> a_chromoItems)
a_chromoItems - The new map of chromosome legend items keyed by sequence ID.public java.util.Map<java.lang.Integer,ChromosomeLegendItem> getChromoItems()
public void addChromoLegendItem(ChromosomeLegendItem a_chromosome)
a_chromosome - New chromosome legend item to be addedpublic java.util.Iterator<ChromosomeLegendItem> iterator()
public int getItemCount()
public java.util.Iterator<MarkerLegendItem> iterator(boolean ab_chromosome_order)
ab_chromosome_order - If true then markers will be returned in chromosome order and then by marker sequence within a chromosome. Otherwise the order will be marker sequence regardless of
what chromosome the marker is on.
public ChromosomeLegendItem getChromosomeItemForName(java.lang.String as_chromoname)
as_chromoname - The name of the chromosome linked to the chromosome legend item to be retrieved.
public MarkerLegendItem getMarkerItem(java.lang.String as_name)
as_name - The name of the marker linked to this marker legend item to be returned
public MarkerLegendItem getMarkerItem(int ai_fieldid)
ai_fieldid - The fieldid of the marker legend item to be returned.
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||