irc.gui.pixx
Class PixxColorModel

java.lang.Object
  |
  +--irc.gui.pixx.PixxColorModel
All Implemented Interfaces:
IRCColorModel

public class PixxColorModel
extends java.lang.Object
implements IRCColorModel

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

COLOR_BLACK

public static final int COLOR_BLACK
See Also:
Constant Field Values

COLOR_WHITE

public static final int COLOR_WHITE
See Also:
Constant Field Values

COLOR_DARK_GRAY

public static final int COLOR_DARK_GRAY
See Also:
Constant Field Values

COLOR_GRAY

public static final int COLOR_GRAY
See Also:
Constant Field Values

COLOR_LIGHT_GRAY

public static final int COLOR_LIGHT_GRAY
See Also:
Constant Field Values

COLOR_FRONT

public static final int COLOR_FRONT
See Also:
Constant Field Values

COLOR_BACK

public static final int COLOR_BACK
See Also:
Constant Field Values

COLOR_SELECTED

public static final int COLOR_SELECTED
See Also:
Constant Field Values

COLOR_EVENT

public static final int COLOR_EVENT
See Also:
Constant Field Values

COLOR_CLOSE

public static final int COLOR_CLOSE
See Also:
Constant Field Values

COLOR_VOICE

public static final int COLOR_VOICE
See Also:
Constant Field Values

COLOR_OP

public static final int COLOR_OP
See Also:
Constant Field Values

COLOR_SEMIOP

public static final int COLOR_SEMIOP
See Also:
Constant Field Values

COLOR_MALE

public static final int COLOR_MALE
See Also:
Constant Field Values

COLOR_FEMEALE

public static final int COLOR_FEMEALE
See Also:
Constant Field Values

COLOR_UNDEF

public static final int COLOR_UNDEF
See Also:
Constant Field Values
Constructor Detail

PixxColorModel

public PixxColorModel()
Create a new PixxColorModel using default colors.


PixxColorModel

public PixxColorModel(int r,
                      int g,
                      int b)
Create a new PixxColorModel using given r g b basecolor.

Parameters:
r - red base color.
g - green base color.
b - blue base color.

PixxColorModel

public PixxColorModel(java.awt.Color[] cols)
Create a new PixxColorModel using given colors.

Parameters:
cols - colors to use.
Method Detail

setColor

public void setColor(int i,
                     java.awt.Color c)
Description copied from interface: IRCColorModel
Replace the i'th color with the given color.

Specified by:
setColor in interface IRCColorModel
Parameters:
i - color index. Must be smaller than getColorCount.
c - new color.

getColorCount

public int getColorCount()
Description copied from interface: IRCColorModel
Get the number of colors.

Specified by:
getColorCount in interface IRCColorModel
Returns:
color count.

getColor

public java.awt.Color getColor(int i)
Description copied from interface: IRCColorModel
Get the i'th color.

Specified by:
getColor in interface IRCColorModel
Parameters:
i - color index.
Returns:
i'th color.