com.softsynth.jmsl.score.justify
Class JustifiableNote
java.lang.Object
com.softsynth.jmsl.score.justify.JustifiableNote
- All Implemented Interfaces:
- Justifiable
public class JustifiableNote
- extends java.lang.Object
- implements Justifiable
- Author:
- Nick Didkovsky, (c) 2005 Nick Didkovsky, didkovn@mail.rockefeller.edu
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
JustifiableNote
public JustifiableNote(Note note,
double startTime)
getDuration
public double getDuration()
- Specified by:
getDuration
in interface Justifiable
setXLocation
public void setXLocation(double x)
- Specified by:
setXLocation
in interface Justifiable
getLocation
public java.awt.Point getLocation()
- Specified by:
getLocation
in interface Justifiable
getDurationalSpacing
public double getDurationalSpacing()
- Specified by:
getDurationalSpacing
in interface Justifiable
setDurationalSpacing
public void setDurationalSpacing(double v)
- Specified by:
setDurationalSpacing
in interface Justifiable
getStartTime
public double getStartTime()
- Specified by:
getStartTime
in interface Justifiable
setStartTime
public void setStartTime(double t)
- Specified by:
setStartTime
in interface Justifiable
getTextualSpacing
public double getTextualSpacing()
- Specified by:
getTextualSpacing
in interface Justifiable
calcTextualSpacingBeforeAndAfter
public void calcTextualSpacingBeforeAndAfter()
- Specified by:
calcTextualSpacingBeforeAndAfter
in interface Justifiable
setTextualSpacing
public void setTextualSpacing(double ts)
- Specified by:
setTextualSpacing
in interface Justifiable
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getTuplet
public int getTuplet()
- Description copied from interface:
Justifiable
- 0 if binary rhythm else 3, 5, 7, etc
- Specified by:
getTuplet
in interface Justifiable
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getTextSpaceBefore
public double getTextSpaceBefore()
- Specified by:
getTextSpaceBefore
in interface Justifiable
getTextSpaceAfter
public double getTextSpaceAfter()
- Specified by:
getTextSpaceAfter
in interface Justifiable