Package org.bidib.wizard.mvc.dmx.model
Class DmxScenery
- java.lang.Object
-
- com.jgoodies.common.bean.Bean
-
- com.jgoodies.binding.beans.Model
-
- org.bidib.wizard.mvc.dmx.model.DmxScenery
-
- All Implemented Interfaces:
com.jgoodies.common.bean.ObservableBean,com.jgoodies.common.bean.ObservableBean2,Serializable
public class DmxScenery extends com.jgoodies.binding.beans.ModelTheDmxSceneryholds the data of a single scenery. The single scenery contains points of one or more DMX channels.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_DIMM_STRETCHstatic StringPROPERTY_MACRO_NUMBERstatic StringPROPERTY_NAMEstatic StringPROPERTY_SCENERY_POINTSstatic StringPROPERTY_USED_CHANNELS
-
Constructor Summary
Constructors Constructor Description DmxScenery(String id)Creates a new instance of DmxScenery with the provided scenery id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSceneryPoint(DmxSceneryPoint dmxSceneryPoint)voidaddUsedChannel(org.bidib.wizard.model.ports.DmxChannel usedChannel)voidaddUsedChannels(List<org.bidib.wizard.model.ports.DmxChannel> usedChannels)org.bidib.jbidibc.exchange.dmxscenery.DmxSceneryTypefromDmxScenery()StringgetId()IntegergetMacroNumber()StringgetName()List<DmxSceneryPoint>getSceneryPoints()List<org.bidib.wizard.model.ports.DmxChannel>getUsedChannels()booleanremoveSceneryPoint(DmxSceneryPoint dmxSceneryPoint)voidremoveUsedChannel(org.bidib.wizard.model.ports.DmxChannel usedChannel)voidsetMacroNumber(Integer macroNumber)voidsetName(String name)voidsetSceneryPoints(List<DmxSceneryPoint> sceneryPoints)voidsetUsedChannels(List<org.bidib.wizard.model.ports.DmxChannel> usedChannels)StringtoString()org.bidib.wizard.model.ports.DmxChannelwithDmxChannel(org.bidib.wizard.model.ports.DmxChannel dmxChannel, DmxEnvironmentProvider dmxEnvironmentProvider, org.bidib.jbidibc.exchange.dmxscenery.DmxChannelType dmxChannelType)DmxScenerywithDmxScenery(DmxEnvironmentProvider dmxEnvironmentProvider, org.bidib.jbidibc.exchange.dmxscenery.DmxSceneryType dmxScenery)-
Methods inherited from class com.jgoodies.binding.beans.Model
createPropertyChangeSupport, firePropertyChange
-
Methods inherited from class com.jgoodies.common.bean.Bean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Field Detail
-
PROPERTY_NAME
public static final String PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_MACRO_NUMBER
public static final String PROPERTY_MACRO_NUMBER
- See Also:
- Constant Field Values
-
PROPERTY_DIMM_STRETCH
public static final String PROPERTY_DIMM_STRETCH
- See Also:
- Constant Field Values
-
PROPERTY_USED_CHANNELS
public static final String PROPERTY_USED_CHANNELS
- See Also:
- Constant Field Values
-
PROPERTY_SCENERY_POINTS
public static final String PROPERTY_SCENERY_POINTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DmxScenery
public DmxScenery(String id)
Creates a new instance of DmxScenery with the provided scenery id.- Parameters:
id- the scenery id
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the scenery id
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getUsedChannels
public List<org.bidib.wizard.model.ports.DmxChannel> getUsedChannels()
- Returns:
- the usedChannels
-
setUsedChannels
public void setUsedChannels(List<org.bidib.wizard.model.ports.DmxChannel> usedChannels)
- Parameters:
usedChannels- the usedChannels to set
-
addUsedChannels
public void addUsedChannels(List<org.bidib.wizard.model.ports.DmxChannel> usedChannels)
- Parameters:
usedChannels- the usedChannels to add
-
addUsedChannel
public void addUsedChannel(org.bidib.wizard.model.ports.DmxChannel usedChannel)
- Parameters:
usedChannel- the usedChannel to add
-
removeUsedChannel
public void removeUsedChannel(org.bidib.wizard.model.ports.DmxChannel usedChannel)
- Parameters:
usedChannel- the usedChannel to remove
-
getSceneryPoints
public List<DmxSceneryPoint> getSceneryPoints()
- Returns:
- the sceneryPoints
-
setSceneryPoints
public void setSceneryPoints(List<DmxSceneryPoint> sceneryPoints)
- Parameters:
sceneryPoints- the sceneryPoints to set
-
addSceneryPoint
public void addSceneryPoint(DmxSceneryPoint dmxSceneryPoint)
-
removeSceneryPoint
public boolean removeSceneryPoint(DmxSceneryPoint dmxSceneryPoint)
-
getMacroNumber
public Integer getMacroNumber()
- Returns:
- the macroNumber
-
setMacroNumber
public void setMacroNumber(Integer macroNumber)
- Parameters:
macroNumber- the macroNumber to set
-
withDmxScenery
public DmxScenery withDmxScenery(DmxEnvironmentProvider dmxEnvironmentProvider, org.bidib.jbidibc.exchange.dmxscenery.DmxSceneryType dmxScenery)
-
withDmxChannel
public org.bidib.wizard.model.ports.DmxChannel withDmxChannel(org.bidib.wizard.model.ports.DmxChannel dmxChannel, DmxEnvironmentProvider dmxEnvironmentProvider, org.bidib.jbidibc.exchange.dmxscenery.DmxChannelType dmxChannelType)
-
fromDmxScenery
public org.bidib.jbidibc.exchange.dmxscenery.DmxSceneryType fromDmxScenery()
-
-