Class PasteMusicShapeEditorOperator

java.lang.Object
com.softsynth.jmsl.util.PasteMusicShapeEditorOperator
All Implemented Interfaces:
Namable, MusicShapeEditorOperator

public class PasteMusicShapeEditorOperator
extends java.lang.Object
implements MusicShapeEditorOperator
Paste to current MusicShapes location the contents of the 0th element in MusicShapeEditor's static copy buffer. Depending on constructor flag, either deletes current range selection before inserting or simply inserts
Author:
Nick Didkovsky, nick@didkovsky.com
  • Constructor Summary

    Constructors
    Constructor Description
    PasteMusicShapeEditorOperator​(boolean inPlace)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()  
    void operate​(MusicShapeEditor se, MusicShape s)
    Paste from MusicShapeEditor's static copy buffer to current index of current MusicShape s.
    void setName​(java.lang.String n)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PasteMusicShapeEditorOperator

      public PasteMusicShapeEditorOperator​(boolean inPlace)
  • Method Details

    • operate

      public void operate​(MusicShapeEditor se, MusicShape s)
      Paste from MusicShapeEditor's static copy buffer to current index of current MusicShape s. Uses DimensionNameSpaceTranslator to attempt maximum compatibility. Uses a DimensionNameSpaceTranslator to achieve maximum fit between source and destination MusicShape in case their dimension names spaces differ
      Specified by:
      operate in interface MusicShapeEditorOperator
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface Namable
    • setName

      public void setName​(java.lang.String n)
      Specified by:
      setName in interface Namable