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

Quick Search    Search Deep

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

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

class StandardChord
extends java.lang.Object
implements com.virtuosotechnologies.asaph.model.notation.Chord

Standard implementation of Chord


Field Summary
private  StandardNote bassNote_
           
private  java.lang.String bassType_
           
private  StandardNotationFactory factory_
           
private  StandardNote mainNote_
           
private  java.lang.String mainType_
           
 
Constructor Summary
(package private) StandardChord(StandardNotationFactory factory, StandardNote mainNote, java.lang.String mainType, StandardNote bassNote, java.lang.String bassType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          equals
 java.lang.String generateString()
          Generate the string
 com.virtuosotechnologies.asaph.model.notation.Note getBass()
          Get the bass Note.
 java.lang.String getBassType()
          Get the bass type string.
 com.virtuosotechnologies.asaph.model.notation.Chord getLowered(com.virtuosotechnologies.asaph.model.notation.Interval interval)
          Lower by an interval
 com.virtuosotechnologies.asaph.model.notation.NotationFactory getNotationFactory()
          Get the NotationFactory that created this object
 com.virtuosotechnologies.asaph.model.notation.Note getNote()
          Get the primary Note
 com.virtuosotechnologies.asaph.model.notation.Chord getRaised(com.virtuosotechnologies.asaph.model.notation.Interval interval)
          Raise by an interval
 java.lang.String getType()
          Get the type string (e.g.
 int hashCode()
          hashCode
 boolean isEmpty()
          Is the chord empty (i.e.
 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_

mainNote_

private StandardNote mainNote_

mainType_

private java.lang.String mainType_

bassNote_

private StandardNote bassNote_

bassType_

private java.lang.String bassType_
Constructor Detail

StandardChord

StandardChord(StandardNotationFactory factory,
              StandardNote mainNote,
              java.lang.String mainType,
              StandardNote bassNote,
              java.lang.String bassType)
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.Chord

isEmpty

public boolean isEmpty()
Is the chord empty (i.e. does it generate the empty string?)

Specified by:
isEmpty in interface com.virtuosotechnologies.asaph.model.notation.Chord

getNote

public com.virtuosotechnologies.asaph.model.notation.Note getNote()
Get the primary Note

Specified by:
getNote in interface com.virtuosotechnologies.asaph.model.notation.Chord

getType

public java.lang.String getType()
Get the type string (e.g. "m" for minor, or "dim" for diminished)

Specified by:
getType in interface com.virtuosotechnologies.asaph.model.notation.Chord

getBass

public com.virtuosotechnologies.asaph.model.notation.Note getBass()
Get the bass Note.

Specified by:
getBass in interface com.virtuosotechnologies.asaph.model.notation.Chord

getBassType

public java.lang.String getBassType()
Get the bass type string. (Usually blank).

Specified by:
getBassType in interface com.virtuosotechnologies.asaph.model.notation.Chord

generateString

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

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

getRaised

public com.virtuosotechnologies.asaph.model.notation.Chord getRaised(com.virtuosotechnologies.asaph.model.notation.Interval interval)
Raise by an interval

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

getLowered

public com.virtuosotechnologies.asaph.model.notation.Chord getLowered(com.virtuosotechnologies.asaph.model.notation.Interval interval)
Lower by an interval

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

equals

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


hashCode

public int hashCode()
hashCode


toString

public java.lang.String toString()
toString