Package org.jfree.layouting.input.style

Examples of org.jfree.layouting.input.style.CSSPageRule


    final CSSPageRule[] pageRule =
            styleRuleMatcher.getPageRule(pageName, pseudoPages);
    for (int i = 0; i < pageRule.length; i++)
    {
      final CSSPageRule cssPageRule = pageRule[i];
      copyStyleInformation(style, cssPageRule, null);

      final int rc = cssPageRule.getRuleCount();
      for (int r = 0; r < rc; r++)
      {
        final CSSPageAreaRule rule = cssPageRule.getRule(r);
        if (rule.getPageArea().equals(pageArea))
        {
          copyStyleInformation(style, rule, null);
        }
      }
View Full Code Here


    {
      parseNamespaceRule(strtok);
    }
    else if (styleRule instanceof CSSPageRule)
    {
      final CSSPageRule pageRule = (CSSPageRule) styleRule;
      if (ruleName.length() <= 1)
      {
        return;
      }
      final String areaName = ruleName.substring(1);
      final PageAreaType[] pageAreas = PageAreaType.getPageAreas();
      for (int i = 0; i < pageAreas.length; i++)
      {
        final PageAreaType pageArea = pageAreas[i];
        if (areaName.equalsIgnoreCase(pageArea.getName()))
        {
          final CSSPageAreaRule areaRule = parsePageRule(pageArea, atRule);
          if (areaRule != null)
          {
            pageRule.addRule(areaRule);
          }
          return;
        }
      }
      logger.info("Did not recognize page @rule: " + atRule);
View Full Code Here

  public void startPage(final String name, final String pseudo_page)
      throws CSSException
  {
    // Log.debug ("Page Rule: " + name + " / " + pseudo_page);
    // yes, we have to parse that.
    styleRule = new CSSPageRule(styleSheet, getParentRule(), name, pseudo_page);
    parentRules.push(styleRule);
  }
View Full Code Here

    for (int i = 0; i < rc; i++)
    {
      final StyleRule rule = styleSheet.getRule(i);
      if (rule instanceof CSSPageRule)
      {
        final CSSPageRule drule = (CSSPageRule) rule;
        rules.add(drule);
      }
    }
  }
View Full Code Here

  {
    final CSSPageRule[] pageRules = this.pageRules;
    final ArrayList rules = new ArrayList();
    for (int i = 0; i < pageRules.length; i++)
    {
      final CSSPageRule rule = pageRules[i];
      final String rulePageName = rule.getName();
      // Check the page name.
      if (rulePageName != null)
      {
        if (rulePageName.equals(pageName) == false)
        {
          continue;
        }
      }

      // And the pseudo page ..
      final String rulePseudoPage = rule.getPseudoPage();
      if (rulePseudoPage != null)
      {
        for (int j = 0; j < pseudoPages.length; j++)
        {
          final PseudoPage pseudoPage = pseudoPages[j];
View Full Code Here

    this.styleSheets = new ArrayList();
    this.parameters = new ReportParameters();
    this.dataFactory = new EmptyReportDataFactory();

    this.pageFormatStyleSheet = new StyleSheet();
    this.pageRule = new CSSPageRule(pageFormatStyleSheet, null, null, null);
    this.pageFormatStyleSheet.addRule(pageRule);

    setQuery("default");
  }
View Full Code Here

    this.styleSheets = new ArrayList();
    this.parameters = new ReportParameters();
    this.dataFactory = new EmptyReportDataFactory();

    this.pageFormatStyleSheet = new StyleSheet();
    this.pageRule = new CSSPageRule(pageFormatStyleSheet, null, null, null);
    this.pageFormatStyleSheet.addRule(pageRule);

    setQuery("default");
  }
View Full Code Here

    final CSSPageRule[] pageRule =
            styleRuleMatcher.getPageRule(pageName, pseudoPages);
    for (int i = 0; i < pageRule.length; i++)
    {
      final CSSPageRule cssPageRule = pageRule[i];
      copyStyleInformation(style, cssPageRule, null);

      final int rc = cssPageRule.getRuleCount();
      for (int r = 0; r < rc; r++)
      {
        final CSSPageAreaRule rule = cssPageRule.getRule(r);
        if (rule.getPageArea().equals(pageArea))
        {
          copyStyleInformation(style, rule, null);
        }
      }
View Full Code Here

    for (int i = 0; i < rc; i++)
    {
      final StyleRule rule = styleSheet.getRule(i);
      if (rule instanceof CSSPageRule)
      {
        final CSSPageRule drule = (CSSPageRule) rule;
        rules.add(drule);
      }
    }
  }
View Full Code Here

  {
    final CSSPageRule[] pageRules = this.pageRules;
    final ArrayList rules = new ArrayList();
    for (int i = 0; i < pageRules.length; i++)
    {
      final CSSPageRule rule = pageRules[i];
      final String rulePageName = rule.getName();
      // Check the page name.
      if (rulePageName != null)
      {
        if (rulePageName.equals(pageName) == false)
        {
          continue;
        }
      }

      // And the pseudo page ..
      final String rulePseudoPage = rule.getPseudoPage();
      if (rulePseudoPage != null)
      {
        for (int j = 0; j < pseudoPages.length; j++)
        {
          final PseudoPage pseudoPage = pseudoPages[j];
View Full Code Here

TOP

Related Classes of org.jfree.layouting.input.style.CSSPageRule

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.