Class RMNestedDoc

All Implemented Interfaces:
RMArchiver.Archiving, RMAnimator.Listener, Cloneable

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

    • RMNestedDoc

      public RMNestedDoc()
      Creates an unitialized nested doc.
    • RMNestedDoc

      public RMNestedDoc(RMDocument aDocument)
      Creates a new nested doc for given doc.
  • Method Details

    • 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.
    • setSelectedPageIndex

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

      public RMAnimator getChildAnimator(boolean create)
      Returns the child animator for the nested doc (creating if absent and requested).
      Overrides:
      getChildAnimator in class RMShape
    • setParent

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

      public void animatorDidUpdate(RMAnimator anAnimator)
      Animator listener callback.
      Specified by:
      animatorDidUpdate in interface RMAnimator.Listener
    • animatorDidStop

      public void animatorDidStop(RMAnimator anAnimator)
      Animator listener callback.
      Specified by:
      animatorDidStop in interface RMAnimator.Listener
    • getPageCount

      public int getPageCount()
      Returns the number of pages in nested doc.
      Overrides:
      getPageCount in class RMShape
    • rpgClonePreprocess

      public void rpgClonePreprocess(ReportMill reportMill)
      RPG cline - does work of nested doc.
      Overrides:
      rpgClonePreprocess in class RMShape
    • rpgClone

      public RMShape rpgClone(ReportMill reportMill)
      RPG clone - returns a specific page.
      Overrides:
      rpgClone in class RMShape
    • equals

      public boolean equals(Object anObj)
      Standard equals implementaion.
      Overrides:
      equals in class RMShape
    • copy

      public void copy(Object anObj)
      Standard copy implementation.
      Overrides:
      copy in class RMShape
    • cloneDeep

      public RMShape cloneDeep()
      Clone deep implemenation.
      Overrides:
      cloneDeep in class RMShape
    • initWithArchiver

      public Object initWithArchiver(RMArchiver anArchiver)
      Legacy unarchival.
      Specified by:
      initWithArchiver in interface RMArchiver.Archiving
      Overrides:
      initWithArchiver in class RMShape
    • superSelectable

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

      public boolean childrenSuperSelectImmediately()
      Editor method - indicates that children super-select immediately.
      Overrides:
      childrenSuperSelectImmediately in class RMShape
    • acceptsChildren

      public boolean acceptsChildren()
      Editor method - indicates that nested doc can't accept children.
      Overrides:
      acceptsChildren in class RMShape
    • getChildrenWhoHitTest

      public List getChildrenWhoHitTest()
      Editor method - indicates that children aren't selectable.
      Overrides:
      getChildrenWhoHitTest in class RMShape