Package org.pentaho.reporting.libraries.libsparklines

Examples of org.pentaho.reporting.libraries.libsparklines.PieGraphDrawable


      drawable.setSpacing(spacing);
      return drawable;
    }
    else if ("pie".equals(type))
    {
      final PieGraphDrawable drawable = new PieGraphDrawable();
      if (data.length < 1)
      {
        return null;
      }
      drawable.setValue(data[0]);
      drawable.setColor(color);
      drawable.setBackground(backgroundColor);
      drawable.setLowColor(lowColor);
      drawable.setHighColor(highColor);
      drawable.setMediumColor(mediumColor);
      drawable.setCounterClockWise(counterClockWise);
      drawable.setStartAngle(startAngle);
      if (lowSlice != null)
      {
        drawable.setLowSlice(lowSlice);
      }
      if (mediumSlice != null)
      {
        drawable.setMediumSlice(mediumSlice);
      }
      if (highSlice != null)
      {
        drawable.setHighSlice(highSlice);
      }

      return drawable;
    }
    return null;
View Full Code Here


    final Number highSlice = ElementTypeUtils.getNumberAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.HIGH_SLICE, new Double(1));
    final boolean clockwise = ElementTypeUtils.getBooleanAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.COUNTER_CLOCKWISE, false);

    final PieGraphDrawable drawable = new PieGraphDrawable();
    drawable.setValue(numbers);
    drawable.setStartAngle(startAngle);
    drawable.setLowSlice(lowSlice);
    drawable.setMediumSlice(mediumSlice);
    drawable.setHighSlice(highSlice);
    drawable.setCounterClockWise(clockwise);
    return new PieSparklinesWrapper(drawable);
  }
View Full Code Here

    final Number highSlice = ElementTypeUtils.getNumberAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.HIGH_SLICE, new Double(1));
    final boolean clockwise = ElementTypeUtils.getBooleanAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.COUNTER_CLOCKWISE, false);

    final PieGraphDrawable drawable = new PieGraphDrawable();
    drawable.setValue(numbers);
    drawable.setStartAngle(startAngle);
    drawable.setLowSlice(lowSlice);
    drawable.setMediumSlice(mediumSlice);
    drawable.setHighSlice(highSlice);
    drawable.setCounterClockWise(clockwise);
    return new PieSparklinesWrapper(drawable);
  }
View Full Code Here

      drawable.setSpacing(spacing);
      return drawable;
    }
    else if ("pie".equals(type))
    {
      final PieGraphDrawable drawable = new PieGraphDrawable();
      if (data.length < 1)
      {
        return null;
      }
      drawable.setValue(data[0]);
      drawable.setColor(color);
      drawable.setBackground(backgroundColor);
      drawable.setLowColor(lowColor);
      drawable.setHighColor(highColor);
      drawable.setMediumColor(mediumColor);
      drawable.setCounterClockWise(counterClockWise);
      drawable.setStartAngle(startAngle);
      if (lowSlice != null)
      {
        drawable.setLowSlice(lowSlice);
      }
      if (mediumSlice != null)
      {
        drawable.setMediumSlice(mediumSlice);
      }
      if (highSlice != null)
      {
        drawable.setHighSlice(highSlice);
      }

      return drawable;
    }
    return null;
View Full Code Here

    final Number highSlice = ElementTypeUtils.getNumberAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.HIGH_SLICE, new Double(1));
    final boolean clockwise = ElementTypeUtils.getBooleanAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.COUNTER_CLOCKWISE, false);

    final PieGraphDrawable drawable = new PieGraphDrawable();
    drawable.setValue(numbers);
    drawable.setStartAngle(startAngle);
    drawable.setLowSlice(lowSlice);
    drawable.setMediumSlice(mediumSlice);
    drawable.setHighSlice(highSlice);
    drawable.setCounterClockWise(clockwise);
    return new PieSparklinesWrapper(drawable);
  }
View Full Code Here

    final Number highSlice = ElementTypeUtils.getNumberAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.HIGH_SLICE, new Double(1));
    final boolean clockwise = ElementTypeUtils.getBooleanAttribute(element, SparklineAttributeNames.NAMESPACE,
        SparklineAttributeNames.COUNTER_CLOCKWISE, false);

    final PieGraphDrawable drawable = new PieGraphDrawable();
    drawable.setValue(numbers);
    drawable.setStartAngle(startAngle);
    drawable.setLowSlice(lowSlice);
    drawable.setMediumSlice(mediumSlice);
    drawable.setHighSlice(highSlice);
    drawable.setCounterClockWise(clockwise);
    return new PieSparklinesWrapper(drawable);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.libsparklines.PieGraphDrawable

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.