Class RMNestedDoc

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, RMAnimator.Listener, PropertyChangeListener, Cloneable, EventListener

public class RMNestedDoc extends RMParentShape implements RMAnimator.Listener
This class represents a shape for a document inside a page of another document.
  • Constructor Details

    • RMNestedDoc

      public RMNestedDoc()
  • Method Details

    • getNestedDoc

      public RMDocument getNestedDoc()
      Returns the nested document.
    • setNestedDoc

      public void setNestedDoc(RMDocument aDoc)
      Sets the nested document.
    • getSelectedPageIndex

      public int getSelectedPageIndex()
      Returns the selected page index.
    • setSelectedPageIndex

      public void setSelectedPageIndex(int anIndex)
      Sets the selected page index for the nested doc.
    • getSelectedPage

      public RMPage getSelectedPage()
      Returns the selected page.
    • getDelay

      public float getDelay()
      Returns the number of seconds the nested doc animation time lags the master document.
    • setDelay

      public void setDelay(float aValue)
      Sets the number of seconds the nested doc animation time lags the master document.
    • getScaleFactor

      public float getScaleFactor()
      Returns the relative speed of the nested docs animation relative to the master document.
    • setScaleFactor

      public void setScaleFactor(float aValue)
      Sets the relative speed of the nested docs animation relative to the master document.
    • getGapDelay

      public float getGapDelay()
      Returns the number of seconds the nested doc animation will wait between loops.
    • setGapDelay

      public void setGapDelay(float aValue)
      Sets the number of seconds the nested doc animation will wait between loops.
    • setParent

      public void setParent(RMParentShape aParent)
      Overrides shape method to register this with animator listener, so nested doc can update child timeline.
      Overrides:
      setParent in class RMShape
    • getChildAnimator

      public RMAnimator getChildAnimator(boolean doCreate)
      Returns the child animator associated with this page, creating one if it doesn't exist (if requested).
      Overrides:
      getChildAnimator in class RMShape
    • setChildAnimator

      protected void setChildAnimator(RMAnimator anAnimator)
      Sets the child animator associated with this page.
    • animatorStarted

      public void animatorStarted(RMAnimator anAnimator)
      Animator Listener method.
      Specified by:
      animatorStarted in interface RMAnimator.Listener
    • animatorStopped

      public void animatorStopped(RMAnimator anAnimator)
      Animator listener method.
      Specified by:
      animatorStopped in interface RMAnimator.Listener
    • animatorUpdated

      public void animatorUpdated(RMAnimator anAnimator)
      Animator Listener method.
      Specified by:
      animatorUpdated in interface RMAnimator.Listener
    • superSelectable

      public boolean superSelectable()
      Editor method - indicates that nested doc is super-selectable.
      Overrides:
      superSelectable in class RMShape