WindowDecorationRendererpublic class FatWindowDecorationRenderer extends Object implements WindowDecorationRenderer
| Constructor | Description |
|---|---|
FatWindowDecorationRenderer() |
| Modifier and Type | Method | Description |
|---|---|---|
TextGUIGraphics |
draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
Draws the window decorations for a particular window and returns a new TextGraphics that is locked to the area
inside of the window decorations where the content of the window should be drawn
|
TerminalSize |
getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
Retrieves the full size of the window, including all window decorations, given all components inside the window.
|
TerminalPosition |
getOffset(Window window) |
Returns how much to step right and down from the top left position of the window decorations to the top left
position of the actual window
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTitleBarRectanglepublic TextGUIGraphics draw(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window)
WindowDecorationRendererdraw in interface WindowDecorationRenderertextGUI - Which TextGUI is callinggraphics - Graphics to use for drawingwindow - Window to drawpublic TerminalSize getDecoratedSize(Window window, TerminalSize contentAreaSize)
WindowDecorationRenderergetDecoratedSize in interface WindowDecorationRendererwindow - Window to calculate size forcontentAreaSize - Size of the content area in the windowpublic TerminalPosition getOffset(Window window)
WindowDecorationRenderergetOffset in interface WindowDecorationRendererwindow - Window to get the offset forCopyright © 2020. All rights reserved.