Class AFrame

java.lang.Object
  extended by AFrame

public class AFrame
extends java.lang.Object

The representation of a single frame. Contains the data of all 512 LEDs in a given time.


Constructor Summary
AFrame()
           
 
Method Summary
 short[] getData()
          Gets tha Data of this Frame
 short[] getLayer(int i)
          Gets the Data of the Layer you want
 java.lang.String getName()
          Gets the Name of this Frame
 short getTime()
          Gets the Duration of this Frame
 void setData(short[] d)
          Sets the Data of this Frame
 void setName(java.lang.String s)
          Sets the Name of this Frame
 void setTime(short t)
          Sets the Duration of this Frame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFrame

public AFrame()
Method Detail

getName

public java.lang.String getName()
Gets the Name of this Frame

Returns:
Name of the Frame

setName

public void setName(java.lang.String s)
Sets the Name of this Frame

Parameters:
s - New Name

setData

public void setData(short[] d)
Sets the Data of this Frame

Parameters:
d - 64 bytes that contain data (8 bit per byte, so 8 LEDs)

getData

public short[] getData()
Gets tha Data of this Frame

Returns:
64 bytes that contain data (8 bits / LEDs per byte)

setTime

public void setTime(short t)
Sets the Duration of this Frame

Parameters:
t - Duration of frame in (( t * (1/24) ) + (1/24)) seconds

getTime

public short getTime()
Gets the Duration of this Frame

Returns:
Duration of frame.
See Also:
setTime()

getLayer

public short[] getLayer(int i)
Gets the Data of the Layer you want

Parameters:
i - Number of Layer you want
Returns:
8 byte array with data of selected layer