クラス org.objectweb.cjdbc.console.text.ColorPrinter

すべてのメンバ一覧

説明

This class defines a ColorPrinter

作者:
Nicolas Modrzyk
バージョン:
1.0

ColorPrinter.java35 行で定義されています。

Static Public メソッド

final void printMessage (final String message, final PrintStream stream, final int color)
final void printMessage (final String message, final PrintStream stream, final int color, boolean endline)

Static Public 変数

final int STD = 0
final int ERROR = 1
final int INFO = 2
final int STATUS = 3
final int PROMPT = 4

Static Private 変数

final int ATTR_BRIGHT = 1
final int ATTR_DIM = 2
final int FG_BLACK = 30
final int FG_RED = 31
final int FG_BLUE = 34
final int FG_MAGENTA = 35
final String PREFIX = "\u001b["
final String SUFFIX = "m"
final char SEPARATOR = ';'
final String END_COLOR = PREFIX + SUFFIX
final String stdColor
final String errColor
final String verboseColor
final String infoColor
final String statusColor
final String promptColor


メソッド

final void org.objectweb.cjdbc.console.text.ColorPrinter.printMessage final String  message,
final PrintStream  stream,
final int  color,
boolean  endline
[static]
 

Print a message in color ColorPrinter.java121 行で定義されています。

参照先 org.objectweb.cjdbc.console.text.ColorPrinter.END_COLOR, org.objectweb.cjdbc.console.text.ColorPrinter.errColor, org.objectweb.cjdbc.console.text.ColorPrinter.ERROR, org.objectweb.cjdbc.console.text.ColorPrinter.INFO, org.objectweb.cjdbc.console.text.ColorPrinter.infoColor, org.objectweb.cjdbc.console.text.ColorPrinter.PROMPT, org.objectweb.cjdbc.console.text.ColorPrinter.promptColor, org.objectweb.cjdbc.console.text.ColorPrinter.STATUS, org.objectweb.cjdbc.console.text.ColorPrinter.statusColor, org.objectweb.cjdbc.console.text.ColorPrinter.STD, と org.objectweb.cjdbc.console.text.ColorPrinter.stdColor.

00123 { 00124 00125 final StringBuffer msg = new StringBuffer(message); 00126 switch (color) 00127 { 00128 case STD : 00129 msg.insert(0, stdColor); 00130 msg.append(END_COLOR); 00131 break; 00132 case ERROR : 00133 msg.insert(0, errColor); 00134 msg.append(END_COLOR); 00135 break; 00136 case INFO : 00137 msg.insert(0, infoColor); 00138 msg.append(END_COLOR); 00139 break; 00140 case STATUS : 00141 msg.insert(0, statusColor); 00142 msg.append(END_COLOR); 00143 break; 00144 case PROMPT : 00145 msg.insert(0, promptColor); 00146 msg.append(END_COLOR); 00147 break; 00148 } 00149 final String strmessage = msg.toString(); 00150 if (endline) 00151 stream.println(strmessage); 00152 else 00153 stream.print(strmessage); 00154 }

final void org.objectweb.cjdbc.console.text.ColorPrinter.printMessage final String  message,
final PrintStream  stream,
final int  color
[static]
 

Print a message in color ColorPrinter.java112 行で定義されています。

00114 { 00115 printMessage(message, stream, color, true); 00116 }


変数

final int org.objectweb.cjdbc.console.text.ColorPrinter.ATTR_BRIGHT = 1 [static, private]
 

ColorPrinter.java38 行で定義されています。

final int org.objectweb.cjdbc.console.text.ColorPrinter.ATTR_DIM = 2 [static, private]
 

ColorPrinter.java39 行で定義されています。

final String org.objectweb.cjdbc.console.text.ColorPrinter.END_COLOR = PREFIX + SUFFIX [static, private]
 

ColorPrinter.java66 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final String org.objectweb.cjdbc.console.text.ColorPrinter.errColor [static, private]
 

初期値:

ColorPrinter.java70 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final int org.objectweb.cjdbc.console.text.ColorPrinter.ERROR = 1 [static]
 

Error color ColorPrinter.java95 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final int org.objectweb.cjdbc.console.text.ColorPrinter.FG_BLACK = 30 [static, private]
 

ColorPrinter.java45 行で定義されています。

final int org.objectweb.cjdbc.console.text.ColorPrinter.FG_BLUE = 34 [static, private]
 

ColorPrinter.java49 行で定義されています。

final int org.objectweb.cjdbc.console.text.ColorPrinter.FG_MAGENTA = 35 [static, private]
 

ColorPrinter.java50 行で定義されています。

final int org.objectweb.cjdbc.console.text.ColorPrinter.FG_RED = 31 [static, private]
 

ColorPrinter.java46 行で定義されています。

final int org.objectweb.cjdbc.console.text.ColorPrinter.INFO = 2 [static]
 

Info color for commands ColorPrinter.java99 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final String org.objectweb.cjdbc.console.text.ColorPrinter.infoColor [static, private]
 

初期値:

ColorPrinter.java74 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final String org.objectweb.cjdbc.console.text.ColorPrinter.PREFIX = "\u001b[" [static, private]
 

ColorPrinter.java63 行で定義されています。

final int org.objectweb.cjdbc.console.text.ColorPrinter.PROMPT = 4 [static]
 

status color for commands ColorPrinter.java107 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final String org.objectweb.cjdbc.console.text.ColorPrinter.promptColor [static, private]
 

初期値:

ColorPrinter.java78 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final char org.objectweb.cjdbc.console.text.ColorPrinter.SEPARATOR = ';' [static, private]
 

ColorPrinter.java65 行で定義されています。

final int org.objectweb.cjdbc.console.text.ColorPrinter.STATUS = 3 [static]
 

status color for commands ColorPrinter.java103 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final String org.objectweb.cjdbc.console.text.ColorPrinter.statusColor [static, private]
 

初期値:

ColorPrinter.java76 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final int org.objectweb.cjdbc.console.text.ColorPrinter.STD = 0 [static]
 

Standard color ColorPrinter.java91 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final String org.objectweb.cjdbc.console.text.ColorPrinter.stdColor [static, private]
 

初期値:

ColorPrinter.java68 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.ColorPrinter.printMessage().

final String org.objectweb.cjdbc.console.text.ColorPrinter.SUFFIX = "m" [static, private]
 

ColorPrinter.java64 行で定義されています。

final String org.objectweb.cjdbc.console.text.ColorPrinter.verboseColor [static, private]
 

初期値:

ColorPrinter.java72 行で定義されています。


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:25 2004に生成されました。 doxygen 1.3.8