public static Vector4f getPadding(PropertyDeclaration decl) { if (decl == null) return Vector4f.ZERO; Rect rect = decl.getValue().getRectValue(); return new Vector4f(rect.getLeft().getFloatValue(CSSPrimitiveValue.CSS_PX), rect.getRight().getFloatValue(CSSPrimitiveValue.CSS_PX), rect.getTop().getFloatValue(CSSPrimitiveValue.CSS_PX), rect.getBottom().getFloatValue(CSSPrimitiveValue.CSS_PX)); }
@Override public Rect getRectValue() throws DOMException { if (value_ instanceof Rect) { return (Rect) value_; } throw new DOMExceptionImpl(DOMException.INVALID_ACCESS_ERR, DOMExceptionImpl.RECT_ERROR); }
public Rect getRectValue() throws DOMException { throw new DOMException(DOMException.INVALID_ACCESS_ERR, "RECT_ERROR"); }
public Rect getRectValue( ) throws DOMException { throw createDOMException( ); }
public Rect getRectValue( ) throws DOMException { return null; }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}. */ public Rect getRectValue() throws DOMException { return this; }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}. */ public Rect getRectValue() throws DOMException { throw new DOMException(DOMException.INVALID_ACCESS_ERR, ""); }