Package org.pentaho.reporting.engine.classic.core.style.css

Examples of org.pentaho.reporting.engine.classic.core.style.css.ElementStyleRule


    putValue(Action.NAME, "Add Style-Rule");
  }

  public void actionPerformed(final ActionEvent e)
  {
    context.addStyleRule(new ElementStyleRule());
  }
View Full Code Here


      if (maybeRule instanceof ElementStyleRule == false)
      {
        continue;
      }

      final ElementStyleRule rule = (ElementStyleRule) maybeRule;
      addRulePane(rule);
    }
  }
View Full Code Here

  private ArrayList<StyleSelectorReadHandler> selectorReadHandlers;

  public StyleDefinitionRuleReadHandler()
  {
    selectorReadHandlers = new ArrayList<StyleSelectorReadHandler>();
    styleRule = new ElementStyleRule();
  }
View Full Code Here

    for (int r = 0; r < ruleCount; r += 1)
    {
      final ElementStyleSheet rule = styleDefinition.getRule(r);
      if (rule instanceof ElementStyleRule)
      {
        final ElementStyleRule styleRule = (ElementStyleRule) rule;
        writeStyleRule(writer, styleRule);
      }

    }
  }
View Full Code Here

  private ElementStyleDefinition createStyleDefinition(final String targetName)
  {
    CSSSelectorFactory factory = new CSSSelectorFactory();

    ElementStyleRule rule = new ElementStyleRule();
    rule.addSelector((CSSSelector) factory.createElementSelector(null, "label"));
    rule.setStyleProperty(TextStyleKeys.FONT, targetName);

    ElementStyleDefinition def = new ElementStyleDefinition();
    def.addRule(rule);
    return def;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.style.css.ElementStyleRule

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.