|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.image.ColorPository.ColorRecord
public static class ColorPository.ColorRecord
Used to store information on a particular color. These are public to simplify the XML parsing process, so pay them no mind.
| Field Summary | |
|---|---|
protected Colorization |
_zation
Our data represented as a colorization. |
ColorPository.ClassRecord |
cclass
The colorization class to which we belong. |
int |
colorId
A unique colorization identifier (used in fingerprints). |
String |
name
The name of the target color. |
float[] |
offsets
Data indicating the offset (in HSV color space) from the source color to recolor to this color. |
boolean |
starter
Tags this color as a legal starting color or not. |
| Constructor Summary | |
|---|---|
ColorPository.ColorRecord()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ColorPository.ColorRecord other)
|
Colorization |
getColorization()
Returns the data in this record configured as a colorization instance. |
int |
getColorPrint()
Returns a value that is the composite of our class id and color id which can be used to identify a colorization record. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ColorPository.ClassRecord cclass
public int colorId
public String name
public float[] offsets
public boolean starter
protected transient Colorization _zation
| Constructor Detail |
|---|
public ColorPository.ColorRecord()
| Method Detail |
|---|
public int getColorPrint()
public Colorization getColorization()
public int compareTo(ColorPository.ColorRecord other)
compareTo in interface Comparable<ColorPository.ColorRecord>public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||