|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CCustomColours
public class CCustomColours
Represents a custom colour scheme, wrapping a ColourInfo object and importing its contents into Collections suitable for random access.
This also ensures that the ColourInfo object is read-only when in use.
| Field Summary | |
|---|---|
protected java.util.ArrayList<java.lang.Integer> |
m_Blue
Fast-access array of available colours' blue values. |
protected CColourIO.ColourInfo |
m_ColourInfo
Wrapped colour info object. |
protected java.util.ArrayList<java.lang.Integer> |
m_Green
Fast-access array of available colours' green values. |
protected java.util.ArrayList<java.lang.Integer> |
m_Red
Fast-access array of available colours' red values. |
| Constructor Summary | |
|---|---|
CCustomColours(CColourIO.ColourInfo ColInfo)
Sole constructor; copies the data from a given ColourInfo object. |
|
| Method Summary | |
|---|---|
int |
GetBlue(int colour)
Gets the blue value of a given colour. |
int |
GetGreen(int colour)
Gets the green value of a given colour. |
int |
GetNumColours()
Gets number of available colours. |
int |
GetRed(int colour)
Gets the red value of a given colour. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CColourIO.ColourInfo m_ColourInfo
protected java.util.ArrayList<java.lang.Integer> m_Red
protected java.util.ArrayList<java.lang.Integer> m_Green
protected java.util.ArrayList<java.lang.Integer> m_Blue
| Constructor Detail |
|---|
public CCustomColours(CColourIO.ColourInfo ColInfo)
ColInfo - ColourInfo object detailing the scheme we wish to represent.| Method Detail |
|---|
public int GetNumColours()
public int GetRed(int colour)
colour - Index of the colour to look up.
public int GetGreen(int colour)
colour - Index of the colour to look up.
public int GetBlue(int colour)
colour - Index of the colour to look up.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||