Example usage for org.jfree.chart.plot DefaultDrawingSupplier createStandardSeriesShapes

List of usage examples for org.jfree.chart.plot DefaultDrawingSupplier createStandardSeriesShapes

Introduction

In this page you can find the example usage for org.jfree.chart.plot DefaultDrawingSupplier createStandardSeriesShapes.

Prototype

public static Shape[] createStandardSeriesShapes() 

Source Link

Document

Creates an array of standard shapes to display for the items in series on charts.

Usage

From source file:com.xpn.xwiki.plugin.charts.params.ShapeChartParam.java

public void init() {
    choice = new ChoiceChartParam(getName()) {
        @Override//from  w ww.j a  v  a2s.c  o  m
        protected void init() {
            Shape[] shapes = DefaultDrawingSupplier.createStandardSeriesShapes();
            addChoice("square", shapes[0]);
            addChoice("circle", shapes[1]);
            addChoice("triangle-up", shapes[2]);
            addChoice("diamond", shapes[3]);
            addChoice("rectangle-horizontal", shapes[4]);
            addChoice("triangle-down", shapes[5]);
            addChoice("ellipse", shapes[6]);
            addChoice("triangle-right", shapes[7]);
            addChoice("rectangle-vertical", shapes[8]);
            addChoice("triangle-left", shapes[9]);
        }

        @Override
        public Class getType() {
            return Shape.class;
        }
    };
}