be.lassi.lanbox.domain
Class Buffer
java.lang.Object
be.lassi.lanbox.domain.Buffer
- Direct Known Subclasses:
- Layer
public class Buffer
- extends java.lang.Object
A lanbox buffer (buffer is a generic term for lanbox layers and
other buffers such as the lanbox mixer, i/o, dmx in and dmx out).
Constructor Summary |
Buffer(int id,
java.lang.String name,
int numberOfLevels)
Constructs a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Buffer
public Buffer(int id,
java.lang.String name,
int numberOfLevels)
- Constructs a new instance.
- Parameters:
id
- the buffer identifiernumberOfLevels
- the number of levels
addListener
public void addListener(BufferListener listener)
getId
public int getId()
- Gets the buffer identifier.
- Returns:
- the buffer identifier
getLevels
public Levels getLevels()
- Gets the buffer levels.
- Returns:
- the buffer levels
getName
public java.lang.String getName()
- Gets the buffer name.
- Returns:
- the buffer name
removeListener
public void removeListener(BufferListener listener)
setLevelValues
public void setLevelValues(int[] values)
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object