|
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.ConsoleCharInfo
public class ConsoleCharInfo
Specifies a character and its attributes. This structure is used by console functions to read from and write to a console screen buffer.
JoshOutBuffer| 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 | |
|---|---|
ConsoleCharInfo(char character,
ConsoleAttribute attribute)
Creates a new character with attributes. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anObject)
Compares two Objects, if both are ConsoleCharInfo and have the same character and attributes, they are equal. |
char |
getCharacter()
Gets the char stored in the object. |
int |
hashCode()
Returns a hash code. |
void |
setCharacter(char character)
Sets the character |
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 ConsoleCharInfo(char character,
ConsoleAttribute attribute)
ConsoleAttribute
and it's subclass ConsoleColor.
character - A char to represent.attribute - The attribute(s) of the character which can be mixed with the OR operator.| Method Detail |
|---|
public char getCharacter()
public void setCharacter(char character)
character - A char to represent.public boolean equals(java.lang.Object anObject)
equals in class ConsoleAttributeanObject - Another ConsoleCharInfo object.
public int hashCode()
hashCode in class ConsoleAttributepublic java.lang.String toString()
String representation of this object.
toString in class ConsoleAttributeString
|
Copyright © 2010 Yifan Lu | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||