Interface SmileUtilities


public interface SmileUtilities
A collection of utility methods primarily for performing common GUI-related tasks.
  • Method Details

    • scaleImageIcon

      static ImageIcon scaleImageIcon(ImageIcon icon, int size)
      Scales an image icon to desired size.
      Parameters:
      icon - the input image icon.
      size - the desired icon size.
      Returns:
      the scaled image icon.
    • show

      static JFrame show(Figure figure)
      Shows the figure in a window.
      Parameters:
      figure - the figure to display.
      Returns:
      a new JFrame that contains the figure.
    • show

      static JFrame show(MultiFigurePane figure)
      Shows the figure in a window.
      Parameters:
      figure - the figure to display.
      Returns:
      a new JFrame that contains the figure.
    • show

      static JFrame show(DataFrame df)
      Shows the data frame in a window.
      Parameters:
      df - the data frame to display.
      Returns:
      a new JFrame that displays the matrix in a table.
    • show

      static JFrame show(Matrix matrix)
      Shows the matrix in a window.
      Parameters:
      matrix - the matrix to display.
      Returns:
      a new JFrame that displays the matrix in a table.
    • show

      static JFrame show(SparseMatrix matrix)
      Shows the sparse matrix structure in a figure window.
      Parameters:
      matrix - the matrix to display.
      Returns:
      a new JFrame that displays the sparse matrix structure.