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 SummaryAll 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- 
toCanvaspublic static Canvas toCanvas(Object object) Returns aCanvasobject casting the argument.- Parameters:
- object- object to cast to a canvas
- Returns:
- a Canvasobject
 
 - 
toDivpublic static Div toDiv(Object object) Returns aDivobject casting the argument.- Parameters:
- object- object to cast to a div
- Returns:
- a Divobject
 
 - 
toImgpublic static Img toImg(Object object) Returns aImgobject casting the argument.- Parameters:
- object- object to cast to an image
- Returns:
- a Imgobject
 
 - 
toPatternpublic static CanvasPatternItem toPattern(Object object) Returns aCanvasPatternItemobject casting the argument.- Parameters:
- object- object to cast to a canvas pattern
- Returns:
- a CanvasPatternItemobject
 
 - 
toGradientpublic static CanvasGradientItem toGradient(Object object) Returns aCanvasGradientItemobject casting the argument.- Parameters:
- object- object to cast to a canvas gradient
- Returns:
- a CanvasGradientItemobject
 
 
- 
 
-