public final class CastHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Canvas |
toCanvas(Object object)
Returns a
Canvas object casting the argument. |
static Div |
toDiv(Object object)
Returns a
Div object casting the argument. |
static CanvasGradientItem |
toGradient(Object object)
Returns a
CanvasGradientItem object casting the argument. |
static Img |
toImg(Object object)
Returns a
Img object casting the argument. |
static CanvasPatternItem |
toPattern(Object object)
Returns a
CanvasPatternItem object casting the argument. |
public static Canvas toCanvas(Object object)
Canvas
object casting the argument.object
- object to cast to a canvasCanvas
objectpublic static Div toDiv(Object object)
Div
object casting the argument.object
- object to cast to a divDiv
objectpublic static Img toImg(Object object)
Img
object casting the argument.object
- object to cast to an imageImg
objectpublic static CanvasPatternItem toPattern(Object object)
CanvasPatternItem
object casting the argument.object
- object to cast to a canvas patternCanvasPatternItem
objectpublic static CanvasGradientItem toGradient(Object object)
CanvasGradientItem
object casting the argument.object
- object to cast to a canvas gradientCanvasGradientItem
object