java.lang.Object
com.virtuosotechnologies.lib.base.LinkedObject
com.virtuosotechnologies.asaph.standardmodel.BaseSongMember
com.virtuosotechnologies.asaph.standardmodel.BaseSongBlock
com.virtuosotechnologies.asaph.standardmodel.StdAddedSongBlock
- All Implemented Interfaces:
- com.virtuosotechnologies.asaph.model.AddedSongBlock, com.virtuosotechnologies.asaph.model.SongBlock, com.virtuosotechnologies.asaph.model.SongMember
- class StdAddedSongBlock
- extends BaseSongBlock
- implements com.virtuosotechnologies.asaph.model.AddedSongBlock
Standard implementation of AddedSongBlock
| Fields inherited from class com.virtuosotechnologies.lib.base.LinkedObject |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addingVariation_
private StdVariation addingVariation_
StdAddedSongBlock
StdAddedSongBlock(StdSong parent,
StdVariation addingVariation,
com.virtuosotechnologies.lib.util.StringID id)
- Constructor
StdAddedSongBlock
StdAddedSongBlock(StdSong parent,
StdVariation addingVariation,
com.virtuosotechnologies.lib.util.StringID id,
int indentLevel)
- Constructor
unparseVariationAttribute
void unparseVariationAttribute(com.virtuosotechnologies.lib.xml.XMLUnparser unparser)
throws java.io.IOException
- Specified by:
unparseVariationAttribute in class BaseSongBlock
getAddingVariation
public com.virtuosotechnologies.asaph.model.Variation getAddingVariation()
- Get the Variation in which this block is added.
- Specified by:
getAddingVariation in interface com.virtuosotechnologies.asaph.model.AddedSongBlock
handleChordSetDeleted
void handleChordSetDeleted(StdChordSet chordSet,
javax.swing.event.UndoableEditListener undoListener)
unparse
void unparse(com.virtuosotechnologies.lib.xml.XMLUnparser unparser)
throws java.io.IOException
getIndentLevel
public int getIndentLevel()
- Get the indent level
- Specified by:
getIndentLevel in interface com.virtuosotechnologies.asaph.model.SongBlock
getLineCount
public int getLineCount()
- Get the number of lines
- Specified by:
getLineCount in interface com.virtuosotechnologies.asaph.model.SongBlock
getNthLine
public com.virtuosotechnologies.asaph.model.SongLine getNthLine(int n)
- Get the nth line
- Specified by:
getNthLine in interface com.virtuosotechnologies.asaph.model.SongBlock
getNextLine
public com.virtuosotechnologies.asaph.model.SongLine getNextLine(com.virtuosotechnologies.asaph.model.SongLine reference)
- Get the next line following reference.
If reference is null, returns the first line.
If reference is the last line, returns null;
- Specified by:
getNextLine in interface com.virtuosotechnologies.asaph.model.SongBlock
getPreviousLine
public com.virtuosotechnologies.asaph.model.SongLine getPreviousLine(com.virtuosotechnologies.asaph.model.SongLine reference)
- Get the previous line preceding reference.
If reference is null, returns the last line.
If reference is the first line, returns null;
- Specified by:
getPreviousLine in interface com.virtuosotechnologies.asaph.model.SongBlock
getSerializableID
public java.lang.String getSerializableID()
- Get a string ID that can be used to serialize references to this
SongBlock. The ID is guaranteed to be unique among SongBlocks within
the owning Song, and will remain the same for the same SongBlock across
different executions of the tool. However, two SongBlocks from different
Songs may have the same string ID, and the same string ID may be
shared between SongBlocks, Variations and ChordSets within the same
Song.
- Specified by:
getSerializableID in interface com.virtuosotechnologies.asaph.model.SongBlock
setIndentLevel
public void setIndentLevel(int indent,
javax.swing.event.UndoableEditListener undoListener)
- Set the indent level
- Specified by:
setIndentLevel in interface com.virtuosotechnologies.asaph.model.SongBlock
insertLineBefore
public com.virtuosotechnologies.asaph.model.SongLine insertLineBefore(com.virtuosotechnologies.asaph.model.SongLine before,
javax.swing.event.UndoableEditListener undoListener)
- Add a line at the given position.
- Specified by:
insertLineBefore in interface com.virtuosotechnologies.asaph.model.SongBlock
insertLineAfter
public com.virtuosotechnologies.asaph.model.SongLine insertLineAfter(com.virtuosotechnologies.asaph.model.SongLine after,
javax.swing.event.UndoableEditListener undoListener)
- Add a line at the given position.
- Specified by:
insertLineAfter in interface com.virtuosotechnologies.asaph.model.SongBlock
removeLine
public void removeLine(com.virtuosotechnologies.asaph.model.SongLine line,
javax.swing.event.UndoableEditListener undoListener)
- Remove the given line.
- Specified by:
removeLine in interface com.virtuosotechnologies.asaph.model.SongBlock
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