Interface ObjectRenderer

    • Method Detail

      • supportsLimit

        boolean supportsLimit​(Object obj)
        Returns whether a limit is supported by the renderer.
        Parameters:
        obj - the object to render
        Returns:
        true if supplying a limit has an effect
      • handles

        boolean handles​(Class cls)
        Checks whether the renderer can handle the specified class.
        Parameters:
        cls - the class to check
        Returns:
        true if the renderer can handle this type of object
      • render

        String render​(Object obj,
                      JPanel panel,
                      Integer limit)
        Renders the object with a new renderer setup.
        Parameters:
        obj - the object to render
        panel - the panel to render into
        limit - the limit to use for the rendering (if applicable), ignored if null
        Returns:
        null if successful, otherwise error message
      • canRenderCached

        boolean canRenderCached​(Object obj,
                                JPanel panel)
        Checks whether the renderer can use a cached setup to render an object.
        Parameters:
        obj - the object to render
        panel - the panel to render into
        Returns:
        true if possible
      • renderCached

        String renderCached​(Object obj,
                            JPanel panel,
                            Integer limit)
        Renders the object using a cached setup (if available).
        Parameters:
        obj - the object to render
        panel - the panel to render into
        limit - the limit to use for the rendering (if applicable), ignored if null
        Returns:
        null if successful, otherwise error message