- java.lang.Object
-
- mslinks.extra.ConsoleData
-
- All Implemented Interfaces:
Serializable
public class ConsoleData extends java.lang.Object implements Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConsoleData.CursorSize
static class
ConsoleData.Font
only this fonts are working...
-
Field Summary
Fields Modifier and Type Field Description private Size
buffer
private int[]
colors
private ConsoleData.CursorSize
cursize
private ConsoleFlags
flags
private ConsoleData.Font
font
private int
fontsize
private int
historybuffers
private int
historysize
private int
popupBG
private int
popupFG
static int
signature
static int
size
private int
textBG
private int
textFG
private Size
window
private Size
windowpos
-
Constructor Summary
Constructors Constructor Description ConsoleData()
ConsoleData(ByteReader br, int sz)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
b(int rgb)
static int
g(int rgb)
Size
getBufferSize()
int[]
getColorTable()
ConsoleFlags
getConsoleFlags()
ConsoleData.CursorSize
getCursorSize()
ConsoleData.Font
getFont()
int
getFontSize()
int
getHistoryBuffers()
int
getHistorySize()
int
getPopupTextBackground()
get index in array returned by getColorTable() methodint
getPopupTextColor()
get index in array returned by getColorTable() methodint
getTextBackground()
get index in array returned by getColorTable() methodint
getTextColor()
get index in array returned by getColorTable() methodSize
getWindowPos()
Size
getWindowSize()
static int
r(int rgb)
static int
rgb(int r, int g, int b)
void
serialize(ByteWriter bw)
ConsoleData
setCursorSize(ConsoleData.CursorSize cs)
ConsoleData
setFont(ConsoleData.Font f)
ConsoleData
setFontSize(int n)
ConsoleData
setHistoryBuffers(int n)
ConsoleData
setHistorySize(int n)
ConsoleData
setPopupTextBackground(int n)
set index in array returned by getColorTable() methodConsoleData
setPopupTextColor(int n)
set index in array returned by getColorTable() methodConsoleData
setTextBackground(int n)
set index in array returned by getColorTable() methodConsoleData
setTextColor(int n)
set index in array returned by getColorTable() method
-
-
-
Field Detail
-
signature
public static final int signature
- See Also:
- Constant Field Values
-
size
public static final int size
- See Also:
- Constant Field Values
-
flags
private ConsoleFlags flags
-
textFG
private int textFG
-
textBG
private int textBG
-
popupFG
private int popupFG
-
popupBG
private int popupBG
-
buffer
private Size buffer
-
window
private Size window
-
windowpos
private Size windowpos
-
fontsize
private int fontsize
-
font
private ConsoleData.Font font
-
cursize
private ConsoleData.CursorSize cursize
-
historysize
private int historysize
-
historybuffers
private int historybuffers
-
colors
private int[] colors
-
-
Constructor Detail
-
ConsoleData
public ConsoleData()
-
ConsoleData
public ConsoleData(ByteReader br, int sz) throws ShellLinkException, java.io.IOException
- Throws:
ShellLinkException
java.io.IOException
-
-
Method Detail
-
rgb
public static int rgb(int r, int g, int b)
-
r
public static int r(int rgb)
-
g
public static int g(int rgb)
-
b
public static int b(int rgb)
-
serialize
public void serialize(ByteWriter bw) throws java.io.IOException
- Specified by:
serialize
in interfaceSerializable
- Throws:
java.io.IOException
-
getColorTable
public int[] getColorTable()
-
getTextColor
public int getTextColor()
get index in array returned by getColorTable() method
-
setTextColor
public ConsoleData setTextColor(int n)
set index in array returned by getColorTable() method
-
getTextBackground
public int getTextBackground()
get index in array returned by getColorTable() method
-
setTextBackground
public ConsoleData setTextBackground(int n)
set index in array returned by getColorTable() method
-
getPopupTextColor
public int getPopupTextColor()
get index in array returned by getColorTable() method
-
setPopupTextColor
public ConsoleData setPopupTextColor(int n)
set index in array returned by getColorTable() method
-
getPopupTextBackground
public int getPopupTextBackground()
get index in array returned by getColorTable() method
-
setPopupTextBackground
public ConsoleData setPopupTextBackground(int n)
set index in array returned by getColorTable() method
-
getBufferSize
public Size getBufferSize()
-
getWindowSize
public Size getWindowSize()
-
getWindowPos
public Size getWindowPos()
-
getConsoleFlags
public ConsoleFlags getConsoleFlags()
-
getFontSize
public int getFontSize()
-
setFontSize
public ConsoleData setFontSize(int n)
-
getFont
public ConsoleData.Font getFont()
-
setFont
public ConsoleData setFont(ConsoleData.Font f)
-
getCursorSize
public ConsoleData.CursorSize getCursorSize()
-
setCursorSize
public ConsoleData setCursorSize(ConsoleData.CursorSize cs)
-
getHistorySize
public int getHistorySize()
-
setHistorySize
public ConsoleData setHistorySize(int n)
-
getHistoryBuffers
public int getHistoryBuffers()
-
setHistoryBuffers
public ConsoleData setHistoryBuffers(int n)
-
-