Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.asaph.notationmanager
Class StandardInterval  view StandardInterval download StandardInterval.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.notationmanager.StandardInterval
All Implemented Interfaces:
com.virtuosotechnologies.asaph.model.notation.Interval

class StandardInterval
extends java.lang.Object
implements com.virtuosotechnologies.asaph.model.notation.Interval

Standard implementation of Interval.


Field Summary
private  StandardNotationFactory factory_
           
private  int letterDiff_
           
private  int pitchDiff_
           
 
Constructor Summary
(package private) StandardInterval(StandardNotationFactory factory, int letterDiff, int pitchDiff)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          equals
 java.lang.String generateLongString()
          Generate the long string representation
 java.lang.String generateString()
          Generate the short string representation
(package private)  int getLetterDiff()
           
 com.virtuosotechnologies.asaph.model.notation.Interval getNegated()
          Get the negation of the interval
 com.virtuosotechnologies.asaph.model.notation.NotationFactory getNotationFactory()
          Get the NotationFactory that created this object
(package private)  int getPitchDiff()
           
 int hashCode()
          hashCode
 java.lang.String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

factory_

private StandardNotationFactory factory_

letterDiff_

private int letterDiff_

pitchDiff_

private int pitchDiff_
Constructor Detail

StandardInterval

StandardInterval(StandardNotationFactory factory,
                 int letterDiff,
                 int pitchDiff)
Constructor

Method Detail

getNotationFactory

public com.virtuosotechnologies.asaph.model.notation.NotationFactory getNotationFactory()
Get the NotationFactory that created this object

Specified by:
getNotationFactory in interface com.virtuosotechnologies.asaph.model.notation.Interval

getLetterDiff

int getLetterDiff()

getPitchDiff

int getPitchDiff()

getNegated

public com.virtuosotechnologies.asaph.model.notation.Interval getNegated()
Get the negation of the interval

Specified by:
getNegated in interface com.virtuosotechnologies.asaph.model.notation.Interval

generateLongString

public java.lang.String generateLongString()
Generate the long string representation

Specified by:
generateLongString in interface com.virtuosotechnologies.asaph.model.notation.Interval

generateString

public java.lang.String generateString()
Generate the short string representation

Specified by:
generateString in interface com.virtuosotechnologies.asaph.model.notation.Interval

equals

public boolean equals(java.lang.Object obj)
equals


hashCode

public int hashCode()
hashCode


toString

public java.lang.String toString()
toString