PMD code sweep, #6 don't add MyWindow twice to MyApplication
[fanfix.git] / src / jexer / backend / SwingBackend.java
index 281670d1d1bcde2e1eb174cbb515a319d89df481..d6e07422d467f0cbe867ed5f755b38ac3357e4ad 100644 (file)
@@ -37,6 +37,10 @@ import javax.swing.JComponent;
  */
 public final 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();
+    }
+
 }