Class NoteOrnament

java.lang.Object
com.softsynth.jmsl.score.NoteOrnament
All Implemented Interfaces:
Namable
Direct Known Subclasses:
DrippyNoteOrnament, SquigglyNoteOrnament

public abstract class NoteOrnament
extends java.lang.Object
implements Namable
You can create your own NoteOrnament that will load and save with a Note. It can be assigned to a Note with addUserBean. It will be rendered along with the Note. It is a plug-in and so will be scanned for when ScoreFrame starts up
Author:
Nick Didkovsky, (c) 2005 Nick Didkovsky, nick@didkovsky.com
  • Constructor Summary

    Constructors
    Constructor Description
    NoteOrnament()  
  • Method Summary

    Modifier and Type Method Description
    abstract void draw​(java.awt.Graphics g, double zoom, Note n)
    define draw() in your subclass to do what you want
    java.lang.String getName()  
    int getXoffset()  
    int getYoffset()  
    void setName​(java.lang.String name)  
    void setXoffset​(int xoffset)  
    void setYoffset​(int yoffset)  

    Methods inherited from class java.lang.Object

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

    • NoteOrnament

      public NoteOrnament()
  • Method Details

    • draw

      public abstract void draw​(java.awt.Graphics g, double zoom, Note n)
      define draw() in your subclass to do what you want
    • getName

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

      public void setName​(java.lang.String name)
      Specified by:
      setName in interface Namable
      Parameters:
      name - The name to set.
    • getXoffset

      public int getXoffset()
      Returns:
      Returns the xoffset relative to the Note's drawing anchor
    • setXoffset

      public void setXoffset​(int xoffset)
      Parameters:
      xoffset - The xoffset to set relative to the Note's drawing anchor
    • getYoffset

      public int getYoffset()
      Returns:
      Returns the yoffset relative to the Note's drawing anchor
    • setYoffset

      public void setYoffset​(int yoffset)
      Parameters:
      yoffset - The yoffset to set relative to the Note's drawing anchor