Package net.lenni0451.imnbt.ui.windows
Class MainWindow
java.lang.Object
net.lenni0451.imnbt.ui.types.Window
net.lenni0451.imnbt.ui.windows.MainWindow
The main window of ImNbt.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMainWindow(ImNbtDrawer drawer, FontHandler fontHandler) Create a new main window.
The font handler is required when using the font size menu. -
Method Summary
Modifier and TypeMethodDescriptionvoiddragAndDrop(File file, byte[] data) Handle a file being dropped on the window.voidrender()Render the window content.
-
Constructor Details
-
MainWindow
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 instancefontHandler- The font handler to use
-
-
Method Details
-
render
public void render()Description copied from class:WindowRender the window content. -
dragAndDrop
Description copied from class:WindowHandle a file being dropped on the window.- Overrides:
dragAndDropin classWindow- Parameters:
file- The file that was droppeddata- The raw data of the file
-