Package net.sf.jasperreports.charts.fill

Examples of net.sf.jasperreports.charts.fill.JRFillCategorySeries


        itemHyperlinks = new HashMap();
      }
     
      for(int i = 0; i < categorySeries.length; i++)
      {
        JRFillCategorySeries crtCategorySeries = categorySeries[i];
       
        Comparable seriesName = crtCategorySeries.getSeries();
        if (seriesName == null)
        {
          throw new JRRuntimeException("Category series name is null.");
        }

        dataset.addValue(
          crtCategorySeries.getValue(),
          crtCategorySeries.getSeries(),
          crtCategorySeries.getCategory()
          );

        if (crtCategorySeries.getLabelExpression() != null)
        {
          Map seriesLabels = (Map)labelsMap.get(seriesName);
          if (seriesLabels == null)
          {
            seriesLabels = new HashMap();
            labelsMap.put(seriesName, seriesLabels);
          }
         
          seriesLabels.put(crtCategorySeries.getCategory(), crtCategorySeries.getLabel());
        }
       
        if (crtCategorySeries.hasItemHyperlinks())
        {
          Map seriesLinks = (Map) itemHyperlinks.get(seriesName);
          if (seriesLinks == null)
          {
            seriesLinks = new HashMap();
            itemHyperlinks.put(seriesName, seriesLinks);
          }
          seriesLinks.put(crtCategorySeries.getCategory(), crtCategorySeries.getPrintItemHyperlink());
        }
      }
    }
  }
View Full Code Here


    boolean foundLinks = false;
    if (categorySeries != null && categorySeries.length > 0)
    {
      for (int i = 0; i < categorySeries.length && !foundLinks; i++)
      {
        JRFillCategorySeries serie = categorySeries[i];
        foundLinks = serie.hasItemHyperlinks();
      }
    }
    return foundLinks;
  }
View Full Code Here

  /**
   *
   */
  public JRCategorySeries getCategorySeries(JRCategorySeries categorySeries)
  {
    JRFillCategorySeries fillCategorySeries = null;

    if (categorySeries != null)
    {
      fillCategorySeries = (JRFillCategorySeries)get(categorySeries);
      if (fillCategorySeries == null)
      {
        fillCategorySeries = new JRFillCategorySeries(categorySeries, this);
      }
    }

    return fillCategorySeries;
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.charts.fill.JRFillCategorySeries

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.