Class RangeMorpher


  • public class RangeMorpher
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RangeMorpher()
      This constructor is provided mainly for Java Bean compatibility.
      RangeMorpher​(int numSteps, int delay)
      Create a RangeMorpher instance on the supplied Chart.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
      Add a property change listener to this object.
      boolean isMorphing()
      Returns true if a morph is currently in progress
      void morph​(Range<?>[] sourceRanges, Range<?>[] destinationRanges)  
      void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
      Remove a property change listener from this object.
      • Methods inherited from class java.lang.Object

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

      • PROPERTY_MORPH_STARTED

        public static final java.lang.String PROPERTY_MORPH_STARTED
        See Also:
        Constant Field Values
      • PROPERTY_MORPH_ENDED

        public static final java.lang.String PROPERTY_MORPH_ENDED
        See Also:
        Constant Field Values
      • PROPERTY_MORPH_RANGES

        public static final java.lang.String PROPERTY_MORPH_RANGES
        See Also:
        Constant Field Values
    • Constructor Detail

      • RangeMorpher

        public RangeMorpher()
        This constructor is provided mainly for Java Bean compatibility. If you use it, make sure you call setChart to inform the object of the chart on which it operates.
      • RangeMorpher

        public RangeMorpher​(int numSteps,
                            int delay)
        Create a RangeMorpher instance on the supplied Chart.
        Parameters:
        numSteps - the number of steps in a transition
        delay - the delay between the steps, in milliseconds
    • Method Detail

      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Add a property change listener to this object. Property events are fired at the beginning and at the end of a transition.
        Parameters:
        listener - the property change listener
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Remove a property change listener from this object.
        Parameters:
        listener - the property change listener to remove
      • isMorphing

        public boolean isMorphing()
        Returns true if a morph is currently in progress
        Returns:
        a boolean to indicate whether a morph is in progress.
      • morph

        public void morph​(Range<?>[] sourceRanges,
                          Range<?>[] destinationRanges)