Package org.pentaho.reporting.libraries.css.values

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


    if (ident.equalsIgnoreCase("auto"))
    {
      return CSSAutoValue.getInstance();
    }

    return new CSSConstant(ident);
  }
View Full Code Here


    if (width != null)
    {
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant style;
    if (unit != null)
    {
      style = (CSSConstant) lookupValue(unit);
      if (style != null)
      {
View Full Code Here

      if (value.getLexicalUnitType() != LexicalUnit.SAC_IDENT)
      {
        return null;
      }

      final CSSConstant horizontal;
      final CSSConstant vertical;

      final String horizontalString = value.getStringValue();
      if (horizontalString.equalsIgnoreCase("repeat-x"))
      {
        horizontal = BackgroundRepeat.REPEAT;
View Full Code Here

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

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

  {
    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

    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

    }

    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

        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

      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

TOP

Related Classes of org.pentaho.reporting.libraries.css.values.CSSConstant

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.