Class MagellanImages


  • public class MagellanImages
    extends java.lang.Object
    Helper class for loading images and icons.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.swing.ImageIcon ABOUNT_APPLICATION_ICON
      The application icon
      static javax.swing.ImageIcon ABOUT_MAGELLAN
      The image for the About dialog
      static javax.swing.ImageIcon ATTENTION  
      static java.awt.Color BACKGROUND
      The Magellan background color (light, reddish brown; tan; tawny)
      static javax.swing.ImageIcon BULLETS_CLOSED
      Closed node icon for (message) tree
      static javax.swing.ImageIcon BULLETS_LEAF
      Leaf icon for (message) tree
      static javax.swing.ImageIcon BULLETS_OPEN
      Open node icon for (message) tree
      static java.awt.Color FOREGROUND
      The Magellan foreground color (sepia-like, dark brown)
      static javax.swing.ImageIcon GUI_CREATETEMPUNIT
      The create temp unit button icon
      static javax.swing.ImageIcon GUI_DELETETEMPUNIT
      The delete temp unit button icon
      static javax.swing.ImageIcon GUI_TOTD
      The Tip of The Day icon
      static javax.swing.ImageIcon NULL  
    • Constructor Summary

      Constructors 
      Constructor Description
      MagellanImages()  
    • Field Detail

      • GUI_TOTD

        public static javax.swing.ImageIcon GUI_TOTD
        The Tip of The Day icon
      • GUI_CREATETEMPUNIT

        public static javax.swing.ImageIcon GUI_CREATETEMPUNIT
        The create temp unit button icon
      • GUI_DELETETEMPUNIT

        public static javax.swing.ImageIcon GUI_DELETETEMPUNIT
        The delete temp unit button icon
      • ABOUNT_APPLICATION_ICON

        public static javax.swing.ImageIcon ABOUNT_APPLICATION_ICON
        The application icon
      • ABOUT_MAGELLAN

        public static javax.swing.ImageIcon ABOUT_MAGELLAN
        The image for the About dialog
      • BULLETS_LEAF

        public static javax.swing.ImageIcon BULLETS_LEAF
        Leaf icon for (message) tree
      • BULLETS_OPEN

        public static javax.swing.ImageIcon BULLETS_OPEN
        Open node icon for (message) tree
      • BULLETS_CLOSED

        public static javax.swing.ImageIcon BULLETS_CLOSED
        Closed node icon for (message) tree
      • NULL

        public static javax.swing.ImageIcon NULL
      • ATTENTION

        public static javax.swing.ImageIcon ATTENTION
      • FOREGROUND

        public static final java.awt.Color FOREGROUND
        The Magellan foreground color (sepia-like, dark brown)
      • BACKGROUND

        public static final java.awt.Color BACKGROUND
        The Magellan background color (light, reddish brown; tan; tawny)
    • Constructor Detail

      • MagellanImages

        public MagellanImages()
    • Method Detail

      • getImageIcon

        public static javax.swing.ImageIcon getImageIcon​(java.lang.String path)
        Creates an image icon, found either at the specified path or in a subdirectory corresponding to path inside the directory set by setMagellanDirectory(File).
        Parameters:
        path - an absolute or relative path
        Returns:
        the image icon corresponding to path or null if no such file exists.
      • setMagellanDirectory

        public static void setMagellanDirectory​(java.io.File magellanDirectory)
        Sets the value of magellanDirectory.
        Parameters:
        magellanDirectory - The value for magellanDirectory.