|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.projectportfolio.detailspanel.chart.MiniBarChart
public class MiniBarChart
A mini bar chart. Use GoogleChart to generate the chart.
Field Summary | |
---|---|
static int |
BAR_WIDTH
The width of a bar. |
static int |
CHART_HEIGHT
The height of the chart. |
protected java.lang.String |
granularity
The granularity of the data. |
static int |
MAX_WIDTH
The max width of the chart. |
protected java.util.List<java.lang.Double> |
streamData
The stream of this chart. |
protected java.util.List<java.util.List<java.lang.Double>> |
streams
The list of original streams. |
Constructor Summary | |
---|---|
MiniBarChart(java.util.List<org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream> streams,
PortfolioMeasureConfiguration configuration,
java.lang.String granularity)
|
Method Summary | |
---|---|
java.lang.String |
getChartColor()
|
PortfolioMeasureConfiguration |
getConfiguration()
|
java.lang.String |
getImageUrl()
|
int |
getLastValidIndex()
|
double |
getLatestValue()
|
static java.util.List<java.lang.Double> |
getStreamData(org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream stream)
Return a List of Double from the given telemetry stream. |
org.apache.wicket.PageParameters |
getTelemetryPageParameters()
|
java.lang.String |
getValueColor()
Return the color for the latest value. |
void |
setTelemetryPageParameters(org.apache.wicket.PageParameters telemetryPageParameters)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<java.lang.Double> streamData
protected java.util.List<java.util.List<java.lang.Double>> streams
protected java.lang.String granularity
public static final int BAR_WIDTH
public static final int MAX_WIDTH
public static final int CHART_HEIGHT
Constructor Detail |
---|
public MiniBarChart(java.util.List<org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream> streams, PortfolioMeasureConfiguration configuration, java.lang.String granularity)
streams
- The stream of this chart.configuration
- The configuration of this chart.granularity
- The granularity of the data.Method Detail |
---|
public static final java.util.List<java.lang.Double> getStreamData(org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream stream)
stream
- a TelemetryStream
public java.lang.String getImageUrl()
public java.lang.String getChartColor()
public double getLatestValue()
public java.lang.String getValueColor()
public void setTelemetryPageParameters(org.apache.wicket.PageParameters telemetryPageParameters)
telemetryPageParameters
- the telemetryPageParameters to setpublic org.apache.wicket.PageParameters getTelemetryPageParameters()
public PortfolioMeasureConfiguration getConfiguration()
public int getLastValidIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |