Class FatWindowDecorationRenderer
java.lang.Object
com.googlecode.lanterna.gui2.FatWindowDecorationRenderer
- All Implemented Interfaces:
WindowDecorationRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TerminalPositionprivate static final TerminalPosition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondraw(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 drawngetDecoratedSize(Window window, TerminalSize contentAreaSize) Retrieves the full size of the window, including all window decorations, given all components inside the 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 windowprivate booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WindowDecorationRenderer
getTitleBarRectangle
-
Field Details
-
OFFSET_WITH_TITLE
-
OFFSET_WITHOUT_TITLE
-
-
Constructor Details
-
FatWindowDecorationRenderer
public FatWindowDecorationRenderer()
-
-
Method Details
-
draw
Description copied from interface:WindowDecorationRendererDraws 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- Specified by:
drawin interfaceWindowDecorationRenderer- Parameters:
textGUI- Which TextGUI is callinggraphics- Graphics to use for drawingwindow- Window to draw- Returns:
- A new TextGraphics that is limited to the area inside the decorations just drawn
-
getDecoratedSize
Description copied from interface:WindowDecorationRendererRetrieves the full size of the window, including all window decorations, given all components inside the window.- Specified by:
getDecoratedSizein interfaceWindowDecorationRenderer- Parameters:
window- Window to calculate size forcontentAreaSize- Size of the content area in the window- Returns:
- Full size of the window, including decorations
-
getOffset
Description copied from interface:WindowDecorationRendererReturns 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- Specified by:
getOffsetin interfaceWindowDecorationRenderer- Parameters:
window- Window to get the offset for- Returns:
- Position of the top left corner of the window, relative to the top left corner of the window decoration
-
hasTitle
-