public class ProteinSequencePanel extends Object
| Constructor and Description |
|---|
ProteinSequencePanel(Color backgroundColor)
Creates a new ProteinSequencePanel object.
|
| Modifier and Type | Method and Description |
|---|---|
org.jfree.chart.ChartPanel |
getChartPanel()
Returns the chart panel.
|
org.jfree.chart.ChartPanel |
getSequencePlot(ProteinSequencePanelParent aProteinSequencePanelParent,
no.uib.jsparklines.data.JSparklinesDataset sparklineDataset,
HashMap<Integer,ArrayList<ResidueAnnotation>> proteinAnnotations,
boolean addReferenceLine,
boolean allowZooming)
Returns a sequence plot as a ChartPanel.
|
static ArrayList<no.uib.jsparklines.data.JSparklinesDataSeries> |
getSparkLineDataSeriesCoverage(double[] aaHeight,
int[] aaColorIndex,
HashMap<Integer,Color> colors)
Returns an array list with the coverage.
|
void |
setBackground(Color backgroundColor)
Set the background color.
|
void |
setReferenceLine(double referenceLineWidth,
Color referenceLineColor)
Set the reference line properties.
|
public ProteinSequencePanel(Color backgroundColor)
backgroundColor - the plot/chart background colorpublic void setBackground(Color backgroundColor)
backgroundColor - the plot/chart background colorpublic void setReferenceLine(double referenceLineWidth,
Color referenceLineColor)
referenceLineWidth - reference line widthreferenceLineColor - reference line colorpublic org.jfree.chart.ChartPanel getSequencePlot(ProteinSequencePanelParent aProteinSequencePanelParent, no.uib.jsparklines.data.JSparklinesDataset sparklineDataset, HashMap<Integer,ArrayList<ResidueAnnotation>> proteinAnnotations, boolean addReferenceLine, boolean allowZooming)
aProteinSequencePanelParent - the protein sequence panel parentsparklineDataset - the datasetproteinAnnotations - the protein annotationsaddReferenceLine - if true, a reference line is addedallowZooming - if true, the user can zoom in the created plot/chartpublic org.jfree.chart.ChartPanel getChartPanel()
public static ArrayList<no.uib.jsparklines.data.JSparklinesDataSeries> getSparkLineDataSeriesCoverage(double[] aaHeight, int[] aaColorIndex, HashMap<Integer,Color> colors)
aaHeight - the heightsaaColorIndex - the color indexescolors - the index to color mapCopyright © 2021. All rights reserved.