Module xaos.ui

Interface ClassIconProvider


  • public interface ClassIconProvider
    Provides icons (i.e. Nodes) for a given Class name.
    Author:
    claudio.rosati@esss.se
    • Method Detail

      • iconFor

        Node iconFor​(String clazz,
                     int size)
        Return an icon (i.e. a square Node for the given Class name.
        Parameters:
        clazz - The full class name (the one returned by Class.getName()) for which a graphical representation is needed.
        size - The size of the square Node to be returned.
        Returns:
        An icon as a Node instance, or null if clazz is null or empty, size <= 0, or no suitable representation can be found.