Package net.sf.jasperreports.charts.type

Examples of net.sf.jasperreports.charts.type.MeterShapeEnum


  public Object createObject(Attributes atts) throws JRException
  {
    JRChart chart = (JRChart)digester.peek();
    JRDesignMeterPlot meterPlot = (JRDesignMeterPlot)chart.getPlot();

    MeterShapeEnum shape = MeterShapeEnum.getByName(atts.getValue(ATTRIBUTE_shape));
    if (shape != null)
    {
      meterPlot.setShape(shape);
    }
View Full Code Here


    if (shape != null && (shape.getValue() < 0 || shape.getValue() > MeterShapeEnum.DIAL.getValue()))
    {
      throw new JRException("Unknown shape for MeterPlot");
    }

    MeterShapeEnum old = this.shapeValue;
    this.shapeValue = shape;
    getEventSupport().firePropertyChange(PROPERTY_SHAPE, old, this.shapeValue);
  }
View Full Code Here

    // Start by creating the plot that will hold the meter
    MeterPlot chartPlot = new MeterPlot((ValueDataset)getDataset());

    // Set the shape
    MeterShapeEnum shape = jrPlot.getShapeValue() == null ? MeterShapeEnum.PIE : jrPlot.getShapeValue();
    switch (shape)
    {
      case CHORD :
        chartPlot.setDialShape(DialShape.CHORD);
        break;
View Full Code Here

    // Start by creating the plot that will hold the meter
    MeterPlot chartPlot = new MeterPlot((ValueDataset)getDataset());
    JRMeterPlot jrPlot = (JRMeterPlot)getPlot();

    // Set the shape
    MeterShapeEnum shape = jrPlot.getShapeValue() == null ? MeterShapeEnum.PIE : jrPlot.getShapeValue();
   
    switch(shape)
    {
      case CHORD:
        chartPlot.setDialShape(DialShape.CHORD);
View Full Code Here

    // Start by creating the plot that will hold the meter
    MeterPlot chartPlot = new MeterPlot((ValueDataset)getDataset());
    JRMeterPlot jrPlot = (JRMeterPlot)getPlot();

    // Set the shape
    MeterShapeEnum shape = jrPlot.getShapeValue() == null ? MeterShapeEnum.DIAL : jrPlot.getShapeValue();
   
    switch(shape)
    {
      case CHORD:
        chartPlot.setDialShape(DialShape.CHORD);
View Full Code Here

    // Start by creating the plot that will hold the meter
    MeterPlot chartPlot = new MeterPlot((ValueDataset)getDataset());

    // Set the shape
    MeterShapeEnum shape = jrPlot.getShapeValue() == null ? MeterShapeEnum.PIE : jrPlot.getShapeValue();
    if (shape == MeterShapeEnum.CHORD)
      chartPlot.setDialShape(DialShape.CHORD);
    else if (shape == MeterShapeEnum.CIRCLE)
      chartPlot.setDialShape(DialShape.CIRCLE);
    else if (shape == MeterShapeEnum.DIAL)
View Full Code Here

    // Start by creating the plot that will hold the meter
    MeterPlot chartPlot = new MeterPlot((ValueDataset)getDataset());
    JRMeterPlot jrPlot = (JRMeterPlot)getPlot();

    // Set the shape
    MeterShapeEnum shape = jrPlot.getShapeValue() == null ? MeterShapeEnum.DIAL : jrPlot.getShapeValue();
   
    switch(shape)
    {
      case CHORD:
        chartPlot.setDialShape(DialShape.CHORD);
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.charts.type.MeterShapeEnum

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.