Class BaseXImages

java.lang.Object
org.basex.gui.layout.BaseXImages

public final class BaseXImages extends Object
Organizes icons used all over the GUI.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Method Details

    • get

      public static Image get(String name)
      Returns the specified image.
      Parameters:
      name - name of image
      Returns:
      image
    • get

      public static Image get(URL url)
      Returns the specified image.
      Parameters:
      url - image url
      Returns:
      image
    • icon

      public static ImageIcon icon(String name)
      Returns the specified image as icon.
      Parameters:
      name - name of icon
      Returns:
      icon
    • dir

      public static Icon dir(boolean expanded)
      Returns a directory icon.
      Parameters:
      expanded - expanded state (open/closed)
      Returns:
      icon
    • text

      public static Icon text(boolean raw)
      Returns an icon for the specified text.
      Parameters:
      raw - raw/xml text
      Returns:
      icon
    • file

      public static Icon file(IOFile file)
      Returns an icon for the specified file.
      Parameters:
      file - file reference
      Returns:
      icon