Class MainWindow

java.lang.Object
net.lenni0451.imnbt.ui.types.Window
net.lenni0451.imnbt.ui.windows.MainWindow

public class MainWindow extends Window
The main window of ImNbt.
  • Constructor Details

    • MainWindow

      public MainWindow(ImNbtDrawer drawer, @Nullable FontHandler fontHandler)
      Create a new main window.
      The font handler is required when using the font size menu. If you don't want to use it you can pass null.
      Parameters:
      drawer - The drawer instance
      fontHandler - The font handler to use
  • Method Details

    • render

      public void render()
      Description copied from class: Window
      Render the window content.
      Specified by:
      render in class Window
    • dragAndDrop

      public void dragAndDrop(File file, byte[] data)
      Description copied from class: Window
      Handle a file being dropped on the window.
      Overrides:
      dragAndDrop in class Window
      Parameters:
      file - The file that was dropped
      data - The raw data of the file