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()
CommandIfc
isInternal
in interface CommandIfc
true
if internal, otherwise false
.public boolean initCommand() throws java.lang.Exception
java.lang.Exception
public static void exec() throws java.lang.Exception
java.lang.Exception
public 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.Exception
COLOR_BLACK
,
COLOR_RED
,
COLOR_GREEN
,
COLOR_YELLOW
,
COLOR_BLUE
,
COLOR_MAGENTA
,
COLOR_CYAN
,
COLOR_WHITE
,
MODE_NORMAL
,
MODE_HIGHLIGHT
,
MODE_BLINK
public final boolean isUserDefined()
CommandIfc
isUserDefined
in interface CommandIfc
true
if user defined, otherwise false
.public final java.lang.String getName()
CommandIfc
getName
in interface CommandIfc
public final java.lang.String getClassName()
CommandIfc
getClassName
in interface CommandIfc
public final java.util.Enumeration getParams()
CommandIfc
getParams
in interface CommandIfc