- 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 classConsoleData.CursorSizestatic classConsoleData.Fontonly this fonts are working...
-
Field Summary
Fields Modifier and Type Field Description private Sizebufferprivate int[]colorsprivate ConsoleData.CursorSizecursizeprivate ConsoleFlagsflagsprivate ConsoleData.Fontfontprivate intfontsizeprivate inthistorybuffersprivate inthistorysizeprivate intpopupBGprivate intpopupFGstatic intsignaturestatic intsizeprivate inttextBGprivate inttextFGprivate Sizewindowprivate Sizewindowpos
-
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 intb(int rgb)static intg(int rgb)SizegetBufferSize()int[]getColorTable()ConsoleFlagsgetConsoleFlags()ConsoleData.CursorSizegetCursorSize()ConsoleData.FontgetFont()intgetFontSize()intgetHistoryBuffers()intgetHistorySize()intgetPopupTextBackground()get index in array returned by getColorTable() methodintgetPopupTextColor()get index in array returned by getColorTable() methodintgetTextBackground()get index in array returned by getColorTable() methodintgetTextColor()get index in array returned by getColorTable() methodSizegetWindowPos()SizegetWindowSize()static intr(int rgb)static intrgb(int r, int g, int b)voidserialize(ByteWriter bw)ConsoleDatasetCursorSize(ConsoleData.CursorSize cs)ConsoleDatasetFont(ConsoleData.Font f)ConsoleDatasetFontSize(int n)ConsoleDatasetHistoryBuffers(int n)ConsoleDatasetHistorySize(int n)ConsoleDatasetPopupTextBackground(int n)set index in array returned by getColorTable() methodConsoleDatasetPopupTextColor(int n)set index in array returned by getColorTable() methodConsoleDatasetTextBackground(int n)set index in array returned by getColorTable() methodConsoleDatasetTextColor(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:
ShellLinkExceptionjava.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:
serializein 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)
-
-