|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.Info
com.swath.cmd.SwathCommand
com.swath.cmd.SetTextMode
Set the current text mode.
Prompts: -
PrintText| Field Summary | |
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
mode. |
static int |
MODE_HIGHLIGHT
Highlight mode. |
static int |
MODE_NORMAL
Normal mode. |
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
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
| Method Detail |
public boolean isInternal()
CommandIfc
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.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()
CommandIfc
isUserDefined in interface CommandIfctrue if user defined, otherwise false.public final java.lang.String getName()
CommandIfc
getName in interface CommandIfcpublic final java.lang.String getClassName()
CommandIfc
getClassName in interface CommandIfcpublic final java.util.Enumeration getParams()
CommandIfc
getParams in interface CommandIfc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||