llnl.visit
Class ColorAttribute

java.lang.Object
  extended by llnl.visit.AttributeSubject
      extended by llnl.visit.ColorAttribute

public class ColorAttribute
extends AttributeSubject


Constructor Summary
ColorAttribute()
           
ColorAttribute(ColorAttribute obj)
           
ColorAttribute(int nMoreFields)
           
ColorAttribute(int r, int g, int b)
           
ColorAttribute(int r, int g, int b, int a)
           
 
Method Summary
 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.
 
Methods inherited from class llnl.visit.AttributeSubject
Attach, boolToString, 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, WriteSelect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorAttribute

public ColorAttribute()

ColorAttribute

public ColorAttribute(int nMoreFields)

ColorAttribute

public ColorAttribute(ColorAttribute obj)

ColorAttribute

public ColorAttribute(int r,
                      int g,
                      int b)

ColorAttribute

public ColorAttribute(int r,
                      int g,
                      int b,
                      int a)
Method Detail

Offset

public int Offset()
Description copied from class: AttributeSubject
Returns the offset into the selected table where this state object's fields begin.

Overrides:
Offset in class AttributeSubject
Returns:
An offset into the selected table.

GetNumAdditionalAttributes

public int GetNumAdditionalAttributes()
Description copied from class: AttributeSubject
Returns the number of attributes added in this level of the state object.

Overrides:
GetNumAdditionalAttributes in class AttributeSubject
Returns:
The number of attributes added in this level of the state object.

equals

public boolean equals(ColorAttribute obj)

SetColor

public void SetColor(byte[] color_)

SetColor

public void SetColor(byte e0,
                     byte e1,
                     byte e2,
                     byte e3)

GetColor

public byte[] GetColor()

WriteAtts

public void WriteAtts(CommunicationBuffer buf)
Description copied from class: AttributeSubject
Writes the selected fields of the object to the buffer.

Overrides:
WriteAtts in class AttributeSubject
Parameters:
buf - The communication buffer to which the object will be written.

ReadAtts

public void ReadAtts(int index,
                     CommunicationBuffer buf)
Description copied from class: AttributeSubject
Reads the specified index's data from the buffer into the object.

Specified by:
ReadAtts in class AttributeSubject
buf - The communication buffer to from which the object will be read.

toString

public java.lang.String toString(java.lang.String indent)
Overrides:
toString in class AttributeSubject

Red

public int Red()

Green

public int Green()

Blue

public int Blue()

Alpha

public int Alpha()