Class Toolkit

java.lang.Object
convex.gui.utils.Toolkit

public class Toolkit extends Object
  • Field Details

    • LOCKED_ICON

      public static final ImageIcon LOCKED_ICON
    • UNLOCKED_ICON

      public static final ImageIcon UNLOCKED_ICON
    • WARNING

      public static final ImageIcon WARNING
    • CAKE

      public static final ImageIcon CAKE
    • CONVEX

      public static final ImageIcon CONVEX
    • COG

      public static final ImageIcon COG
    • REPL_ICON

      public static final ImageIcon REPL_ICON
    • DEFAULT_FONT

      public static final Font DEFAULT_FONT
    • MONO_FONT

      public static final Font MONO_FONT
    • SMALL_MONO_FONT

      public static final Font SMALL_MONO_FONT
    • SMALL_MONO_BOLD

      public static final Font SMALL_MONO_BOLD
  • Constructor Details

    • Toolkit

      public Toolkit()
  • Method Details

    • scaledIcon

      public static ImageIcon scaledIcon(int size, String resourcePath)
    • smoothResize

      public static BufferedImage smoothResize(BufferedImage src, int w, int h)
      Scale an image with interpolation / AA for nicer effects
      Parameters:
      src - Source image
      w - Width of new image
      h - Height of new image
      Returns:
      A new, resized image
    • createDocumentListener

      public static DocumentListener createDocumentListener(Runnable a)
    • init

      public static void init()
    • getImage

      public static Image getImage(URL resourceURL)