本文整理汇总了Java中org.pircbotx.Colors.DARK_BLUE属性的典型用法代码示例。如果您正苦于以下问题:Java Colors.DARK_BLUE属性的具体用法?Java Colors.DARK_BLUE怎么用?Java Colors.DARK_BLUE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.pircbotx.Colors
的用法示例。
在下文中一共展示了Colors.DARK_BLUE属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toString
/**
* String representation of the card with IRC color formatting.
* Gives the card a colour based on suit and adds a white background.
*
* @return a IRC colour formatted string with the card's face and suit
*/
@Override
public String toString(){
String color;
if (suit.equals(CardDeck.suits[0])){
color = Colors.RED;
} else if ( suit.equals(CardDeck.suits[1])){
color = Colors.BROWN;
} else if ( suit.equals(CardDeck.suits[2])){
color = Colors.DARK_BLUE;
} else {
color = Colors.BLACK;
}
return color + ",00" + face + suit;
}
示例2: determineColor
private String determineColor(ItemClass color2) {
switch(color2) {
case Normal: case Newbie: return Colors.NORMAL;
case Animal: return Colors.BOLD + Colors.BROWN;
case Spiritual: return Colors.BOLD + Colors.BLUE;
case Saint: return Colors.BOLD + Colors.DARK_BLUE;
case Avatar: return Colors.BOLD + Colors.DARK_GREEN;
case Special: return Colors.BOLD + Colors.PURPLE;
case Retro: return Colors.BOLD + Colors.BLACK;
case Idle: return Colors.BOLD + Colors.MAGENTA;
}
return Colors.MAGENTA;
}
示例3: toString
/**
* Gets a string representation of the hand with hidden cards.
* User can specify how many of the cards are hidden.
*
* @param numHidden The number of hidden cards
* @return a String with the first numHidden cards replaced
*/
public String toString(int numHidden){
if (size() == 0) {
return "<empty>";
}
String hiddenBlock = Colors.DARK_BLUE+",00\uFFFD";
String outStr = "";
for (int ctr = 0; ctr < numHidden; ctr++){
outStr += hiddenBlock + " ";
}
for (int ctr = numHidden; ctr < size(); ctr++){
outStr += get(ctr) + " ";
}
return outStr.substring(0, outStr.length() - 1) + Colors.NORMAL;
}
示例4: colorize
private String colorize(String characther) {
return (characther.equals("X") ? Colors.RED : characther.equals("O") ? Colors.DARK_BLUE : Colors.PURPLE ) + characther + Colors.NORMAL;
}