Search in sources :

Example 1 with Stroke

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);
}
Also used : BasicStroke(com.google.code.appengine.awt.BasicStroke) LineChartProperties(org.krysalis.jcharts.properties.LineChartProperties) BasicStroke(com.google.code.appengine.awt.BasicStroke) Stroke(com.google.code.appengine.awt.Stroke) ChartStroke(org.krysalis.jcharts.properties.util.ChartStroke) Shape(com.google.code.appengine.awt.Shape) Rectangle2D(com.google.code.appengine.awt.geom.Rectangle2D) Paint(com.google.code.appengine.awt.Paint) PivotTableData(org.activityinfo.shared.report.content.PivotTableData)

Aggregations

BasicStroke (com.google.code.appengine.awt.BasicStroke)1 Paint (com.google.code.appengine.awt.Paint)1 Shape (com.google.code.appengine.awt.Shape)1 Stroke (com.google.code.appengine.awt.Stroke)1 Rectangle2D (com.google.code.appengine.awt.geom.Rectangle2D)1 PivotTableData (org.activityinfo.shared.report.content.PivotTableData)1 LineChartProperties (org.krysalis.jcharts.properties.LineChartProperties)1 ChartStroke (org.krysalis.jcharts.properties.util.ChartStroke)1