Examples of JRChartPlot


Examples of net.sf.jasperreports.engine.JRChartPlot

  /**
   *
   */
  public Object createObject(Attributes atts)
  {
    JRChartPlot plot = (JRChartPlot) digester.peek();

    Color color = JRColorUtil.getColor(atts.getValue(JRXmlConstants.ATTRIBUTE_backcolor), Color.black);
    if (color != null)
    {
      plot.setBackcolor(color);
    }

    PlotOrientationEnum orientation = PlotOrientationEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_orientation));
    if (orientation != null)
    {
      plot.setOrientation(orientation.getOrientation());
    }
    String foregroundAlpha = atts.getValue(JRXmlConstants.ATTRIBUTE_foregroundAlpha);
    if (foregroundAlpha != null && foregroundAlpha.length() > 0)
    {
      plot.setForegroundAlpha(Float.valueOf(foregroundAlpha));
    }
    String backgroundAlpha = atts.getValue(JRXmlConstants.ATTRIBUTE_backgroundAlpha);
    if (backgroundAlpha != null && backgroundAlpha.length() > 0)
    {
      plot.setBackgroundAlpha(Float.valueOf(backgroundAlpha));
    }
    String labelRotation = atts.getValue(JRXmlConstants.ATTRIBUTE_labelRotation);
    if (labelRotation != null && labelRotation.length() > 0)
    {
      plot.setLabelRotation(Double.valueOf(labelRotation));
    }
    return plot;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.