Examples of CSSValue


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

    final ArrayList contentList = new ArrayList();
    while (value != null)
    {
      if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
      {
        CSSValue o = lookupValue(value);
        if (o == null)
        {
          // parse error ...
          return null;
        }
View Full Code Here

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

    addValue(BaselineShift.SUPER);
  }

  protected CSSValue lookupValue(final LexicalUnit value)
  {
    CSSValue constant = super.lookupValue(value);
    if (constant != null)
    {
      return constant;
    }
    else if (value.getLexicalUnitType() == LexicalUnit.SAC_PERCENTAGE)
View Full Code Here

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

    addValue(DropInitialAfterAdjust.TEXT_AFTER_EDGE);
  }

  protected CSSValue lookupValue(final LexicalUnit value)
  {
    CSSValue constant = super.lookupValue(value);
    if (constant != null)
    {
      return constant;
    }
    else if (value.getLexicalUnitType() == LexicalUnit.SAC_PERCENTAGE)
View Full Code Here

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

  {
    ArrayList values = new ArrayList();

    while (value != null)
    {
      CSSValue firstValue;
      if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
      {
        if (value.getStringValue().equalsIgnoreCase("round"))
        {
          values.add(createList(CSSAutoValue.getInstance(),
              CSSAutoValue.getInstance(),
              BackgroundSize.ROUND));

          value = CSSValueFactory.parseComma(value);
          continue;
        }

        if (value.getStringValue().equalsIgnoreCase("auto"))
        {
          firstValue = CSSAutoValue.getInstance();
        }
        else
        {
          return null;
        }
      }
      else if (value.getLexicalUnitType() == LexicalUnit.SAC_PERCENTAGE)
      {
        firstValue = CSSNumericValue.createValue(CSSNumericType.PERCENTAGE, value.getFloatValue());
      }
      else
      {
        firstValue = CSSValueFactory.createLengthValue(value);
        if (firstValue == null)
        {
          return null;
        }
      }

      value = value.getNextLexicalUnit();
      if (value == null)
      {
        values.add(createList(firstValue,
            CSSAutoValue.getInstance(),
            BackgroundSize.ROUND));
        continue;
      }

      CSSValue secondValue;
      if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
      {
        if (value.getStringValue().equalsIgnoreCase("round"))
        {
          values.add(createList(firstValue,
View Full Code Here

Examples of org.w3c.dom.css.CSSValue

            for (int i = 0; i < items.length; i++) {
                nitems[i] = items[i];
            }
            items = nitems;
        }
        CSSValue result = items[index];
        if (result == null) {
            items[index] = result = new ListComponent(index);
        }
        return result;
    }
View Full Code Here

Examples of org.w3c.dom.css.CSSValue

    /**
     * Gets the CSS value associated with the given property.
     */
    protected CSSValue getCSSValue(String name) {
        CSSValue result = null;
        if (values != null) {
            result = (CSSValue)values.get(name);
        }
        if (result == null) {
            result = createCSSValue(name);
View Full Code Here

Examples of org.w3c.dom.css.CSSValue

        Map refs = new HashMap();
        for (;;) {
        CSSOMReadOnlyStyleDeclaration decl;
        decl = CSSUtilities.getComputedStyle(paintElement);

        CSSValue opacityVal = decl.getPropertyCSSValueInternal
            (BATIK_EXT_SOLID_OPACITY_PROPERTY);
        if (opacityVal != null) {
            float attr = PaintServer.convertOpacity(opacityVal);
                return (opacity * attr);
            }
View Full Code Here

Examples of org.w3c.dom.css.CSSValue

        Map refs = new HashMap();
        for (;;) {
            CSSOMReadOnlyStyleDeclaration decl;
            decl = CSSUtilities.getComputedStyle(paintElement);

            CSSValue colorDef;
            colorDef = decl.getPropertyCSSValueInternal
                (BATIK_EXT_SOLID_COLOR_PROPERTY);
            if (colorDef != null) {
                if (colorDef.getCssValueType() ==
                    CSSValue.CSS_PRIMITIVE_VALUE) {
            CSSPrimitiveValue v = (CSSPrimitiveValue)colorDef;
                    return PaintServer.convertColor
                        (v.getRGBColorValue(), opacity);
        } else {
View Full Code Here

Examples of org.w3c.dom.css.CSSValue

        AbstractViewCSS viewCss = CSSUtilities.getViewCSS(element);
        CSSOMReadOnlyStyleDeclaration styleDecl = viewCss.getCascadedStyle(element, null);

        // determine if text-decoration was explicity set on this element
        CSSValue cssVal = styleDecl.getLocalPropertyCSSValue(CSS_TEXT_DECORATION_PROPERTY);
        if (cssVal == null) {
            // not explicitly set so return the copy of the parent's decoration
            return textDecoration;
        }

        short t = cssVal.getCssValueType();

        if (t == CSSValue.CSS_VALUE_LIST) {

            // first check to see if its a valid list,
            // ie. if it contains none then that is the only element
View Full Code Here

Examples of org.w3c.dom.css.CSSValue

        }

        // 'stroke-width' property
        CSSStyleDeclaration decl
            = CSSUtilities.getComputedStyle(paintedElement);
        CSSValue v = decl.getPropertyCSSValue(CSS_STROKE_WIDTH_PROPERTY);
        float strokeWidth = UnitProcessor.cssOtherLengthToUserSpace
            (v, CSS_STROKE_WIDTH_PROPERTY, uctx);

        // 'markerUnits' attribute - default is 'strokeWidth'
        short unitsType;
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.