Package org.xhtmlrenderer.css.style.derived

Examples of org.xhtmlrenderer.css.style.derived.ListValue


            return asColor(CSSName.BACKGROUND_COLOR);
        }
    }

    public BackgroundPosition getBackgroundPosition() {
        ListValue result = (ListValue) valueByName(CSSName.BACKGROUND_POSITION);
        List values = result.getValues();

        return new BackgroundPosition(
                (PropertyValue) values.get(0), (PropertyValue) values.get(1));
    }
View Full Code Here


  }
  public BorderRadiusCorner(CSSName fromVal, CalculatedStyle style, CssContext ctx) {
    FSDerivedValue value = style.valueByName(fromVal);
    PropertyValue first = null, second = null;
    if(value instanceof ListValue) {
      ListValue lValues = (ListValue)value;
      first = (PropertyValue)lValues.getValues().get(0);
      if(lValues.getValues().size() > 1)
        second = (PropertyValue)lValues.getValues().get(1);
      else
        second = first;
   
      if(fromVal.equals(CSSName.BORDER_TOP_LEFT_RADIUS) || fromVal.equals(CSSName.BORDER_BOTTOM_RIGHT_RADIUS)) {
        setRight(fromVal, style, first, ctx);
View Full Code Here

                return new BackgroundSize(false, true, false);
            } else if (ident == IdentValue.CONTAIN) {
                return new BackgroundSize(true, false, false);
            }
        } else {
            ListValue valueList = (ListValue)value;
            List values = valueList.getValues();
            boolean firstAuto = ((PropertyValue)values.get(0)).getIdentValue() == IdentValue.AUTO;
            boolean secondAuto = ((PropertyValue)values.get(1)).getIdentValue() == IdentValue.AUTO;

            if (firstAuto && secondAuto) {
                return new BackgroundSize(false, false, true);
View Full Code Here

        throw new RuntimeException("internal error");
    }

    public BackgroundPosition getBackgroundPosition() {
        ListValue result = (ListValue) valueByName(CSSName.BACKGROUND_POSITION);
        List values = result.getValues();

        return new BackgroundPosition(
                (PropertyValue) values.get(0), (PropertyValue) values.get(1));
    }
View Full Code Here

TOP

Related Classes of org.xhtmlrenderer.css.style.derived.ListValue

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.