Class CLI_ChordSymbol.ComparableCsItem
java.lang.Object
org.jjazz.chordleadsheet.api.item.CLI_ChordSymbol.ComparableCsItem
- All Implemented Interfaces:
Transferable,Comparable<ChordLeadSheetItem<?>>,ChordLeadSheetItem<ExtChordSymbol>,CLI_ChordSymbol
- Enclosing interface:
CLI_ChordSymbol
A dummy CLI_ChordSymbol class which can be used only for position comparison when using the NavigableSet/SortedSet-based methods of ChordLeadSheet or
ChordSequence.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
ChordLeadSheetItem.DefaultComparableItemNested classes/interfaces inherited from interface org.jjazz.chordleadsheet.api.item.CLI_ChordSymbol
CLI_ChordSymbol.ComparableCsItem, CLI_ChordSymbol.PositionDisplay -
Field Summary
Fields inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
LOGGER, PROP_CONTAINER, PROP_ITEM_DATA, PROP_ITEM_POSITIONFields inherited from interface org.jjazz.chordleadsheet.api.item.CLI_ChordSymbol
DATA_FLAVOR, POSITION_ORDER -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the client properties.Get the ChordLeadSheet this object belongs to.getCopy(ExtChordSymbol newData, Position newPos) Get a copy of this item using the specified parameters.getData()Get the data part of this item.Get a copy of the position of this item.intA unique constant value used to order items which have the same position.getTransferData(DataFlavor flavor) booleanReturn true if there can be only one single item perbar, like a time signature.booleanisDataFlavorSupported(DataFlavor flavor) voidtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
compareTo
-
Method Details
-
getPositionOrder
public int getPositionOrder()Description copied from interface:ChordLeadSheetItemA unique constant value used to order items which have the same position.- Specified by:
getPositionOrderin interfaceChordLeadSheetItem<ExtChordSymbol>- Returns:
- Must be a unique value for each type of item
- See Also:
-
getContainer
Description copied from interface:ChordLeadSheetItemGet the ChordLeadSheet this object belongs to.- Specified by:
getContainerin interfaceChordLeadSheetItem<ExtChordSymbol>- Returns:
- Can be null.
-
getCopy
Description copied from interface:ChordLeadSheetItemGet a copy of this item using the specified parameters.Client properties are also copied. Returned copy has its ChordLeadSheet container set to null.
- Specified by:
getCopyin interfaceChordLeadSheetItem<ExtChordSymbol>- Parameters:
newData- If null, the copy will have the same data than this object.newPos- If null, the copy will have the same position than this object.- Returns:
-
isBarSingleItem
public boolean isBarSingleItem()Description copied from interface:ChordLeadSheetItemReturn true if there can be only one single item perbar, like a time signature.- Specified by:
isBarSingleItemin interfaceChordLeadSheetItem<ExtChordSymbol>- Returns:
-
getData
Description copied from interface:ChordLeadSheetItemGet the data part of this item.- Specified by:
getDatain interfaceChordLeadSheetItem<ExtChordSymbol>- Returns:
-
getPosition
Description copied from interface:ChordLeadSheetItemGet a copy of the position of this item.- Specified by:
getPositionin interfaceChordLeadSheetItem<ExtChordSymbol>- Returns:
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceChordLeadSheetItem<ExtChordSymbol>
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceChordLeadSheetItem<ExtChordSymbol>
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-
toString
-
getClientProperties
Description copied from interface:ChordLeadSheetItemGet the client properties.- Specified by:
getClientPropertiesin interfaceChordLeadSheetItem<ExtChordSymbol>- Returns:
-