Class 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 Detail

      • toCanvas

        public static Canvas toCanvas​(Object object)
        Returns a Canvas object casting the argument.
        Parameters:
        object - object to cast to a canvas
        Returns:
        a Canvas object
      • toDiv

        public static Div toDiv​(Object object)
        Returns a Div object casting the argument.
        Parameters:
        object - object to cast to a div
        Returns:
        a Div object
      • toImg

        public static Img toImg​(Object object)
        Returns a Img object casting the argument.
        Parameters:
        object - object to cast to an image
        Returns:
        a Img object