Examples of CSSConstant


Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

*/
public class DropInitialBeforeAlignReadHandler extends AlignmentBaselineReadHandler
{
  public DropInitialBeforeAlignReadHandler()
  {
    addValue(new CSSConstant("caps-height"));
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

public class DropInitialValueReadHandler extends OneOfConstantsReadHandler
{
  public DropInitialValueReadHandler()
  {
    super(false);
    addValue(new CSSConstant("initial"));
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
    {
      if (value.getStringValue().equalsIgnoreCase("none"))
      {
        return new CSSConstant("none");
      }
      if (value.getStringValue().equalsIgnoreCase("all"))
      {
        return new CSSConstant("all");
      }
      return null;
    }
    else if (value.getLexicalUnitType() == LexicalUnit.SAC_INTEGER)
    {
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

    final ArrayList contentList = new ArrayList();
    while (parameters != null)
    {
      if (parameters.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
      {
        contentList.add(new CSSConstant(parameters.getStringValue()));
      }
      else if (parameters.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE)
      {
        contentList.add(new CSSStringValue(CSSStringType.STRING,
            parameters.getStringValue()));
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

    }

    final LayoutOutputMetaData metaData = process.getOutputMetaData();
    final int resolution = (int) metaData.getNumericFeatureValue(OutputProcessorFeature.DEVICE_RESOLUTION);

    final CSSConstant constant = (CSSConstant) value;
    final LayoutElement parent = currentNode.getParentLayoutElement();
    if (parent != null)
    {
      final CSSValue parentFontSizeValue = parent.getLayoutStyle().getValue(FontStyleKeys.FONT_SIZE);
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

        return fallback;
      }
      return null;
    }

    final CSSConstant constant = (CSSConstant) value;
    final CSSValue resolvedValue = lookupValue(constant);
    if (resolvedValue != null)
    {
//      layoutContext.setValue(key, resolvedValue);
      return resolvedValue;
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

      for (int i = 0; i < list.getLength(); i++)
      {
        final CSSValue item = list.getItem(i);
        if (item instanceof CSSConstant)
        {
          final CSSConstant c = (CSSConstant) lookupValue((CSSConstant) item);
          final CSSValue family = outputMetaData.getNormalizedFontFamilyName(c);
          if (family != null)
          {
            layoutContext.setValue(key, family);
            return;
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

      }
      layoutContext.setValue(PositioningStyleKeys.POSITION, Position.STATIC);
      return;
    }

    final CSSConstant value = (CSSConstant) resolveValue(process, currentNode, key);
    layoutContext.setValue(PositioningStyleKeys.POSITION, value);
    if (Position.ABSOLUTE.equals(value) ||
        Position.FIXED.equals(value))
    {
      // http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-float
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

    if (value instanceof CSSConstant == false)
    {
      // fine, we're done here ...
      return;
    }
    final CSSConstant constant = (CSSConstant) value;
    // parent font size has been resolved already. Parent is the resolved font size of this element.


    final LayoutOutputMetaData metaData = process.getOutputMetaData();
    final int resolution = (int) metaData.getNumericFeatureValue(OutputProcessorFeature.DEVICE_RESOLUTION);
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

    {
      // this is a sub-string alignment.
      return;
    }

    final CSSConstant alignValue =
            (CSSConstant) resolveValue(process, currentNode, key);
    layoutContext.setValue(TextStyleKeys.TEXT_ALIGN, alignValue);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.