Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRStyle


      JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);
      Map stylesMap = jasperDesign.getStylesMap();

      if (stylesMap.containsKey(styleName))
      {
        JRStyle style = (JRStyle) stylesMap.get(styleName);
        element.setStyle(style);
      }
      else
      {
        element.setStyleNameReference(styleName);
View Full Code Here


    JRStyle[] styles = jasperDesign.getStyles();
    if (styles != null && styles.length > 0)
    {
      for(int index = 0; index < styles.length; index++)
      {
        JRStyle style = styles[index];

        if (style.getName() == null || style.getName().trim().length() == 0)
        {
          addBrokenRule("Report style name missing.", style);
        }
       
        verifyConditionalStyles(style);
View Full Code Here

   */
  public static JRStyle getBaseStyle(JRStyleContainer styleContainer)
  {
    if (styleContainer != null)
    {
      JRStyle style = styleContainer.getStyle();
      if (style != null)
      {
        return style;
      }
      JRDefaultStyleProvider defaultStyleProvider = styleContainer.getDefaultStyleProvider();
View Full Code Here

      JRStyle[] styles = jasperPrint.getStyles();
      if (styles != null)
      {
        for(int i = 0; i < styles.length; i++)
        {
          JRStyle style = styles[i];
          exportHeader(style);
          paragraphHelper.exportProps(style);
          runHelper.exportProps(style, (localeCode == null ? null : JRDataUtils.getLocale(localeCode)));//FIXMEDOCX reuse exporter
          exportFooter();
        }
View Full Code Here

   *
   * @see JRAbstractObjectFactory#setStyle(JRStyleSetter, JRStyleContainer)
   */
  public void setStyle(JRStyleSetter setter, JRStyleContainer styleContainer)
  {
    JRStyle style = styleContainer.getStyle();
    String nameReference = styleContainer.getStyleNameReference();
    if (style != null)
    {
      JRStyle newStyle = getStyle(style);
      setter.setStyle(newStyle);
    }
    else if (nameReference != null)
    {
      handleStyleNameReference(setter, nameReference);
View Full Code Here

   */
  public void resetDefaultStyle()
  {
    for (int i = stylesList.size() - 1; i >= 0; i--)
    {
      JRStyle style = (JRStyle)stylesList.get(i);
      if (style.isDefault())
      {
        setDefaultStyle(style);
        return;
      }
    }
View Full Code Here

    printFrame.setHeight(fillSubreport.getContentsStretchHeight());
   
    List styles = fillSubreport.getSubreportStyles();
    for (Iterator it = styles.iterator(); it.hasNext();)
    {
      JRStyle style = (JRStyle) it.next();
      try
      {
        fillContext.getFiller().addPrintStyle(style);
      }
      catch (JRException e)
View Full Code Here

    return printFrame;
  }

  protected JRTemplateFrame getFrameTemplate()
  {
    JRStyle style = fillContext.getElementStyle();
    JRTemplateFrame frameTemplate = (JRTemplateFrame) printFrameTemplates.get(style);
    if (frameTemplate == null)
    {
      frameTemplate = new JRTemplateFrame(
            fillContext.getElementOrigin(),
View Full Code Here

  }

 
  protected JRTemplateFrame getTemplateFrame()
  {
    JRStyle style = getStyle();
    JRTemplateFrame template = (JRTemplateFrame) templateFrames.get(style);
    if (template == null)
    {
      template = new JRTemplateFrame(getOrigin(),
          filler.getJasperPrint().getDefaultStyleProvider(), this);
View Full Code Here

    return defaultStyleProvider;
  }

  public JRStyle getStyle()
  {
    JRStyle crtStyle = initStyle;
   
    boolean isUsingDefaultStyle = false;

    if (crtStyle == null)
    {
      crtStyle = filler.getDefaultStyle();
      isUsingDefaultStyle = true;
    }

    JRStyle evalStyle = getEvaluatedConditionalStyle(crtStyle);
   
    if (isUsingDefaultStyle && evalStyle == crtStyle)
    {
      evalStyle = null;
    }
View Full Code Here

TOP

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

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.