Class DmxDataItem
- java.lang.Object
-
- org.jfree.data.xy.XYDataItem
-
- org.bidib.wizard.mvc.dmx.view.panel.DmxDataItem
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable
public class DmxDataItem extends org.jfree.data.xy.XYDataItem- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_ACTIONstatic StringPROPERTY_BRIGHTNESSstatic StringPROPERTY_MACROstatic StringPROPERTY_PORTstatic StringPROPERTY_TIME_OFFSET
-
Constructor Summary
Constructors Constructor Description DmxDataItem(Number timeOffset, Number brightness, long uniqueId, org.bidib.wizard.api.model.function.MacroFunction macro)Creates a new DmxDataItem instance.DmxDataItem(Number timeOffset, Number brightness, long uniqueId, org.bidib.wizard.model.ports.Port<?> port)Creates a new DmxDataItem instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener listener)Adds a PropertyChangeListener to the listener list.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener)Adds a PropertyChangeListener to the listener list for a specific property.Objectclone()intcompareTo(Object o1)protected PropertyChangeSupportcreatePropertyChangeSupport(Object bean)booleanequals(Object obj)protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue)Notifies all registered listeners that the annotation has changed.org.bidib.wizard.model.status.BidibStatusgetAction()intgetBrightness()org.bidib.wizard.api.model.function.MacroFunctiongetMacro()org.bidib.wizard.model.ports.Port<?>getPort()intgetTimeOffset()longgetUniqueId()inthashCode()voidremoveChangeListener(PropertyChangeListener listener)Removes a PropertyChangeListener from the listener list.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener)Removes a PropertyChangeListener from the listener list for a specific property.voidsetAction(org.bidib.wizard.model.status.BidibStatus action)voidsetBrightness(int brightness)voidsetMacro(org.bidib.wizard.api.model.function.MacroFunction macro)voidsetPort(org.bidib.wizard.model.ports.Port<?> port)voidsetTimeOffset(int timeOffset)StringtoString()
-
-
-
Field Detail
-
PROPERTY_TIME_OFFSET
public static final String PROPERTY_TIME_OFFSET
- See Also:
- Constant Field Values
-
PROPERTY_BRIGHTNESS
public static final String PROPERTY_BRIGHTNESS
- See Also:
- Constant Field Values
-
PROPERTY_PORT
public static final String PROPERTY_PORT
- See Also:
- Constant Field Values
-
PROPERTY_MACRO
public static final String PROPERTY_MACRO
- See Also:
- Constant Field Values
-
PROPERTY_ACTION
public static final String PROPERTY_ACTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DmxDataItem
public DmxDataItem(Number timeOffset, Number brightness, long uniqueId, org.bidib.wizard.model.ports.Port<?> port)
Creates a new DmxDataItem instance.- Parameters:
timeOffset- the time offset of the pointbrightness- the brightness value of the pointuniqueId- the uniqueIdport- the assigned port (maybe null)
-
DmxDataItem
public DmxDataItem(Number timeOffset, Number brightness, long uniqueId, org.bidib.wizard.api.model.function.MacroFunction macro)
Creates a new DmxDataItem instance.- Parameters:
timeOffset- the time offset of the pointbrightness- the brightness value of the pointuniqueId- the uniqueIdmacro- the assigned macro (maybe null)
-
-
Method Detail
-
getUniqueId
public long getUniqueId()
- Returns:
- the uniqueId of this item
-
getPort
public org.bidib.wizard.model.ports.Port<?> getPort()
-
setPort
public void setPort(org.bidib.wizard.model.ports.Port<?> port)
-
getMacro
public org.bidib.wizard.api.model.function.MacroFunction getMacro()
-
setMacro
public void setMacro(org.bidib.wizard.api.model.function.MacroFunction macro)
-
getTimeOffset
public int getTimeOffset()
-
getBrightness
public int getBrightness()
-
setTimeOffset
public void setTimeOffset(int timeOffset)
-
setBrightness
public void setBrightness(int brightness)
-
getAction
public org.bidib.wizard.model.status.BidibStatus getAction()
- Returns:
- the action
-
setAction
public void setAction(org.bidib.wizard.model.status.BidibStatus action)
- Parameters:
action- the action to set
-
addPropertyChangeListener
public final void addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.- Parameters:
listener- the PropertyChangeListener to be added
-
removeChangeListener
public final void removeChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list.- Parameters:
listener- the PropertyChangeListener to be removed.
-
addPropertyChangeListener
public final void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list for a specific property. The specified property may be user-defined.Note that if this Model is inheriting a bound property, then no event will be fired in response to a change in the inherited property.
If listener is
null, no exception is thrown and no action is performed.- Parameters:
propertyName- one of the property names listed abovelistener- the PropertyChangeListener to be added
-
removePropertyChangeListener
public final void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list for a specific property. This method should be used to remove PropertyChangeListeners that were registered for a specific bound property.If listener is
null, no exception is thrown and no action is performed.- Parameters:
propertyName- a valid property namelistener- the PropertyChangeListener to be removed
-
createPropertyChangeSupport
protected PropertyChangeSupport createPropertyChangeSupport(Object bean)
-
firePropertyChange
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
Notifies all registered listeners that the annotation has changed.
-
clone
public Object clone()
- Overrides:
clonein classorg.jfree.data.xy.XYDataItem
-
toString
public String toString()
- Overrides:
toStringin classorg.jfree.data.xy.XYDataItem
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classorg.jfree.data.xy.XYDataItem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.jfree.data.xy.XYDataItem
-
compareTo
public int compareTo(Object o1)
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classorg.jfree.data.xy.XYDataItem
-
-