use of com.google.code.appengine.awt.Stroke in project activityinfo by bedatadriven.
the class ChartRendererJC method computeLineChartProperties.
private AxisChartTypeProperties computeLineChartProperties(PivotChartReportElement element, int dpi) {
List<PivotTableData.Axis> series = element.getContent().getData().getRootSeries().getLeaves();
Stroke[] stroke = new Stroke[series.size()];
Shape[] shape = new Shape[series.size()];
int si = 0;
for (PivotTableData.Axis s : series) {
stroke[si] = new BasicStroke(2f / 72f * dpi);
shape[si] = new Rectangle2D.Double(0, 0, 4f / 72f * dpi, 4f / 72f * dpi);
si++;
}
return new LineChartProperties(stroke, shape);
}
Aggregations