Class CastHelper
- java.lang.Object
-
- org.pepstock.charba.client.dom.elements.CastHelper
-
public final class CastHelper extends Object
Utility to cast elements created in the other DOM tree engines in CHARBA elements.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CanvastoCanvas(Object object)Returns aCanvasobject casting the argument.static DivtoDiv(Object object)Returns aDivobject casting the argument.static CanvasGradientItemtoGradient(Object object)Returns aCanvasGradientItemobject casting the argument.static ImgtoImg(Object object)Returns aImgobject casting the argument.static CanvasPatternItemtoPattern(Object object)Returns aCanvasPatternItemobject casting the argument.
-
-
-
Method Detail
-
toCanvas
public static Canvas toCanvas(Object object)
Returns aCanvasobject casting the argument.- Parameters:
object- object to cast to a canvas- Returns:
- a
Canvasobject
-
toDiv
public static Div toDiv(Object object)
Returns aDivobject casting the argument.- Parameters:
object- object to cast to a div- Returns:
- a
Divobject
-
toImg
public static Img toImg(Object object)
Returns aImgobject casting the argument.- Parameters:
object- object to cast to an image- Returns:
- a
Imgobject
-
toPattern
public static CanvasPatternItem toPattern(Object object)
Returns aCanvasPatternItemobject casting the argument.- Parameters:
object- object to cast to a canvas pattern- Returns:
- a
CanvasPatternItemobject
-
toGradient
public static CanvasGradientItem toGradient(Object object)
Returns aCanvasGradientItemobject casting the argument.- Parameters:
object- object to cast to a canvas gradient- Returns:
- a
CanvasGradientItemobject
-
-