Package 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, nick@didkovsky.com
-
Constructor Summary
Constructors Constructor Description JustifiableNote(Note note, double startTime)
-
Method Summary
Modifier and Type Method Description void
calcTextualSpacingBeforeAndAfter()
boolean
equals(java.lang.Object obj)
double
getDuration()
double
getDurationalSpacing()
java.awt.geom.Point2D
getLocation()
double
getStartTime()
double
getTextSpaceAfter()
double
getTextSpaceBefore()
double
getTextualSpacing()
int
getTuplet()
0 if binary rhythm else 3, 5, 7, etcint
hashCode()
void
setDurationalSpacing(double v)
void
setStartTime(double t)
void
setTextualSpacing(double ts)
void
setXLocation(double x)
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JustifiableNote
-
-
Method Details
-
getDuration
public double getDuration()- Specified by:
getDuration
in interfaceJustifiable
-
setXLocation
public void setXLocation(double x)- Specified by:
setXLocation
in interfaceJustifiable
-
getLocation
public java.awt.geom.Point2D getLocation()- Specified by:
getLocation
in interfaceJustifiable
-
getDurationalSpacing
public double getDurationalSpacing()- Specified by:
getDurationalSpacing
in interfaceJustifiable
-
setDurationalSpacing
public void setDurationalSpacing(double v)- Specified by:
setDurationalSpacing
in interfaceJustifiable
-
getStartTime
public double getStartTime()- Specified by:
getStartTime
in interfaceJustifiable
-
setStartTime
public void setStartTime(double t)- Specified by:
setStartTime
in interfaceJustifiable
-
getTextualSpacing
public double getTextualSpacing()- Specified by:
getTextualSpacing
in interfaceJustifiable
-
calcTextualSpacingBeforeAndAfter
public void calcTextualSpacingBeforeAndAfter()- Specified by:
calcTextualSpacingBeforeAndAfter
in interfaceJustifiable
-
setTextualSpacing
public void setTextualSpacing(double ts)- Specified by:
setTextualSpacing
in interfaceJustifiable
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
getTuplet
public int getTuplet()Description copied from interface:Justifiable
0 if binary rhythm else 3, 5, 7, etc- Specified by:
getTuplet
in interfaceJustifiable
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
getTextSpaceBefore
public double getTextSpaceBefore()- Specified by:
getTextSpaceBefore
in interfaceJustifiable
-
getTextSpaceAfter
public double getTextSpaceAfter()- Specified by:
getTextSpaceAfter
in interfaceJustifiable
-