public class ColorAttribute extends AttributeSubject
| Constructor and Description |
|---|
ColorAttribute() |
ColorAttribute(ColorAttribute obj) |
ColorAttribute(int nMoreFields) |
ColorAttribute(int r,
int g,
int b) |
ColorAttribute(int r,
int g,
int b,
int a) |
| Modifier and Type | Method and Description |
|---|---|
int |
Alpha() |
int |
Blue() |
boolean |
equals(ColorAttribute obj) |
byte[] |
GetColor() |
int |
GetNumAdditionalAttributes()
Returns the number of attributes added in this level of the state object.
|
int |
Green() |
int |
Offset()
Returns the offset into the selected table where this state object's fields begin.
|
void |
ReadAtts(int index,
CommunicationBuffer buf)
Reads the specified index's data from the buffer into the object.
|
int |
Red() |
void |
SetColor(byte[] color_) |
void |
SetColor(byte e0,
byte e1,
byte e2,
byte e3) |
java.lang.String |
toString(java.lang.String indent) |
void |
WriteAtts(CommunicationBuffer buf)
Writes the selected fields of the object to the buffer.
|
Attach, boolArrayToString, boolToString, boolVectorToString, Detach, doubleArrayToString, doubleToString, doubleVectorToString, floatArrayToString, floatToString, floatVectorToString, GetAttributeId, GetClassName, intArrayToString, intToString, intVectorToString, IsSelected, Notify, NumAttributes, NumAttributesSelected, Read, Select, SelectAll, SetAttributeId, stringToString, stringVectorToString, toString, ucharArrayToString, ucharToString, ucharVectorToString, UnSelectAll, Write, WriteSelectpublic ColorAttribute()
public ColorAttribute(int nMoreFields)
public ColorAttribute(ColorAttribute obj)
public ColorAttribute(int r,
int g,
int b)
public ColorAttribute(int r,
int g,
int b,
int a)
public int Offset()
AttributeSubjectOffset in class AttributeSubjectpublic int GetNumAdditionalAttributes()
AttributeSubjectGetNumAdditionalAttributes in class AttributeSubjectpublic boolean equals(ColorAttribute obj)
public void SetColor(byte[] color_)
public void SetColor(byte e0,
byte e1,
byte e2,
byte e3)
public byte[] GetColor()
public void WriteAtts(CommunicationBuffer buf)
AttributeSubjectWriteAtts in class AttributeSubjectbuf - The communication buffer to which the object will be written.public void ReadAtts(int index,
CommunicationBuffer buf)
AttributeSubjectReadAtts in class AttributeSubjectbuf - The communication buffer to from which the object will be read.public java.lang.String toString(java.lang.String indent)
toString in class AttributeSubjectpublic int Red()
public int Green()
public int Blue()
public int Alpha()