Class FileIcons

java.lang.Object
io.github.jbastgen.stemma.app.theme.FileIcons

public final class FileIcons extends Object
Small icons for folders and for the kinds of files (feature 59): a folder, source code, web pages, styles, pictures, documents, data, configuration, scripts, archives, build files, locks, media, fonts, and a plain sheet for everything else. The kind comes from the name of the file, its extension first and a few well-known names (Dockerfile, pom.xml, .gitignore) before that.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    The kinds of files that have an icon of their own.
  • Method Summary

    Modifier and Type
    Method
    Description
    static javafx.scene.layout.Pane
    icon(FileIcons.Kind kind, double size)
    The icon of a kind at the size, drawn as a line picture.
    static javafx.scene.layout.Pane
    icon(String path, boolean folder, double size)
    The icon of a folder or a file, size px square, in the colour of its kind.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • icon

      public static javafx.scene.layout.Pane icon(String path, boolean folder, double size)
      The icon of a folder or a file, size px square, in the colour of its kind.
    • icon

      public static javafx.scene.layout.Pane icon(FileIcons.Kind kind, double size)
      The icon of a kind at the size, drawn as a line picture.