X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FSwingBackend.java;h=bfbd07e2c4b64194e170211d0e43466f84d216e7;hb=3f499f9f180683b0ecf098684412d99662a523c7;hp=281670d1d1bcde2e1eb174cbb515a319d89df481;hpb=3e0743556d1f31723a11a6019b5c2b018b4b2104;p=fanfix.git diff --git a/src/jexer/backend/SwingBackend.java b/src/jexer/backend/SwingBackend.java index 281670d..bfbd07e 100644 --- a/src/jexer/backend/SwingBackend.java +++ b/src/jexer/backend/SwingBackend.java @@ -35,7 +35,11 @@ import javax.swing.JComponent; * This class uses standard Swing calls to handle screen, keyboard, and mouse * I/O. */ -public final class SwingBackend extends GenericBackend { +public class SwingBackend extends GenericBackend { + + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ /** * Public constructor. The window will be 80x25 with font size 20 pts. @@ -127,6 +131,10 @@ public final class SwingBackend extends GenericBackend { screen = (SwingTerminal) terminal; } + // ------------------------------------------------------------------------ + // SwingBackend ----------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Set to a new font, and resize the screen to match its dimensions. * @@ -136,4 +144,15 @@ public final class SwingBackend extends GenericBackend { ((SwingTerminal) terminal).setFont(font); } + /** + * Get the number of millis to wait before switching the blink from + * visible to invisible. + * + * @return the number of milli to wait before switching the blink from + * visible to invisible + */ + public long getBlinkMillis() { + return ((SwingTerminal) terminal).getBlinkMillis(); + } + }