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

Quick Search    Search Deep

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

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

class StandardNote
extends java.lang.Object
implements com.virtuosotechnologies.asaph.model.notation.Note

Standard implementation of Note.


Field Summary
private  StandardNotationFactory factory_
           
private  boolean isCaps_
           
private  int letterValue_
           
private  StandardNoteModifier modifier_
           
private  int pitchValue_
           
 
Constructor Summary
(package private) StandardNote(StandardNotationFactory factory, int letterValue, int pitchValue, StandardNoteModifier modifier, boolean isCaps)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          equals
 java.lang.String generateString()
          Generate the string representation
 com.virtuosotechnologies.asaph.model.notation.Note getBaseNote()
          Get the base of this note (that is, the note with the default modifier).
 com.virtuosotechnologies.asaph.model.notation.Interval getIntervalTo(com.virtuosotechnologies.asaph.model.notation.Note note)
          Create an interval from this note to the given note
(package private)  int getLetterValue()
           
 com.virtuosotechnologies.asaph.model.notation.Note getLowered(com.virtuosotechnologies.asaph.model.notation.Interval interval)
          Create a note lowered by an interval
 com.virtuosotechnologies.asaph.model.notation.NotationFactory getNotationFactory()
          Get the NotationFactory that created this object
 com.virtuosotechnologies.asaph.model.notation.NoteModifier getNoteModifier()
          Get the modifier of this note
 com.virtuosotechnologies.asaph.model.notation.Note getNoteWithModifier(com.virtuosotechnologies.asaph.model.notation.NoteModifier modifier)
          Create a Note whose base is the same as this one, but with the given modifier.
(package private)  int getPitchValue()
           
 com.virtuosotechnologies.asaph.model.notation.Note getRaised(com.virtuosotechnologies.asaph.model.notation.Interval interval)
          Create a note raised by an interval
 int hashCode()
          hashCode
(package private)  boolean isCaps()
           
 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_

letterValue_

private int letterValue_

pitchValue_

private int pitchValue_

modifier_

private StandardNoteModifier modifier_

isCaps_

private boolean isCaps_
Constructor Detail

StandardNote

StandardNote(StandardNotationFactory factory,
             int letterValue,
             int pitchValue,
             StandardNoteModifier modifier,
             boolean isCaps)
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.Note

getLetterValue

int getLetterValue()

getPitchValue

int getPitchValue()

isCaps

boolean isCaps()

generateString

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

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

getBaseNote

public com.virtuosotechnologies.asaph.model.notation.Note getBaseNote()
Get the base of this note (that is, the note with the default modifier).

Specified by:
getBaseNote in interface com.virtuosotechnologies.asaph.model.notation.Note

getNoteModifier

public com.virtuosotechnologies.asaph.model.notation.NoteModifier getNoteModifier()
Get the modifier of this note

Specified by:
getNoteModifier in interface com.virtuosotechnologies.asaph.model.notation.Note

getNoteWithModifier

public com.virtuosotechnologies.asaph.model.notation.Note getNoteWithModifier(com.virtuosotechnologies.asaph.model.notation.NoteModifier modifier)
Create a Note whose base is the same as this one, but with the given modifier.

Specified by:
getNoteWithModifier in interface com.virtuosotechnologies.asaph.model.notation.Note

getRaised

public com.virtuosotechnologies.asaph.model.notation.Note getRaised(com.virtuosotechnologies.asaph.model.notation.Interval interval)
Create a note raised by an interval

Specified by:
getRaised in interface com.virtuosotechnologies.asaph.model.notation.Note

getLowered

public com.virtuosotechnologies.asaph.model.notation.Note getLowered(com.virtuosotechnologies.asaph.model.notation.Interval interval)
Create a note lowered by an interval

Specified by:
getLowered in interface com.virtuosotechnologies.asaph.model.notation.Note

getIntervalTo

public com.virtuosotechnologies.asaph.model.notation.Interval getIntervalTo(com.virtuosotechnologies.asaph.model.notation.Note note)
Create an interval from this note to the given note

Specified by:
getIntervalTo in interface com.virtuosotechnologies.asaph.model.notation.Note

equals

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


hashCode

public int hashCode()
hashCode


toString

public java.lang.String toString()
toString