public class SeriesSVG extends FHSeries
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
isVisible |
private java.awt.Color |
labelColor |
private java.awt.Color |
lineColor |
private java.lang.String |
taxon |
Constructor and Description |
---|
SeriesSVG(FHSeries series)
Create a series from an FHSeries.
|
SeriesSVG(FHSeries series,
java.lang.String taxon)
Create a series from an FHSeries plus the taxon string.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getLabelColor()
Get the color used for labels for this series.
|
java.awt.Color |
getLineColor()
Get the line color for this series.
|
java.lang.String |
getTaxon()
Get the taxon for this series.
|
void |
setLabelColor(java.awt.Color labelColor)
Set the label color for this series.
|
void |
setLineColor(java.awt.Color color)
Set the color the lines for this series should be drawn using.
|
void |
setTaxon(java.lang.String taxon)
Set the taxon for this series.
|
void |
toggleVisibility()
Toggle whether this series should be visible in charts.
|
getCategoryEntries, getEventYears, getFirstYear, getInjuryYears, getLastYear, getLength, getRecordingYears, getTitle, hasBark, hasPith
boolean isVisible
private java.lang.String taxon
private java.awt.Color lineColor
private java.awt.Color labelColor
public SeriesSVG(FHSeries series, java.lang.String taxon) throws java.lang.Exception
series
- taxon
- java.lang.Exception
public SeriesSVG(FHSeries series) throws java.lang.Exception
series
- java.lang.Exception
public void toggleVisibility()
public void setTaxon(java.lang.String taxon)
taxon
- public void setLineColor(java.awt.Color color)
color
- public java.lang.String getTaxon()
public java.awt.Color getLineColor()
public java.awt.Color getLabelColor()
public void setLabelColor(java.awt.Color labelColor)
labelColor
-