Class CLI_ChordSymbol.ComparableCsItem
java.lang.Object
org.jjazz.chordleadsheet.api.item.CLI_ChordSymbol.ComparableCsItem
- All Implemented Interfaces:
Transferable
,Comparable<ChordLeadSheetItem<?>>
,ChordLeadSheetItem<ExtChordSymbol>
,ChordLeadSheetItem.ComparableItem
,CLI_ChordSymbol
- Enclosing interface:
- CLI_ChordSymbol
public static class CLI_ChordSymbol.ComparableCsItem
extends Object
implements CLI_ChordSymbol, ChordLeadSheetItem.ComparableItem
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.ComparableItem, ChordLeadSheetItem.DefaultComparableItem
Nested classes/interfaces inherited from interface org.jjazz.chordleadsheet.api.item.CLI_ChordSymbol
CLI_ChordSymbol.ComparableCsItem
-
Field Summary
Fields inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
PROP_CONTAINER, PROP_ITEM_DATA, PROP_ITEM_POSITION
Fields inherited from interface org.jjazz.chordleadsheet.api.item.CLI_ChordSymbol
DATA_FLAVOR
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get the client properties.Get the ChordLeadSheet this object belongs to.getCopy
(ChordLeadSheet newCls, Position newPos) Get a copy of this item at a specified position.getData()
Get the data part of this item.Get a copy of the position of this item.getTransferData
(DataFlavor flavor) boolean
Return true if there can be only one single item perbar, like a time signature.boolean
boolean
isDataFlavorSupported
(DataFlavor flavor) boolean
void
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jjazz.chordleadsheet.api.item.ChordLeadSheetItem
compareTo
-
Method Details
-
isBeforeItem
public boolean isBeforeItem()- Specified by:
isBeforeItem
in interfaceChordLeadSheetItem.ComparableItem
-
isInclusive
public boolean isInclusive()- Specified by:
isInclusive
in interfaceChordLeadSheetItem.ComparableItem
-
getContainer
Description copied from interface:ChordLeadSheetItem
Get the ChordLeadSheet this object belongs to.- Specified by:
getContainer
in interfaceChordLeadSheetItem<ExtChordSymbol>
- Returns:
- Can be null.
-
getCopy
Description copied from interface:ChordLeadSheetItem
Get a copy of this item at a specified position.Client properties are also copied.
- Specified by:
getCopy
in interfaceChordLeadSheetItem<ExtChordSymbol>
- Parameters:
newCls
- If null, the copy will have the same container that this object.newPos
- If null, the copy will have the same position that this object.- Returns:
-
isBarSingleItem
public boolean isBarSingleItem()Description copied from interface:ChordLeadSheetItem
Return true if there can be only one single item perbar, like a time signature.- Specified by:
isBarSingleItem
in interfaceChordLeadSheetItem<ExtChordSymbol>
- Returns:
-
getData
Description copied from interface:ChordLeadSheetItem
Get the data part of this item.- Specified by:
getData
in interfaceChordLeadSheetItem<ExtChordSymbol>
- Returns:
-
getPosition
Description copied from interface:ChordLeadSheetItem
Get a copy of the position of this item.- Specified by:
getPosition
in interfaceChordLeadSheetItem<ExtChordSymbol>
- Returns:
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceChordLeadSheetItem<ExtChordSymbol>
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceChordLeadSheetItem<ExtChordSymbol>
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupported
in interfaceTransferable
-
getTransferData
- Specified by:
getTransferData
in interfaceTransferable
- Throws:
UnsupportedFlavorException
IOException
-
toString
-
getClientProperties
Description copied from interface:ChordLeadSheetItem
Get the client properties.- Specified by:
getClientProperties
in interfaceChordLeadSheetItem<ExtChordSymbol>
- Returns:
-