Class RMPropertyChangeEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    RMXString.CharsChange, RMXString.StyleChange, TextRun.CharsChange

    public class RMPropertyChangeEvent
    extends java.beans.IndexedPropertyChangeEvent
    An (Indexed) PropertyChangeEvent subclass to describe shape property changes. Index should be less than zero if not really an indexed property change.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      RMPropertyChangeEvent​(java.lang.Object aParent, java.beans.PropertyChangeEvent anEvent)
      Creates a shape property change event.
      RMPropertyChangeEvent​(java.lang.Object aSource, java.lang.String aProperty, java.lang.Object oldValue, java.lang.Object newValue, int anIndex)
      Creates a property change event.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doChange​(java.lang.Object oldValue, java.lang.Object newValue)
      Does this change with given new/old values.
      static RMPropertyChangeEvent getEvent​(java.util.EventObject anEvent)
      Returns the given EventObject as a shape property change event.
      java.lang.Object getParent()
      Returns parent if this change is forwarded from a parent object.
      RMPropertyChangeEvent merge​(RMPropertyChangeEvent anEvent)
      Attempts to merge the given property change into this property change.
      void redoChange()
      Redoes this change.
      java.lang.String toString()
      Simple to string.
      void undoChange()
      Undoes this change.
      • Methods inherited from class java.beans.IndexedPropertyChangeEvent

        getIndex
      • Methods inherited from class java.beans.PropertyChangeEvent

        getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RMPropertyChangeEvent

        public RMPropertyChangeEvent​(java.lang.Object aSource,
                                     java.lang.String aProperty,
                                     java.lang.Object oldValue,
                                     java.lang.Object newValue,
                                     int anIndex)
        Creates a property change event.
      • RMPropertyChangeEvent

        public RMPropertyChangeEvent​(java.lang.Object aParent,
                                     java.beans.PropertyChangeEvent anEvent)
        Creates a shape property change event.
    • Method Detail

      • getParent

        public java.lang.Object getParent()
        Returns parent if this change is forwarded from a parent object.
      • getEvent

        public static RMPropertyChangeEvent getEvent​(java.util.EventObject anEvent)
        Returns the given EventObject as a shape property change event.
      • undoChange

        public void undoChange()
        Undoes this change.
      • redoChange

        public void redoChange()
        Redoes this change.
      • doChange

        protected void doChange​(java.lang.Object oldValue,
                                java.lang.Object newValue)
        Does this change with given new/old values.
      • toString

        public java.lang.String toString()
        Simple to string.
        Overrides:
        toString in class java.beans.PropertyChangeEvent