Java 类org.w3c.dom.css.Rect 实例源码
项目:icetone
文件:CssUtil.java
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));
}
项目:LoboEvolution
文件:CSSValueImpl.java
@Override
public Rect getRectValue() throws DOMException {
if (value_ instanceof Rect) {
return (Rect) value_;
}
throw new DOMExceptionImpl(DOMException.INVALID_ACCESS_ERR, DOMExceptionImpl.RECT_ERROR);
}
项目:tm4e
文件:CSSValueImpl.java
public Rect getRectValue() throws DOMException {
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "RECT_ERROR");
}
项目:birt
文件:Value.java
public Rect getRectValue( ) throws DOMException
{
throw createDOMException( );
}
项目:birt
文件:CSSValue.java
public Rect getRectValue( ) throws DOMException
{
return null;
}
项目:Push2Display
文件:CSSOMValue.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
return this;
}
项目:Push2Display
文件:CSSOMValue.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "");
}
项目:Push2Display
文件:CSSOMSVGColor.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "");
}
项目:Push2Display
文件:CSSOMValue.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
return this;
}
项目:Push2Display
文件:CSSOMValue.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "");
}
项目:Push2Display
文件:CSSOMSVGColor.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "");
}
项目:feathers-sdk
文件:CSSOMValue.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
return this;
}
项目:feathers-sdk
文件:CSSOMValue.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "");
}
项目:feathers-sdk
文件:CSSOMSVGColor.java
/**
* <b>DOM</b>: Implements {@link
* org.w3c.dom.css.CSSPrimitiveValue#getRectValue()}.
*/
public Rect getRectValue() throws DOMException {
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "");
}