Interface CLI_ChordSymbol
- All Superinterfaces:
ChordLeadSheetItem<ExtChordSymbol>,Comparable<ChordLeadSheetItem<?>>,Transferable
- All Known Implementing Classes:
CLI_ChordSymbol.ComparableCsItem
A ChordLeadSheetItem which uses ExtChordSymbol objects as data.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA dummy CLI_ChordSymbol class which can be used only for position comparison when using the NavigableSet/SortedSet-based methods of ChordLeadSheet or ChordSequence.Nested classes/interfaces inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
ChordLeadSheetItem.ComparableItem, ChordLeadSheetItem.DefaultComparableItem -
Field Summary
FieldsFields inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
PROP_CONTAINER, PROP_ITEM_DATA, PROP_ITEM_POSITION -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CLI_ChordSymbolcreateItemFrom(int bar) Create an item at the beginning of the specified bar for comparison purposes.static CLI_ChordSymbolcreateItemFrom(Position pos, boolean inclusive) Create an item right before the specified position for comparison purposes.static CLI_ChordSymbolcreateItemTo(int bar) Create an item at the end of the specified bar for comparison purposes.static CLI_ChordSymbolcreateItemTo(Position pos, boolean inclusive) Create an item right after the specified position for comparison purposes.Methods inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
addPropertyChangeListener, compareTo, getClientProperties, getContainer, getCopy, getData, getPosition, isBarSingleItem, removePropertyChangeListenerMethods inherited from interface java.awt.datatransfer.Transferable
getTransferData, getTransferDataFlavors, isDataFlavorSupported
-
Field Details
-
DATA_FLAVOR
-
-
Method Details
-
createItemTo
Create an item right after the specified position for comparison purposes.For the Comparable interface, any item whose position is before (or equal if inclusive is true) to pos will be considered BEFORE the returned item.
- Parameters:
pos-inclusive-- Returns:
-
createItemTo
Create an item at the end of the specified bar for comparison purposes.For the Comparable interface, any normal item in the bar will be considered BEFORE the returned item.
- Parameters:
bar-- Returns:
-
createItemFrom
Create an item right before the specified position for comparison purposes.For the Comparable interface, any item whose position is after (or equal if inclusive is true) to pos will be considered AFTER the returned item.
- Parameters:
pos-inclusive-- Returns:
-
createItemFrom
Create an item at the beginning of the specified bar for comparison purposes.For the Comparable interface, any normal item in the bar will be considered AFTER the returned item.
- Parameters:
bar-- Returns:
-