|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.domain
Class Channels
java.lang.Object be.lassi.base.SaveableObject be.lassi.base.NamedObjects be.lassi.domain.Channels
- All Implemented Interfaces:
- java.lang.Iterable<Channel>
public class Channels
- extends NamedObjects
- implements java.lang.Iterable<Channel>
- extends NamedObjects
Collection of Channel
objects.
Constructor Summary | |
---|---|
Channels()
Constructs a new instance. |
|
Channels(Dirty dirty)
Constructs a new instance. |
Method Summary | |
---|---|
void |
add(Channel channel)
Adds a channel. |
boolean |
equals(java.lang.Object object)
|
Channel |
get(int index)
Get the channel object at given index. |
NamedObject |
getNamedObject(int index)
Gets the object at given index. |
float |
getValue(int index)
Get the level value of the channel at given index. |
int |
hashCode()
|
java.util.Iterator<Channel> |
iterator()
|
void |
set(Channels c)
Set the names of our channels to the names of the channels in given collection. |
void |
setValue(int index,
float value)
Set the level value of channel with given index to given value. |
int |
size()
The number of named objects in the collection. |
Methods inherited from class be.lassi.base.NamedObjects |
---|
addNameListener, removeNameListener |
Methods inherited from class be.lassi.base.SaveableObject |
---|
doNotMarkDirty, getDirty, isDirty, markDirty, setDirty |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Channels
public Channels()
- Constructs a new instance.
Channels
public Channels(Dirty dirty)
- Constructs a new instance.
- Parameters:
dirty
- the dirty indicator
Method Detail |
---|
add
public void add(Channel channel)
- Adds a channel.
- Parameters:
channel
- the channel to be added
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in classjava.lang.Object
get
public Channel get(int index)
- Get the channel object at given index.
- Parameters:
index
- the index in the channel collection- Returns:
- the channel at given index
getNamedObject
public NamedObject getNamedObject(int index)
- Gets the object at given index.
- Specified by:
getNamedObject
in classNamedObjects
- Parameters:
index
- the index of the object to be returned- Returns:
- the object at given index
getValue
public float getValue(int index)
- Get the level value of the channel at given index.
- Parameters:
index
- the index in the channel collection- Returns:
- the value of the channel at given index
hashCode
public int hashCode()
-
- Overrides:
hashCode
in classjava.lang.Object
iterator
public java.util.Iterator<Channel> iterator()
-
- Specified by:
iterator
in interfacejava.lang.Iterable<Channel>
set
public void set(Channels c)
- Set the names of our channels to the names of the channels in given
collection.
- Parameters:
c
- the channels from which to set the names
setValue
public void setValue(int index, float value)
- Set the level value of channel with given index to given value.
- Parameters:
index
- the channel indexvalue
- the value to set
size
public int size()
- The number of named objects in the collection.
- Specified by:
size
in classNamedObjects
- Returns:
- the number of objects in the collection
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |