com.softsynth.jmsl.score.justify
Class JustifiableNote

java.lang.Object
  extended by 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

Constructor Summary
JustifiableNote(Note note, double startTime)
           
 
Method Summary
 void calcTextualSpacingBeforeAndAfter()
           
 boolean equals(java.lang.Object obj)
           
 double getDuration()
           
 double getDurationalSpacing()
           
 java.awt.Point getLocation()
           
 double getStartTime()
           
 double getTextSpaceAfter()
           
 double getTextSpaceBefore()
           
 double getTextualSpacing()
           
 int getTuplet()
          0 if binary rhythm else 3, 5, 7, etc
 int 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 Detail

JustifiableNote

public JustifiableNote(Note note,
                       double startTime)
Method Detail

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