Class Console


  • public class Console
    extends java.lang.Object
    Utility class for text console managment
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean swigCMemOwn  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Console()  
      protected Console​(long cPtr, boolean cMemoryOwn)  
    • Field Detail

      • swigCMemOwn

        protected transient boolean swigCMemOwn
    • Constructor Detail

      • Console

        protected Console​(long cPtr,
                          boolean cMemoryOwn)
      • Console

        public Console()
    • Method Detail

      • getCPtr

        protected static long getCPtr​(Console obj)
      • finalize

        protected void finalize()
        Overrides:
        finalize in class java.lang.Object
      • delete

        public void delete()
      • savePosition

        public void savePosition()
      • getX

        public int getX()
        return current X cursor position
      • getY

        public int getY()
        return current Y cursor position
      • gotoxy

        public void gotoxy​(int x,
                           int y)
        position the cursor to (x,y) coordinates
      • gotoSavedPosition

        public void gotoSavedPosition()
      • setColor

        public void setColor​(long col)
        set the color of the printed text (background and foreground)
      • setBackgroundColor

        public void setBackgroundColor​(char col)
        set the Background color of printed text
      • setForegroundColor

        public void setForegroundColor​(char col)
        set the Foreground color of printed text
      • getConsoleTextAttributes

        public long getConsoleTextAttributes()
        return the default console text attributes
      • restoreDefaultConsoleTextAttributes

        public void restoreDefaultConsoleTextAttributes()
        restore the default console text attributes
      • clearScreen

        public void clearScreen()
        Clear the screen
      • fbox

        public void fbox​(int x,
                         int y,
                         int x1,
                         int y1,
                         boolean relative)
      • split_h

        public void split_h​(int x,
                            int x1,
                            int y)
      • split_v

        public void split_v​(int y,
                            int y1,
                            int x)
      • drawGrid

        public void drawGrid​(int x,
                             int y,
                             int col,
                             int row,
                             int w,
                             int h)