WindowDecorationRenderer
public 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, wait
getTitleBarRectangle
public TextGUIGraphics draw(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window)
WindowDecorationRenderer
draw
in interface WindowDecorationRenderer
textGUI
- Which TextGUI is callinggraphics
- Graphics to use for drawingwindow
- Window to drawpublic TerminalSize getDecoratedSize(Window window, TerminalSize contentAreaSize)
WindowDecorationRenderer
getDecoratedSize
in interface WindowDecorationRenderer
window
- Window to calculate size forcontentAreaSize
- Size of the content area in the windowpublic TerminalPosition getOffset(Window window)
WindowDecorationRenderer
getOffset
in interface WindowDecorationRenderer
window
- Window to get the offset forCopyright © 2020. All rights reserved.