X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fcom%2Fgooglecode%2Flanterna%2Fterminal%2Fswing%2FAWTTerminal.java;h=97e20e62a3ad98a83400fdc05b6344ea1dcfb60f;hb=a73a906356c971b080c36368e71a15d87e8b8d31;hp=90efcbc2beec2d0a79fde93207142c66c909e7ff;hpb=a3b510ab4bf89a7a2a05f3851ffe0f030b8a78f4;p=jvcard.git diff --git a/src/com/googlecode/lanterna/terminal/swing/AWTTerminal.java b/src/com/googlecode/lanterna/terminal/swing/AWTTerminal.java index 90efcbc..97e20e6 100644 --- a/src/com/googlecode/lanterna/terminal/swing/AWTTerminal.java +++ b/src/com/googlecode/lanterna/terminal/swing/AWTTerminal.java @@ -162,11 +162,20 @@ public class AWTTerminal extends Panel implements IOSafeTerminal { scrollController); } + /** + * Overridden method from AWT's {@code Component} class that returns the preferred size of the terminal (in pixels) + * @return The terminal's preferred size in pixels + */ @Override public synchronized Dimension getPreferredSize() { return terminalImplementation.getPreferredSize(); } + /** + * Overridden method from AWT's {@code Component} class that is called by OS window system when the component needs + * to be redrawn + * @param {@code Graphics} object to use when drawing the component + */ @Override public synchronized void paint(Graphics componentGraphics) { // Flicker-free AWT! @@ -174,6 +183,11 @@ public class AWTTerminal extends Panel implements IOSafeTerminal { terminalImplementation.paintComponent(componentGraphics); } + /** + * Overridden method from AWT's {@code Component} class that is called by OS window system when the component needs + * to be updated (the size has changed) and redrawn + * @param {@code Graphics} object to use when drawing the component + */ @Override public synchronized void update(Graphics componentGraphics) { // Flicker-free AWT!