Class Id3KeyTextRenderer
- java.lang.Object
-
- com.tagtraum.beatunes.keyrenderer.Id3KeyTextRenderer
-
- All Implemented Interfaces:
KeyTextRenderer
public class Id3KeyTextRenderer extends Object implements KeyTextRenderer
Id3 key text renderer. From the Id3 2.4 spec:
The 'Initial key' frame contains the musical key in which the sound starts. It is represented as a string with a maximum length of three characters. The ground keys are represented with "A","B","C","D","E", "F" and "G" and halfkeys represented with "b" and "#". Minor is represented as "m", e.g. "Dbm" $00. Off key is represented with an "o" only.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description Id3KeyTextRenderer(BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()Short name of this renderer.StringtoKeyString(Key key)Create a textual representation for aKeyobject.StringtoString()StringtoToolTip(Key key)Create a tooltip representation for aKeyobject.
-
-
-
Constructor Detail
-
Id3KeyTextRenderer
public Id3KeyTextRenderer(BeaTunes application)
-
-
Method Detail
-
toKeyString
public String toKeyString(Key key)
Description copied from interface:KeyTextRendererCreate a textual representation for aKeyobject.- Specified by:
toKeyStringin interfaceKeyTextRenderer- Parameters:
key- key- Returns:
- textual representation
-
toToolTip
public String toToolTip(Key key)
Description copied from interface:KeyTextRendererCreate a tooltip representation for aKeyobject. This may also include <html>-tags.- Specified by:
toToolTipin interfaceKeyTextRenderer- Parameters:
key- key- Returns:
- tooltip representation
-
getName
public String getName()
Description copied from interface:KeyTextRendererShort name of this renderer. To be used in the user interface.- Specified by:
getNamein interfaceKeyTextRenderer- Returns:
- name
-
-