Class Icons


  • public class Icons
    extends java.lang.Object
    The Icons class is used to get ImageIcons from a given filename. Moreover, it contains the filenames of some standard icons.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ADD
      An add bullet.
      static java.lang.String APPLICATION
      The icon for the application.
      static java.lang.String ARCHIVE
      The icon for the archive.
      static java.lang.String CONSOLE
      A console.
      static java.lang.String CONTROL_PAUSE
      The icon for the control pause.
      static java.lang.String CONTROL_START
      The icon for the control start.
      static java.lang.String CONTROL_STOP
      The icon for the control stop.
      static java.lang.String CONTROL_TERM
      The icon for the control term.
      static java.lang.String CONVERGENCE
      The icon for the convergence plot.
      static java.lang.String DELETE
      A delete bullet.
      static java.lang.String DISK
      A disk.
      static java.lang.String FOLDER
      The icon for the control term.
      static java.lang.String FOLDER_ADD
      The icon for the control term.
      static java.lang.String HELP
      The icon for the tutorial.
      static java.lang.String LOADING
      A delete bullet.
      static java.lang.String OPERATOR
      The icon for the operator.
      static java.lang.String OPT4J
      The Opt4J logo.
      static java.lang.String OPTIMIZER
      The icon for the optimizer.
      static java.lang.String PARETO
      The icon for the pareto contentPanel.
      static java.lang.String PLAY
      The icon for the play button.
      static java.lang.String POPULATION
      The icon for the population.
      static java.lang.String PROBLEM
      The icon for the problem.
      static java.lang.String PUZZLE_BLUE
      The icon for the blue puzzle.
      static java.lang.String PUZZLE_GREEN
      The icon for the green puzzle.
      static java.lang.String SELECTOR
      The icon for the selector.
      static java.lang.String SFOLDER
      The icon for the control term.
      static java.lang.String TEXT
      A text sheet.
      static java.lang.String XML
      The icon for the xml.
      static java.lang.String XMLTAG
      The icon for the xml.
    • Constructor Summary

      Constructors 
      Constructor Description
      Icons()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.ImageIcon getDefault()
      Returns a transparent 16x16px ImageIcon.
      static javax.swing.ImageIcon getIcon​(java.lang.String filename)
      Returns an ImageIcon from a filename.
      static java.net.URL getURL​(java.lang.String filename)
      Returns the URL of a file.
      static javax.swing.ImageIcon merge​(javax.swing.ImageIcon... icons)
      This methods merges multiple ImageIcons into a single ImageIcon.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • XMLTAG

        public static final java.lang.String XMLTAG
        The icon for the xml.
        See Also:
        Constant Field Values
      • OPTIMIZER

        public static final java.lang.String OPTIMIZER
        The icon for the optimizer.
        See Also:
        Constant Field Values
      • PROBLEM

        public static final java.lang.String PROBLEM
        The icon for the problem.
        See Also:
        Constant Field Values
      • ARCHIVE

        public static final java.lang.String ARCHIVE
        The icon for the archive.
        See Also:
        Constant Field Values
      • POPULATION

        public static final java.lang.String POPULATION
        The icon for the population.
        See Also:
        Constant Field Values
      • PARETO

        public static final java.lang.String PARETO
        The icon for the pareto contentPanel.
        See Also:
        Constant Field Values
      • CONVERGENCE

        public static final java.lang.String CONVERGENCE
        The icon for the convergence plot.
        See Also:
        Constant Field Values
      • PLAY

        public static final java.lang.String PLAY
        The icon for the play button.
        See Also:
        Constant Field Values
      • OPERATOR

        public static final java.lang.String OPERATOR
        The icon for the operator.
        See Also:
        Constant Field Values
      • APPLICATION

        public static final java.lang.String APPLICATION
        The icon for the application.
        See Also:
        Constant Field Values
      • PUZZLE_GREEN

        public static final java.lang.String PUZZLE_GREEN
        The icon for the green puzzle.
        See Also:
        Constant Field Values
      • PUZZLE_BLUE

        public static final java.lang.String PUZZLE_BLUE
        The icon for the blue puzzle.
        See Also:
        Constant Field Values
      • SELECTOR

        public static final java.lang.String SELECTOR
        The icon for the selector.
        See Also:
        Constant Field Values
      • HELP

        public static final java.lang.String HELP
        The icon for the tutorial.
        See Also:
        Constant Field Values
      • CONTROL_START

        public static final java.lang.String CONTROL_START
        The icon for the control start.
        See Also:
        Constant Field Values
      • CONTROL_STOP

        public static final java.lang.String CONTROL_STOP
        The icon for the control stop.
        See Also:
        Constant Field Values
      • CONTROL_PAUSE

        public static final java.lang.String CONTROL_PAUSE
        The icon for the control pause.
        See Also:
        Constant Field Values
      • CONTROL_TERM

        public static final java.lang.String CONTROL_TERM
        The icon for the control term.
        See Also:
        Constant Field Values
      • FOLDER

        public static final java.lang.String FOLDER
        The icon for the control term.
        See Also:
        Constant Field Values
      • FOLDER_ADD

        public static final java.lang.String FOLDER_ADD
        The icon for the control term.
        See Also:
        Constant Field Values
      • SFOLDER

        public static final java.lang.String SFOLDER
        The icon for the control term.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Icons

        public Icons()
    • Method Detail

      • getURL

        public static java.net.URL getURL​(java.lang.String filename)
        Returns the URL of a file.
        Parameters:
        filename - the filename
        Returns:
        the url
      • getIcon

        public static javax.swing.ImageIcon getIcon​(java.lang.String filename)
        Returns an ImageIcon from a filename.
        Parameters:
        filename - the filename
        Returns:
        the corresponding image icon
      • getDefault

        public static javax.swing.ImageIcon getDefault()
        Returns a transparent 16x16px ImageIcon.
        Returns:
        a transparent 16x16px ImageIcon
      • merge

        public static javax.swing.ImageIcon merge​(javax.swing.ImageIcon... icons)
        This methods merges multiple ImageIcons into a single ImageIcon.
        Parameters:
        icons - the icons to merge
        Returns:
        the merged icons