Class MapRenderer

    • Field Detail

    • Constructor Detail

      • MapRenderer

        public MapRenderer()
    • Method Detail

      • handles

        public boolean handles​(Class cls)
        Checks whether the renderer can handle the specified class.
        Specified by:
        handles in interface ObjectRenderer
        Specified by:
        handles in class AbstractObjectRenderer
        Parameters:
        cls - the class to check
        Returns:
        true if the renderer can handle this type of object
      • mapToSheet

        protected SpreadSheet mapToSheet​(Map map)
        Turns the map into a spreadsheet.
        Parameters:
        map - the map to convert
        Returns:
        the generated spreadsheet
      • doRenderCached

        protected String doRenderCached​(Object obj,
                                        JPanel panel,
                                        Integer limit)
        Performs the actual rendering.
        Overrides:
        doRenderCached in class AbstractObjectRenderer
        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
      • doRender

        protected String doRender​(Object obj,
                                  JPanel panel,
                                  Integer limit)
        Performs the actual rendering.
        Specified by:
        doRender in class AbstractObjectRenderer
        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