+ @Override
+ public synchronized Panel setSize(TerminalSize size) {
+ if (image != null)
+ image.setSize(size);
+
+ super.setSize(size);
+
+ setImage(image);
+
+ return this;
+ };
+
+ /**
+ * Set/reset the {@link ImageText} to render.
+ *
+ * @param image
+ * the new {@link ImageText}
+ */
+ private void setImage(ImageText image) {
+ this.image = image;