|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--irc.gui.pixx.PixxColorModel
PixxInterface color model.
Field Summary | |
static int |
COLOR_BACK
|
static int |
COLOR_BLACK
|
static int |
COLOR_CLOSE
|
static int |
COLOR_DARK_GRAY
|
static int |
COLOR_EVENT
|
static int |
COLOR_FEMEALE
|
static int |
COLOR_FRONT
|
static int |
COLOR_GRAY
|
static int |
COLOR_LIGHT_GRAY
|
static int |
COLOR_MALE
|
static int |
COLOR_OP
|
static int |
COLOR_SELECTED
|
static int |
COLOR_SEMIOP
|
static int |
COLOR_UNDEF
|
static int |
COLOR_VOICE
|
static int |
COLOR_WHITE
|
Constructor Summary | |
PixxColorModel()
Create a new PixxColorModel using default colors. |
|
PixxColorModel(java.awt.Color[] cols)
Create a new PixxColorModel using given colors. |
|
PixxColorModel(int r,
int g,
int b)
Create a new PixxColorModel using given r g b basecolor. |
Method Summary | |
java.awt.Color |
getColor(int i)
Get the i'th color. |
int |
getColorCount()
Get the number of colors. |
void |
setColor(int i,
java.awt.Color c)
Replace the i'th color with the given color. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int COLOR_BLACK
public static final int COLOR_WHITE
public static final int COLOR_DARK_GRAY
public static final int COLOR_GRAY
public static final int COLOR_LIGHT_GRAY
public static final int COLOR_FRONT
public static final int COLOR_BACK
public static final int COLOR_SELECTED
public static final int COLOR_EVENT
public static final int COLOR_CLOSE
public static final int COLOR_VOICE
public static final int COLOR_OP
public static final int COLOR_SEMIOP
public static final int COLOR_MALE
public static final int COLOR_FEMEALE
public static final int COLOR_UNDEF
Constructor Detail |
public PixxColorModel()
public PixxColorModel(int r, int g, int b)
r
- red base color.g
- green base color.b
- blue base color.public PixxColorModel(java.awt.Color[] cols)
cols
- colors to use.Method Detail |
public void setColor(int i, java.awt.Color c)
IRCColorModel
setColor
in interface IRCColorModel
i
- color index. Must be smaller than getColorCount.c
- new color.public int getColorCount()
IRCColorModel
getColorCount
in interface IRCColorModel
public java.awt.Color getColor(int i)
IRCColorModel
getColor
in interface IRCColorModel
i
- color index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |