/** * Convenience property accessor; returns a Color initialized with the * foreground color Uses the actual value (computed actual value) for this * element. * * @return The color value */ public FSColor getColor() { return asColor(CSSName.COLOR); }
/** * Convenience property accessor; returns a Color initialized with the * foreground color Uses the actual value (computed actual value) for this * element. * * @return The color value */ public FSColor getColor() { return asColor(CSSName.COLOR); }
/** * Convenience property accessor; returns a Color initialized with the * background color value; Uses the actual value (computed actual value) for * this element. * * @return The backgroundColor value */ public FSColor getBackgroundColor() { FSDerivedValue prop = valueByName(CSSName.BACKGROUND_COLOR); if (prop == IdentValue.TRANSPARENT) { return null; } else { return asColor(CSSName.BACKGROUND_COLOR); } }
/** * Convenience property accessor; returns a Color initialized with the * background color value; Uses the actual value (computed actual value) for * this element. * * @return The backgroundColor value */ public FSColor getBackgroundColor() { FSDerivedValue prop = valueByName(CSSName.BACKGROUND_COLOR); if (prop == IdentValue.TRANSPARENT) { return null; } else { return asColor(CSSName.BACKGROUND_COLOR); } }
private BorderPropertySet( CalculatedStyle style, CssContext ctx ) { _top = ( style.isIdent(CSSName.BORDER_TOP_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_TOP_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_TOP_WIDTH, 0, ctx)); _right = ( style.isIdent(CSSName.BORDER_RIGHT_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_RIGHT_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_RIGHT_WIDTH, 0, ctx)); _bottom = ( style.isIdent(CSSName.BORDER_BOTTOM_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_BOTTOM_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_BOTTOM_WIDTH, 0, ctx)); _left = ( style.isIdent(CSSName.BORDER_LEFT_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_LEFT_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_LEFT_WIDTH, 0, ctx)); _topColor = style.asColor(CSSName.BORDER_TOP_COLOR); _rightColor = style.asColor(CSSName.BORDER_RIGHT_COLOR); _bottomColor = style.asColor(CSSName.BORDER_BOTTOM_COLOR); _leftColor = style.asColor(CSSName.BORDER_LEFT_COLOR); _topStyle = style.getIdent(CSSName.BORDER_TOP_STYLE); _rightStyle = style.getIdent(CSSName.BORDER_RIGHT_STYLE); _bottomStyle = style.getIdent(CSSName.BORDER_BOTTOM_STYLE); _leftStyle = style.getIdent(CSSName.BORDER_LEFT_STYLE); }
private BorderPropertySet( CalculatedStyle style, CssContext ctx ) { _top = ( style.isIdent(CSSName.BORDER_TOP_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_TOP_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_TOP_WIDTH, 0, ctx)); _right = ( style.isIdent(CSSName.BORDER_RIGHT_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_RIGHT_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_RIGHT_WIDTH, 0, ctx)); _bottom = ( style.isIdent(CSSName.BORDER_BOTTOM_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_BOTTOM_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_BOTTOM_WIDTH, 0, ctx)); _left = ( style.isIdent(CSSName.BORDER_LEFT_STYLE, IdentValue.NONE) || style.isIdent(CSSName.BORDER_LEFT_STYLE, IdentValue.HIDDEN) ? 0 : style.getFloatPropertyProportionalHeight(CSSName.BORDER_LEFT_WIDTH, 0, ctx)); _topColor = style.asColor(CSSName.BORDER_TOP_COLOR); _rightColor = style.asColor(CSSName.BORDER_RIGHT_COLOR); _bottomColor = style.asColor(CSSName.BORDER_BOTTOM_COLOR); _leftColor = style.asColor(CSSName.BORDER_LEFT_COLOR); _topStyle = style.getIdent(CSSName.BORDER_TOP_STYLE); _rightStyle = style.getIdent(CSSName.BORDER_RIGHT_STYLE); _bottomStyle = style.getIdent(CSSName.BORDER_BOTTOM_STYLE); _leftStyle = style.getIdent(CSSName.BORDER_LEFT_STYLE); }