Package net.sf.jasperreports.engine.design

Examples of net.sf.jasperreports.engine.design.JasperDesign


  */
  protected void loadReport(String fileName, boolean isXmlReport) throws JRException
  {
    if (isXmlReport)
    {
      JasperDesign jasperDesign = JRXmlLoader.load(fileName);
      setReport(jasperDesign);
    }
    else
    {
      setReport((JRReport) JRLoader.loadObject(fileName));
View Full Code Here


  */
  protected void loadReport(InputStream is, boolean isXmlReport) throws JRException
  {
    if (isXmlReport)
    {
      JasperDesign jasperDesign = JRXmlLoader.load(is);
      setReport(jasperDesign);
    }
    else
    {
      setReport((JRReport) JRLoader.loadObject(is));
View Full Code Here

    }
   
    String styleName = attributes.getValue(ATTRIBUTE_style);
    if (styleName != null)
    {
      JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);
      Map stylesMap = jasperDesign.getStylesMap();

      if (stylesMap.containsKey(styleName))
      {
        JRStyle style = (JRStyle) stylesMap.get(styleName);
        cell.setStyle(style);
View Full Code Here

  public static final String ATTRIBUTE_isRepeatRowHeaders = "isRepeatRowHeaders";
  public static final String ATTRIBUTE_ignoreWidth = "ignoreWidth";
 
  public Object createObject(Attributes atts)
  {
    JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);
   
    JRDesignCrosstab crosstab = new JRDesignCrosstab(jasperDesign);
   
    String columnBreakOffsetAttr = atts.getValue(ATTRIBUTE_columnBreakOffset);
    if (columnBreakOffsetAttr != null && columnBreakOffsetAttr.length() > 0)
View Full Code Here

      {
        verifier.addBrokenRule("Evaluation group not set for spider chart", chart);
      }
      else
      {
        JasperDesign report = verifier.getReportDesign();
        if (!report.getGroupsMap().containsKey(groupName))
        {
          verifier.addBrokenRule("Spider chart evaluation group " + groupName
              + " not found in report", chart);
        }
      }
View Full Code Here

        try
        {
          System.out.print("File : " + srcFileName + " ... ");

          JasperDesign jasperDesign = JRXmlLoader.load(srcFileName);
         
          if (updaters != null)
          {
            for(int i = 0; i < updaters.size(); i++)
            {
View Full Code Here

        {
          System.out.print("File : " + srcFileName + " ... ");

          Class reportCreatorClass = JRClassLoader.loadClassFromFile(null, new File(srcFileName));
          ReportCreator reportCreator = (ReportCreator)reportCreatorClass.newInstance();
          JasperDesign jasperDesign = reportCreator.create();
          JRXmlWriter.writeReport(jasperDesign, destFileName, "UTF-8");

          System.out.println("OK.");
        }
        catch (Exception e)
View Full Code Here

  /**
   *
   */
  public Object createObject(Attributes atts)
  {
    JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);

    JRDesignChart chart = new JRDesignChart(jasperDesign, JRChart.CHART_TYPE_STACKEDBAR);

    return chart;
  }
View Full Code Here

* @version $Id: JRBar3DChartFactory.java 3032 2009-08-27 11:32:28Z teodord $
*/
public class JRBar3DChartFactory extends JRBaseFactory {
 
  public Object createObject( Attributes attrs ){
    JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);

    JRDesignChart chart = new JRDesignChart(jasperDesign, JRChart.CHART_TYPE_BAR3D);

    return chart;
  }
View Full Code Here

   *
   */
  public Object createObject(Attributes atts)
  {
    JRXmlLoader xmlLoader = (JRXmlLoader)digester.peek(digester.getCount() - 1);
    JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);

    JRDesignImage image = new JRDesignImage(jasperDesign);

    // get image attributes
    ScaleImageEnum scaleImage = ScaleImageEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_scaleImage));
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.design.JasperDesign

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.