Class BaseEngineProperties

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Collection propertyChangeListeners
      List of PropertyChangeListeners registered for PropertyChangeEvents on this object.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseEngineProperties()
      Class constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
      Adds a PropertyChangeListener to the listener list.
      void dispatchSpeechEvent​(SpeechEvent event)
      Dispatches a PropertyChangeEvent.
      void firePropertyChangeEvent​(java.beans.PropertyChangeEvent event)
      Sends a PropertyChangeEvent to all PropertyChangeListeners registered with this object.
      java.awt.Component getControlComponent()
      Obtains the AWT Component that provides the default user interface for setting the properties of the Engine associated with this object.
      protected void postPropertyChangeEvent​(java.lang.String propName, boolean oldValue, boolean newValue)
      Generates a PropertyChangeEvent for a boolean value and posts it to the event queue.
      protected void postPropertyChangeEvent​(java.lang.String propName, float oldValue, float newValue)
      Generates a PropertyChangeEvent for a float value and posts it to the event queue.
      protected void postPropertyChangeEvent​(java.lang.String propName, int oldValue, int newValue)
      Generates a PropertyChangeEvent for a int value and posts it to the event queue.
      protected void postPropertyChangeEvent​(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
      Generates a PropertyChangeEvent for an Object value and posts it to the event queue.
      void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
      Removes a PropertyChangeListener from the listener list.
      abstract void reset()
      Returns all properties to reasonable defaults for the Engine.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • propertyChangeListeners

        protected java.util.Collection propertyChangeListeners
        List of PropertyChangeListeners registered for PropertyChangeEvents on this object.
    • Constructor Detail

      • BaseEngineProperties

        protected BaseEngineProperties()
        Class constructor.
    • Method Detail

      • getControlComponent

        public java.awt.Component getControlComponent()
        Obtains the AWT Component that provides the default user interface for setting the properties of the Engine associated with this object.
        Returns:
        an AWT Component to manipulate this object
      • reset

        public abstract void reset()
        Returns all properties to reasonable defaults for the Engine. A PropertyChangeEvent is issued for each property that changes as the reset takes effect.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Adds a PropertyChangeListener to the listener list.
        Parameters:
        listener - the PropertyChangeListener to add
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Removes a PropertyChangeListener from the listener list.
        Parameters:
        listener - the PropertyChangeListener to remove
      • postPropertyChangeEvent

        protected void postPropertyChangeEvent​(java.lang.String propName,
                                               java.lang.Object oldValue,
                                               java.lang.Object newValue)
        Generates a PropertyChangeEvent for an Object value and posts it to the event queue. Eventually firePropertyChangeEvent will be called by dispatchSpeechEvent as a result of this action.
        Parameters:
        propName - the name of the property
        oldValue - the old value
        newValue - the new value
        See Also:
        firePropertyChangeEvent(java.beans.PropertyChangeEvent), dispatchSpeechEvent(SpeechEvent)
      • postPropertyChangeEvent

        protected void postPropertyChangeEvent​(java.lang.String propName,
                                               float oldValue,
                                               float newValue)
        Generates a PropertyChangeEvent for a float value and posts it to the event queue. Eventually firePropertyChangeEvent will be called by dispatchSpeechEvent as a result of this action.
        Parameters:
        propName - the name of the property
        oldValue - the old value
        newValue - the new value
        See Also:
        firePropertyChangeEvent(java.beans.PropertyChangeEvent), dispatchSpeechEvent(SpeechEvent)
      • postPropertyChangeEvent

        protected void postPropertyChangeEvent​(java.lang.String propName,
                                               int oldValue,
                                               int newValue)
        Generates a PropertyChangeEvent for a int value and posts it to the event queue. Eventually firePropertyChangeEvent will be called by dispatchSpeechEvent as a result of this action.
        Parameters:
        propName - the name of the property
        oldValue - the old value
        newValue - the new value
        See Also:
        firePropertyChangeEvent(java.beans.PropertyChangeEvent), dispatchSpeechEvent(SpeechEvent)
      • postPropertyChangeEvent

        protected void postPropertyChangeEvent​(java.lang.String propName,
                                               boolean oldValue,
                                               boolean newValue)
        Generates a PropertyChangeEvent for a boolean value and posts it to the event queue. Eventually firePropertyChangeEvent will be called by dispatchSpeechEvent as a result of this action.
        Parameters:
        propName - the name of the property
        oldValue - the old value
        newValue - the new value
        See Also:
        firePropertyChangeEvent(java.beans.PropertyChangeEvent), dispatchSpeechEvent(SpeechEvent)