Examples of CSSValue


Examples of com.adobe.dp.css.CSSValue

    SelectorRule rule = css.getRuleForSelector(selector, true);
    InlineRule p = props.getProperties().getPropertySet();
    Iterator ps = p.properties();
    while (ps.hasNext()) {
      String pn = (String) ps.next();
      CSSValue pv = p.get(pn);
      rule.set(pn, pv);
    }
    return cls;
  }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSValue

    public void updateStyle(final String uri,
            final String attrName,
            final String attrValue,
            final CSSDeclarationRule targetRule)
    {
        final CSSValue value = lookupMapping(attrValue);
        if (value != null)
        {
            targetRule.setPropertyValue(styleKey, value);
        }
    }
View Full Code Here

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

   * @param unit
   * @return
   */
  public Map createValues(LexicalUnit unit)
  {
    CSSValue optimum = parseSingleSpacingValue(unit);
    if (optimum == null)
    {
      return null;
    }
    unit = unit.getNextLexicalUnit();

    CSSValue minimum = parseSingleSpacingValue(unit);
    if (minimum != null)
    {
      unit = unit.getNextLexicalUnit();
    }

    CSSValue maximum = parseSingleSpacingValue(unit);
    final Map map = new HashMap();
    map.put(getMinimumKey(), minimum);
    map.put(TextStyleKeys.X_MAX_LETTER_SPACING, maximum);
    map.put(TextStyleKeys.X_OPTIMUM_LETTER_SPACING, optimum);
    return map;
View Full Code Here

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

  }

  public CSSValue createValue(StyleKey name, LexicalUnit value)
  {

    CSSValue cssvalue = null;
    if (value.getLexicalUnitType() == LexicalUnit.SAC_PERCENTAGE)
    {
      cssvalue = CSSNumericValue.createValue(CSSNumericType.PERCENTAGE, value.getFloatValue());
    }
    else
View Full Code Here

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

    addValue(LineGridProgression.TEXT_HEIGHT);
  }

  protected CSSValue lookupValue(final LexicalUnit value)
  {
    CSSValue length = CSSValueFactory.createLengthValue(value);
    if (length != null)
    {
      return length;
    }
    return super.lookupValue(value);
View Full Code Here

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

      map.put(TextStyleKeys.TEXT_OVERFLOW_ELLIPSIS, CSSInheritValue.getInstance());
      return map;
    }


    CSSValue mode = modeReadHandler.createValue(null, unit);
    if (mode != null)
    {
      unit = unit.getNextLexicalUnit();
    }
    CSSValue ellipsis;
    if (unit != null)
    {
      ellipsis = ellipsisReadHandler.createValue(null, unit);
    }
    else
View Full Code Here

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

  public Map createValues(LexicalUnit unit)
  {
    // http://cheeaun.phoenity.com/weblog/2005/06/whitespace-and-generated-content.html
    // is a good overview about the whitespace stuff ..

    CSSValue whitespace;
    CSSValue textWrap;
    if (unit.getLexicalUnitType() == LexicalUnit.SAC_INHERIT)
    {
      whitespace = CSSInheritValue.getInstance();
      textWrap = CSSInheritValue.getInstance();
    }
View Full Code Here

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

    addValue(FontSmooth.NEVER);
  }

  protected CSSValue lookupValue(final LexicalUnit value)
  {
    final CSSValue cssValue = super.lookupValue(value);
    if (cssValue != null)
    {
      return cssValue;
    }

    final CSSValue number = CSSValueFactory.createNumericValue(value);
    if (number != null)
    {
      return number;
    }
    return CSSValueFactory.createLengthValue(value);
View Full Code Here

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

  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_PERCENTAGE)
    {
      return CSSNumericValue.createValue(CSSNumericType.PERCENTAGE, value.getFloatValue());
    }
    CSSValue constant = super.lookupValue(value);
    if (constant != null)
    {
      return constant;
    }
    return CSSValueFactory.createLengthValue(value);
View Full Code Here

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

   * @param unit
   * @return
   */
  public Map createValues(LexicalUnit unit)
  {
    CSSValue style = styleReadHandler.createValue(null, unit);
    if (style != null)
    {
      unit = unit.getNextLexicalUnit();
    }
    CSSValue position;
    if (unit != null)
    {
      position = positionReadHandler.createValue(null, unit);
    }
    else
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.