X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2FBorder.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2FBorder.java;h=0000000000000000000000000000000000000000;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hp=fe532260572a1403d7e5f0504f97e5c304682314;hpb=a73a906356c971b080c36368e71a15d87e8b8d31;p=jvcard.git diff --git a/src/com/googlecode/lanterna/gui2/Border.java b/src/com/googlecode/lanterna/gui2/Border.java deleted file mode 100644 index fe53226..0000000 --- a/src/com/googlecode/lanterna/gui2/Border.java +++ /dev/null @@ -1,45 +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; - -/** - * Main interface for different border classes, with additional methods to help lanterna figure out the size and offset - * of components wrapped by borders. - * @author Martin - */ -public interface Border extends Container, Composite { - interface BorderRenderer extends ComponentRenderer { - /** - * How large is the offset from the top left corner of the border to the top left corner of the wrapped component? - * @return Position of the wrapped components top left position, relative to the top left corner of the border - */ - TerminalPosition getWrappedComponentTopLeftOffset(); - - /** - * Given a total size of the border composite and it's wrapped component, how large would the actual wrapped - * component be? - * @param borderSize Size to calculate for, this should be the total size of the border and the inner component - * @return Size of the inner component if the total size of inner + border is borderSize - */ - TerminalSize getWrappedComponentSize(TerminalSize borderSize); - } -}