java.lang.Object
com.virtuosotechnologies.lib.base.LinkedObject
com.virtuosotechnologies.asaph.standardmodel.BaseSongMember
com.virtuosotechnologies.asaph.standardmodel.StdSongLine
- All Implemented Interfaces:
- com.virtuosotechnologies.asaph.model.SongLine, com.virtuosotechnologies.asaph.model.SongMember
- class StdSongLine
- extends BaseSongMember
- implements com.virtuosotechnologies.asaph.model.SongLine
Standard implementation of SongLine
| Fields inherited from class com.virtuosotechnologies.lib.base.LinkedObject |
|
|
Method Summary |
int |
getIndentLevel()
Get the indent level |
int |
getMemberCount()
Get the number of members |
int |
getMemberCount(com.virtuosotechnologies.asaph.model.ChordSet set)
Get the number of members in the given chord set |
com.virtuosotechnologies.asaph.model.SongLineMember |
getNextMember(com.virtuosotechnologies.asaph.model.SongLineMember reference)
Get the next member following reference. |
com.virtuosotechnologies.asaph.model.SongLineMember |
getNextMember(com.virtuosotechnologies.asaph.model.SongLineMember reference,
com.virtuosotechnologies.asaph.model.ChordSet set)
Get the next member following reference. |
com.virtuosotechnologies.asaph.model.SongLineMember |
getNthMember(int n)
Get the nth member |
com.virtuosotechnologies.asaph.model.SongLineMember |
getNthMember(int n,
com.virtuosotechnologies.asaph.model.ChordSet set)
Get the nth member |
com.virtuosotechnologies.asaph.model.SongLineMember |
getPreviousMember(com.virtuosotechnologies.asaph.model.SongLineMember reference)
Get the previous member preceding reference. |
com.virtuosotechnologies.asaph.model.SongLineMember |
getPreviousMember(com.virtuosotechnologies.asaph.model.SongLineMember reference,
com.virtuosotechnologies.asaph.model.ChordSet set)
Get the previous member preceding reference. |
com.virtuosotechnologies.asaph.model.Song |
getSong()
Returns the Song containing this SongMember. |
com.virtuosotechnologies.asaph.model.SongBlock |
getSongBlock()
Get the containing song block |
(package private) void |
handleChordSetDeleted(StdChordSet chordSet,
javax.swing.event.UndoableEditListener undoListener)
|
com.virtuosotechnologies.asaph.model.ChordAnnotation |
insertChordAnnotationAfter(com.virtuosotechnologies.asaph.model.SongLineMember after,
com.virtuosotechnologies.asaph.model.ChordSet cs,
com.virtuosotechnologies.asaph.model.notation.Chord primary,
com.virtuosotechnologies.asaph.model.notation.Chord[] preceding,
com.virtuosotechnologies.asaph.model.notation.Chord[] following,
javax.swing.event.UndoableEditListener undoListener)
Add a chord annotation at the given position. |
com.virtuosotechnologies.asaph.model.ChordAnnotation |
insertChordAnnotationBefore(com.virtuosotechnologies.asaph.model.SongLineMember before,
com.virtuosotechnologies.asaph.model.ChordSet cs,
com.virtuosotechnologies.asaph.model.notation.Chord primary,
com.virtuosotechnologies.asaph.model.notation.Chord[] preceding,
com.virtuosotechnologies.asaph.model.notation.Chord[] following,
javax.swing.event.UndoableEditListener undoListener)
Add a chord annotation at the given position. |
com.virtuosotechnologies.asaph.model.CommentString |
insertCommentStringAfter(com.virtuosotechnologies.asaph.model.SongLineMember after,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
Add a comment string at the given position. |
com.virtuosotechnologies.asaph.model.CommentString |
insertCommentStringBefore(com.virtuosotechnologies.asaph.model.SongLineMember before,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
Add a comment string at the given position. |
com.virtuosotechnologies.asaph.model.TextString |
insertTextStringAfter(com.virtuosotechnologies.asaph.model.SongLineMember after,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
Add a text string at the given position. |
com.virtuosotechnologies.asaph.model.TextString |
insertTextStringBefore(com.virtuosotechnologies.asaph.model.SongLineMember before,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
Add a text string at the given position. |
(package private) void |
internalClearDefunct()
|
(package private) BaseSongMember |
internalGetParent()
|
(package private) void |
internalReportUndoableEdit(javax.swing.event.UndoableEditListener undoListener,
javax.swing.undo.UndoableEdit edit)
|
(package private) void |
internalSetDefunct()
|
boolean |
isDefunct()
Returns true if this object is defunct-- that is, if it or any of its
ancestors has been removed. |
void |
removeMember(com.virtuosotechnologies.asaph.model.SongLineMember member,
javax.swing.event.UndoableEditListener undoListener)
Remove the given member. |
void |
setIndentLevel(int indent,
javax.swing.event.UndoableEditListener undoListener)
Set the indent level |
(package private) void |
unparse(com.virtuosotechnologies.lib.xml.XMLUnparser unparser)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STR_xml_AnnotationNoDefaultChordSet
private static final java.lang.String STR_xml_AnnotationNoDefaultChordSet
indentLevel_
private int indentLevel_
memberList_
private ListHelper memberList_
StdSongLine
StdSongLine(BaseSongBlock parent)
StdSongLine
StdSongLine(BaseSongBlock parent,
int indentLevel)
handleChordSetDeleted
void handleChordSetDeleted(StdChordSet chordSet,
javax.swing.event.UndoableEditListener undoListener)
unparse
void unparse(com.virtuosotechnologies.lib.xml.XMLUnparser unparser)
throws java.io.IOException
getSongBlock
public com.virtuosotechnologies.asaph.model.SongBlock getSongBlock()
- Get the containing song block
- Specified by:
getSongBlock in interface com.virtuosotechnologies.asaph.model.SongLine
getIndentLevel
public int getIndentLevel()
- Get the indent level
- Specified by:
getIndentLevel in interface com.virtuosotechnologies.asaph.model.SongLine
getMemberCount
public int getMemberCount()
- Get the number of members
- Specified by:
getMemberCount in interface com.virtuosotechnologies.asaph.model.SongLine
getNthMember
public com.virtuosotechnologies.asaph.model.SongLineMember getNthMember(int n)
- Get the nth member
- Specified by:
getNthMember in interface com.virtuosotechnologies.asaph.model.SongLine
getNextMember
public com.virtuosotechnologies.asaph.model.SongLineMember getNextMember(com.virtuosotechnologies.asaph.model.SongLineMember reference)
- Get the next member following reference.
If reference is null, returns the first member.
If reference is the last member, returns null;
- Specified by:
getNextMember in interface com.virtuosotechnologies.asaph.model.SongLine
getPreviousMember
public com.virtuosotechnologies.asaph.model.SongLineMember getPreviousMember(com.virtuosotechnologies.asaph.model.SongLineMember reference)
- Get the previous member preceding reference.
If reference is null, returns the last member.
If reference is the first member, returns null;
- Specified by:
getPreviousMember in interface com.virtuosotechnologies.asaph.model.SongLine
getMemberCount
public int getMemberCount(com.virtuosotechnologies.asaph.model.ChordSet set)
- Get the number of members in the given chord set
- Specified by:
getMemberCount in interface com.virtuosotechnologies.asaph.model.SongLine
getNthMember
public com.virtuosotechnologies.asaph.model.SongLineMember getNthMember(int n,
com.virtuosotechnologies.asaph.model.ChordSet set)
- Get the nth member
- Specified by:
getNthMember in interface com.virtuosotechnologies.asaph.model.SongLine
getNextMember
public com.virtuosotechnologies.asaph.model.SongLineMember getNextMember(com.virtuosotechnologies.asaph.model.SongLineMember reference,
com.virtuosotechnologies.asaph.model.ChordSet set)
- Get the next member following reference.
If reference is null, returns the first member.
If reference is the last member, returns null;
- Specified by:
getNextMember in interface com.virtuosotechnologies.asaph.model.SongLine
getPreviousMember
public com.virtuosotechnologies.asaph.model.SongLineMember getPreviousMember(com.virtuosotechnologies.asaph.model.SongLineMember reference,
com.virtuosotechnologies.asaph.model.ChordSet set)
- Get the previous member preceding reference.
If reference is null, returns the last member.
If reference is the first member, returns null;
- Specified by:
getPreviousMember in interface com.virtuosotechnologies.asaph.model.SongLine
setIndentLevel
public void setIndentLevel(int indent,
javax.swing.event.UndoableEditListener undoListener)
- Set the indent level
- Specified by:
setIndentLevel in interface com.virtuosotechnologies.asaph.model.SongLine
insertTextStringBefore
public com.virtuosotechnologies.asaph.model.TextString insertTextStringBefore(com.virtuosotechnologies.asaph.model.SongLineMember before,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
- Add a text string at the given position.
- Specified by:
insertTextStringBefore in interface com.virtuosotechnologies.asaph.model.SongLine
insertTextStringAfter
public com.virtuosotechnologies.asaph.model.TextString insertTextStringAfter(com.virtuosotechnologies.asaph.model.SongLineMember after,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
- Add a text string at the given position.
- Specified by:
insertTextStringAfter in interface com.virtuosotechnologies.asaph.model.SongLine
insertCommentStringBefore
public com.virtuosotechnologies.asaph.model.CommentString insertCommentStringBefore(com.virtuosotechnologies.asaph.model.SongLineMember before,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
- Add a comment string at the given position.
- Specified by:
insertCommentStringBefore in interface com.virtuosotechnologies.asaph.model.SongLine
insertCommentStringAfter
public com.virtuosotechnologies.asaph.model.CommentString insertCommentStringAfter(com.virtuosotechnologies.asaph.model.SongLineMember after,
java.lang.String str,
javax.swing.event.UndoableEditListener undoListener)
- Add a comment string at the given position.
- Specified by:
insertCommentStringAfter in interface com.virtuosotechnologies.asaph.model.SongLine
insertChordAnnotationBefore
public com.virtuosotechnologies.asaph.model.ChordAnnotation insertChordAnnotationBefore(com.virtuosotechnologies.asaph.model.SongLineMember before,
com.virtuosotechnologies.asaph.model.ChordSet cs,
com.virtuosotechnologies.asaph.model.notation.Chord primary,
com.virtuosotechnologies.asaph.model.notation.Chord[] preceding,
com.virtuosotechnologies.asaph.model.notation.Chord[] following,
javax.swing.event.UndoableEditListener undoListener)
- Add a chord annotation at the given position.
- Specified by:
insertChordAnnotationBefore in interface com.virtuosotechnologies.asaph.model.SongLine
insertChordAnnotationAfter
public com.virtuosotechnologies.asaph.model.ChordAnnotation insertChordAnnotationAfter(com.virtuosotechnologies.asaph.model.SongLineMember after,
com.virtuosotechnologies.asaph.model.ChordSet cs,
com.virtuosotechnologies.asaph.model.notation.Chord primary,
com.virtuosotechnologies.asaph.model.notation.Chord[] preceding,
com.virtuosotechnologies.asaph.model.notation.Chord[] following,
javax.swing.event.UndoableEditListener undoListener)
- Add a chord annotation at the given position.
- Specified by:
insertChordAnnotationAfter in interface com.virtuosotechnologies.asaph.model.SongLine
removeMember
public void removeMember(com.virtuosotechnologies.asaph.model.SongLineMember member,
javax.swing.event.UndoableEditListener undoListener)
- Remove the given member.
- Specified by:
removeMember in interface com.virtuosotechnologies.asaph.model.SongLine
internalSetDefunct
void internalSetDefunct()
internalClearDefunct
void internalClearDefunct()
internalReportUndoableEdit
void internalReportUndoableEdit(javax.swing.event.UndoableEditListener undoListener,
javax.swing.undo.UndoableEdit edit)
internalGetParent
BaseSongMember internalGetParent()
isDefunct
public boolean isDefunct()
- Returns true if this object is defunct-- that is, if it or any of its
ancestors has been removed. If this returns true, the behavior of any
other methods on this object is undefined.
- Specified by:
isDefunct in interface com.virtuosotechnologies.asaph.model.SongMember
getSong
public com.virtuosotechnologies.asaph.model.Song getSong()
- Returns the Song containing this SongMember. If this member is defunct,
this will return the song that contained this member before the member
was defuncted.
- Specified by:
getSong in interface com.virtuosotechnologies.asaph.model.SongMember