public final class SetTextMode extends Info
PrintText| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_BLACK
Color black.
|
static int |
COLOR_BLUE
Color blue.
|
static int |
COLOR_CYAN
Color cyan.
|
static int |
COLOR_GREEN
Color green.
|
static int |
COLOR_MAGENTA
Color magenta.
|
static int |
COLOR_RED
Color red.
|
static int |
COLOR_WHITE
Color white.
|
static int |
COLOR_YELLOW
Color yellow.
|
static int |
MODE_BLINK
Blink mode.
|
static int |
MODE_HIGHLIGHT
Highlight mode.
|
static int |
MODE_NORMAL
Normal mode.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
exec()
Reset the current text mode to the default setting.
|
static void |
exec(int fgColor,
int bgColor,
int mode)
Set the current text mode.
|
java.lang.String |
getClassName()
Gets the command class name.
|
java.lang.String |
getName()
Gets the name of the command.
|
java.util.Enumeration |
getParams()
Gets the command parameters.
|
boolean |
initCommand() |
boolean |
isInternal()
Indicates if this is an internal SWATH command or not.
|
boolean |
isUserDefined()
Indicates if this command is user defined or not.
|
public static final int COLOR_BLACK
public static final int COLOR_RED
public static final int COLOR_GREEN
public static final int COLOR_YELLOW
public static final int COLOR_BLUE
public static final int COLOR_MAGENTA
public static final int COLOR_CYAN
public static final int COLOR_WHITE
public static final int MODE_NORMAL
public static final int MODE_HIGHLIGHT
public static final int MODE_BLINK
public boolean isInternal()
CommandIfcisInternal in interface CommandIfctrue if internal, otherwise false.public boolean initCommand()
throws java.lang.Exception
java.lang.Exceptionpublic static void exec()
throws java.lang.Exception
java.lang.Exceptionpublic static void exec(int fgColor,
int bgColor,
int mode)
throws java.lang.Exception
fgColor - The foreground color.bgColor - The background color.mode - Text mode (combine several modes with logic OR: | ):
MODE_NORMAL, MODE_HIGHLIGHT or MODE_BLINK.java.lang.ExceptionCOLOR_BLACK,
COLOR_RED,
COLOR_GREEN,
COLOR_YELLOW,
COLOR_BLUE,
COLOR_MAGENTA,
COLOR_CYAN,
COLOR_WHITE,
MODE_NORMAL,
MODE_HIGHLIGHT,
MODE_BLINKpublic final boolean isUserDefined()
CommandIfcisUserDefined in interface CommandIfctrue if user defined, otherwise false.public final java.lang.String getName()
CommandIfcgetName in interface CommandIfcpublic final java.lang.String getClassName()
CommandIfcgetClassName in interface CommandIfcpublic final java.util.Enumeration getParams()
CommandIfcgetParams in interface CommandIfc