X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2FWindowDecorationRenderer.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2FWindowDecorationRenderer.java;h=0000000000000000000000000000000000000000;hp=d98d343e1cba354fcec686b51d2f3bd140038193;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hpb=a73a906356c971b080c36368e71a15d87e8b8d31 diff --git a/src/com/googlecode/lanterna/gui2/WindowDecorationRenderer.java b/src/com/googlecode/lanterna/gui2/WindowDecorationRenderer.java deleted file mode 100644 index d98d343..0000000 --- a/src/com/googlecode/lanterna/gui2/WindowDecorationRenderer.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of lanterna (http://code.google.com/p/lanterna/). - * - * lanterna is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program. If not, see . - * - * Copyright (C) 2010-2015 Martin - */ -package com.googlecode.lanterna.gui2; - -import com.googlecode.lanterna.TerminalPosition; -import com.googlecode.lanterna.TerminalSize; - -/** - * Interface that defines a class that draws window decorations, i.e. a surrounding layer around the window that usually - * looks like a border to make it easier for a user to visually separate the windows. - * @see DefaultWindowDecorationRenderer - * @author Martin - */ -public interface WindowDecorationRenderer { - /** - * 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 - * @param textGUI Which TextGUI is calling - * @param graphics Graphics to use for drawing - * @param window Window to draw - * @return A new TextGraphics that is limited to the area inside the decorations just drawn - */ - TextGUIGraphics draw(TextGUI textGUI, TextGUIGraphics graphics, Window window); - - /** - * Retrieves the full size of the window, including all window decorations, given all components inside the window. - * @param window Window to calculate size for - * @param contentAreaSize Size of the content area in the window - * @return Full size of the window, including decorations - */ - TerminalSize getDecoratedSize(Window window, TerminalSize contentAreaSize); - - /** - * 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 - * @param window Window to get the offset for - * @return Position of the top left corner of the window, relative to the top left corner of the window decoration - */ - TerminalPosition getOffset(Window window); -}