|
Josh Native console access wrapper for Java |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.yifanlu.Josh.ConsoleAttribute
com.yifanlu.Josh.ConsoleScreenBufferInfo
public class ConsoleScreenBufferInfo
Contains information about a console screen buffer.
JoshOutBuffer.getConsoleScreenBufferInfo(),
JoshOutBuffer.setConsoleScreenBufferInfo(com.yifanlu.Josh.ConsoleScreenBufferInfo)| Field Summary |
|---|
| Fields inherited from class com.yifanlu.Josh.ConsoleAttribute |
|---|
attributes, COMMON_LVB_GRID_HORIZONTAL, COMMON_LVB_GRID_LVERTICAL, COMMON_LVB_GRID_RVERTICAL, COMMON_LVB_LEADING_BYTE, COMMON_LVB_REVERSE_VIDEO, COMMON_LVB_TRAILING_BYTE, COMMON_LVB_UNDERSCORE |
| Constructor Summary | |
|---|---|
ConsoleScreenBufferInfo(ConsoleCoord size,
ConsoleCoord cursorPosition,
int attributes,
ConsoleSmallRect window,
ConsoleCoord maximumWindowSize)
Creates a new console screen buffer infomation. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anObject)
Compares two Objects, if both are ConsoleScreenBufferInfo and have the same values, they are equal. |
ConsoleCoord |
getCursorPosition()
Gets the location of the cursor in the buffer info. |
ConsoleCoord |
getMaximumWindowSize()
Gets the largest size of the buffer info. |
ConsoleCoord |
getSize()
Gets the size of the console buffer in the buffer info. |
ConsoleSmallRect |
getWindow()
Gets the size of the window in the buffer info. |
int |
hashCode()
Returns a hash code. |
void |
setCursorPosition(ConsoleCoord cursorPosition)
Sets the location of the cursor in the buffer info. |
void |
setMaximumWindowSize(ConsoleCoord maximumWindowSize)
Sets the largest size of the buffer info. |
void |
setSize(ConsoleCoord size)
Sets the size of the console buffer in the buffer info. |
void |
setWindow(ConsoleSmallRect window)
Sets the size of the window in the buffer info. |
java.lang.String |
toString()
A String representation of this object. |
| Methods inherited from class com.yifanlu.Josh.ConsoleAttribute |
|---|
addAttributes, getAttributes, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleScreenBufferInfo(ConsoleCoord size,
ConsoleCoord cursorPosition,
int attributes,
ConsoleSmallRect window,
ConsoleCoord maximumWindowSize)
size - The size of the console screen buffer, in character columns and rows.cursorPosition - The column and row coordinates of the cursor in the console screen buffer.window - The console screen buffer coordinates of the upper-left and lower-right corners of the display window.attributes - The attributes of the characters written to a screen buffer by the JoshOutBuffer.writeConsoleOutput(com.yifanlu.Josh.ConsoleCharInfo[], com.yifanlu.Josh.ConsoleCoord, com.yifanlu.Josh.ConsoleCoord, com.yifanlu.Josh.ConsoleSmallRect) function, or echoed
to a screen buffer by the JoshOutBuffer.readConsoleOutput(com.yifanlu.Josh.ConsoleCoord, com.yifanlu.Josh.ConsoleCoord, com.yifanlu.Josh.ConsoleSmallRect) functions. For more information, see
Character Attributes.maximumWindowSize - The maximum size of the console window, in character columns and rows, given the current screen buffer size and font and the screen size.| Method Detail |
|---|
public ConsoleCoord getSize()
public ConsoleCoord getCursorPosition()
public ConsoleSmallRect getWindow()
public ConsoleCoord getMaximumWindowSize()
public void setSize(ConsoleCoord size)
size - The size of the console screen buffer, in character columns and rows.public void setCursorPosition(ConsoleCoord cursorPosition)
cursorPosition - The column and row coordinates of the cursor in the console screen buffer.public void setWindow(ConsoleSmallRect window)
window - The console screen buffer coordinates of the upper-left and lower-right corners of the display window.public void setMaximumWindowSize(ConsoleCoord maximumWindowSize)
maximumWindowSize - The maximum size of the console window, in character columns and rows, given the current screen buffer size and font and the screen size.public boolean equals(java.lang.Object anObject)
equals in class ConsoleAttributeanObject - Another ConsoleScreenBufferInfo object.
public int hashCode()
hashCode in class ConsoleAttributepublic java.lang.String toString()
String representation of this object.
toString in class ConsoleAttribute
|
Copyright © 2010 Yifan Lu | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||