X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTImage.java;h=bc827b709a4dd5e75bd1021f1c30c6ab11f19d49;hb=382bc294dd88b71639fdd6c73216d2519635a080;hp=1a9aa9e62e6d5ec2b9ce4c52de3461a39c297c25;hpb=e9bb3c1e57e52ea19a153059a3f42656ea6ed51c;p=fanfix.git diff --git a/src/jexer/TImage.java b/src/jexer/TImage.java index 1a9aa9e..bc827b7 100644 --- a/src/jexer/TImage.java +++ b/src/jexer/TImage.java @@ -111,6 +111,25 @@ public class TImage extends TWidget { // Constructors ----------------------------------------------------------- // ------------------------------------------------------------------------ + /** + * Public constructor. + * + * @param parent parent widget + * @param x column relative to parent + * @param y row relative to parent + * @param width number of text cells for width of the image + * @param height number of text cells for height of the image + * @param image the image to display + * @param left left column of the image. 0 is the left-most column. + * @param top top row of the image. 0 is the top-most row. + */ + public TImage(final TWidget parent, final int x, final int y, + final int width, final int height, + final BufferedImage image, final int left, final int top) { + + this(parent, x, y, width, height, image, left, top, null); + } + /** * Public constructor. *