Module xaos.ui

Class TreeDirectoryModel.DefaultGraphicFactory

    • Constructor Detail

      • DefaultGraphicFactory

        public DefaultGraphicFactory()
    • Method Detail

      • createGraphic

        public Node createGraphic​(Path path,
                                  boolean isDirectory,
                                  boolean isExpanded)
        Description copied from interface: TreeDirectoryModel.GraphicFactory
        Creates a graphics Node for the given Path.
        Specified by:
        createGraphic in interface TreeDirectoryModel.GraphicFactory
        Parameters:
        path - The Path needing a graphical representation.
        isDirectory - The returned graphics must represent a node.
        isExpanded - If isDirectory is true, then this parameter tells if the directory must be represented as expanded or collapsed.
        Returns:
        The graphical representation for the given Path.