Module xaos.ui

Interface IconProvider


  • public interface IconProvider
    Provides icons (i.e. square Nodes) for a given key object.
    Author:
    claudio.rosati@esss.se
    • Method Detail

      • iconFor

        Node iconFor​(Object key,
                     int size)
        Return an icon (i.e. a square Node for the given key object.
        Parameters:
        key - The object 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 key is null, size <= 0, or no suitable representation can be found.