public class TerminalAttributes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COLOR_HOST_BLUE
Return value from
getColor() when the attribute/field color is HostBlue. |
static int |
COLOR_HOST_GREEN
Return value from
getColor() when the attribute/field color is HostGreen. |
static int |
COLOR_HOST_NOCOLOR
Return value from
getColor() when the attribute/field does not have a color. |
static int |
COLOR_HOST_PINK
Return value from
getColor() when the attribute/field color is HostPink. |
static int |
COLOR_HOST_RED
Return value from
getColor() when the attribute/field color is HostRed. |
static int |
COLOR_HOST_TURQUOISE
Return value from
getColor() when the attribute/field color is HostTurquoise. |
static int |
COLOR_HOST_WHITE
Return value from
getColor() when the attribute/field color is HostWhite. |
static int |
COLOR_HOST_YELLOW
Return value from
getColor() when the attribute/field color is HostYellow. |
Constructor and Description |
---|
TerminalAttributes(TerminalAttrs saObject)
Constructor for internal use only.
|
Modifier and Type | Method and Description |
---|---|
int |
getColor()
Gets the color terminal attribute of this object.
|
boolean |
isBlinking()
Discovers whether the blinking terminal attribute is set for this object.
|
boolean |
isColumnSeparated()
Discovers whether the column separated terminal attribute is set for this object.
|
boolean |
isHalfBrite()
Discovers whether the half-brite terminal attribute is set for this object.
|
boolean |
isIntense()
Discovers whether the intense terminal attribute is set for this object.
|
boolean |
isNonDisplay()
Discovers whether the nondisplay terminal attribute is set for this object.
|
boolean |
isNumeric()
Discovers whether the numeric terminal attribute is set for this object.
|
boolean |
isPenDetect()
Discovers whether the pen detect terminal attribute is set for this object.
|
boolean |
isProtected()
Discovers whether the protected terminal attribute is set for this object.
|
boolean |
isReverse()
Discovers whether the reverse terminal attribute is set for this object.
|
boolean |
isUnderscore()
Discovers whether the underscore terminal attribute is set for this object.
|
java.lang.String |
toString()
Generates a String object that represents the current
values of this TerminalAttributes object.
|
public static final int COLOR_HOST_NOCOLOR
getColor()
when the attribute/field does not have a color.public static final int COLOR_HOST_BLUE
getColor()
when the attribute/field color is HostBlue.public static final int COLOR_HOST_RED
getColor()
when the attribute/field color is HostRed.public static final int COLOR_HOST_PINK
getColor()
when the attribute/field color is HostPink.public static final int COLOR_HOST_GREEN
getColor()
when the attribute/field color is HostGreen.public static final int COLOR_HOST_TURQUOISE
getColor()
when the attribute/field color is HostTurquoise.public static final int COLOR_HOST_YELLOW
getColor()
when the attribute/field color is HostYellow.public static final int COLOR_HOST_WHITE
getColor()
when the attribute/field color is HostWhite.public TerminalAttributes(TerminalAttrs saObject)
saObject
- datapublic int getColor()
There are fields defined for some of the colors that a host may use:
If there is no color, the method returns COLOR_HOST_NOCOLOR (-1)
public boolean isBlinking()
public boolean isColumnSeparated()
public boolean isHalfBrite()
public boolean isIntense()
public boolean isNonDisplay()
public boolean isNumeric()
public boolean isPenDetect()
public boolean isProtected()
public boolean isReverse()
public boolean isUnderscore()
public java.lang.String toString()
toString
in class java.lang.Object