Class DmxDataItem

    • 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 point
        brightness - the brightness value of the point
        uniqueId - the uniqueId
        port - 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 point
        brightness - the brightness value of the point
        uniqueId - the uniqueId
        macro - 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 above
        listener - 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 name
        listener - the PropertyChangeListener to be removed
      • firePropertyChange

        protected void firePropertyChange​(String propertyName,
                                          Object oldValue,
                                          Object newValue)
        Notifies all registered listeners that the annotation has changed.
      • clone

        public Object clone()
        Overrides:
        clone in class org.jfree.data.xy.XYDataItem
      • toString

        public String toString()
        Overrides:
        toString in class org.jfree.data.xy.XYDataItem
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.jfree.data.xy.XYDataItem
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.jfree.data.xy.XYDataItem
      • compareTo

        public int compareTo​(Object o1)
        Specified by:
        compareTo in interface Comparable
        Overrides:
        compareTo in class org.jfree.data.xy.XYDataItem