Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRChart


   *
   */
  public JRPrintElement convert(ReportConverter reportConverter, JRElement element)
  {
    JRBasePrintImage printImage = new JRBasePrintImage(reportConverter.getDefaultStyleProvider());
    JRChart chart = (JRChart)element;

    copyElement(reportConverter, chart, printImage);
   
    printImage.copyBox(chart.getLineBox());
   
    printImage.setAnchorName(JRExpressionUtil.getExpressionText(chart.getAnchorNameExpression()));
    printImage.setBookmarkLevel(chart.getBookmarkLevel());
    printImage.setLinkType(chart.getLinkType());
    printImage.setOnErrorType(OnErrorTypeEnum.ICON);
    printImage.setRenderer(getRenderer(reportConverter, chart));
    printImage.setScaleImage(ScaleImageEnum.CLIP);
   
    return printImage;
View Full Code Here


  private static final String ATTRIBUTE_yOffset = "yOffset";
  private static final String ATTRIBUTE_isShowLabels = "isShowLabels";

  public Object createObject(Attributes atts)
  {
    JRChart chart = (JRChart) digester.peek();
    JRDesignBar3DPlot plot = (JRDesignBar3DPlot)chart.getPlot();

    String xOffset = atts.getValue(ATTRIBUTE_xOffset);
    if (xOffset != null && xOffset.length() > 0) {
      plot.setXOffset(Double.valueOf(xOffset));
    }
View Full Code Here

public class JRLinePlotFactory extends JRBaseFactory {
  private static final String ATTRIBUTE_isShowShapes = "isShowShapes";
  private static final String ATTRIBUTE_isShowLines = "isShowLines";
 
  public Object createObject( Attributes attrs ){
    JRChart chart = (JRChart)digester.peek();
    JRDesignLinePlot plot = (JRDesignLinePlot)chart.getPlot();
   
    String isShowShapes = attrs.getValue( ATTRIBUTE_isShowShapes );
    if( isShowShapes != null && isShowShapes.length() > 0 ){
      plot.setShowShapes(Boolean.valueOf(isShowShapes) );
    }
View Full Code Here

  /**
   *
   */
  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

  /**
   *
   */
  public Object createObject(Attributes atts)
  {
    JRChart chart = (JRChart) digester.peek();
    JRDesignHighLowPlot plot = (JRDesignHighLowPlot)chart.getPlot();

    String isShowOpenTicks = atts.getValue(ATTRIBUTE_isShowOpenTicks);
    if (isShowOpenTicks != null && isShowOpenTicks.length() > 0) {
      plot.setShowOpenTicks(Boolean.valueOf(isShowOpenTicks));
    }
View Full Code Here

 
  private static final String ATTRIBUTE_isShowShapes = "isShowShapes";
  private static final String ATTRIBUTE_isShowLines = "isShowLines";
 
  public Object createObject( Attributes attrs ){
    JRChart chart = (JRChart)digester.peek();
    JRDesignTimeSeriesPlot plot = (JRDesignTimeSeriesPlot)chart.getPlot();
   
    String isShowShapes = attrs.getValue( ATTRIBUTE_isShowShapes );
    if( isShowShapes != null && isShowShapes.length() > 0 ){
      plot.setShowShapes(Boolean.valueOf(isShowShapes));
    }
View Full Code Here

  /**
   *
   */
  public Object createObject(Attributes atts) throws JRException
  {
    JRChart chart = (JRChart)digester.peek();
    JRDesignThermometerPlot thermometerPlot = (JRDesignThermometerPlot)chart.getPlot();

    String location = atts.getValue(ATTRIBUTE_valueLocation);
    ValueLocationEnum loc = ValueLocationEnum.getByName(atts.getValue(ATTRIBUTE_valueLocation));
    if (loc == null)
    {
View Full Code Here

  /**
   *
   */
  public static Color getForecolor(JRChartPlot plot)
  {
    JRChart chart = plot.getChart();
    if (chart != null)
    {
      return getForecolor(chart);
    }
    return Color.black;
View Full Code Here

    Color ownBackcolor = plot.getOwnBackcolor();
    if (ownBackcolor != null)
    {
      return ownBackcolor;
    }
    JRChart chart = plot.getChart();
    if (chart != null)
    {
      return getBackcolor(chart);
    }
    return Color.white;
View Full Code Here

  /**
   *
   */
  public Object createObject(Attributes atts)
  {
    JRChart chart = (JRChart) digester.peek();
    JRDesignCandlestickPlot plot = (JRDesignCandlestickPlot)chart.getPlot();

    String isShowVolume = atts.getValue(ATTRIBUTE_isShowVolume);
    if (isShowVolume != null && isShowVolume.length() > 0) {
      plot.setShowVolume(Boolean.valueOf(isShowVolume));
    }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRChart

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.