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 boolean
equals(Object o)
String
getName()
Short name of this renderer.String
toKeyString(Key key)
Create a textual representation for aKey
object.String
toString()
String
toToolTip(Key key)
Create a tooltip representation for aKey
object.
-
-
-
Constructor Detail
-
Id3KeyTextRenderer
public Id3KeyTextRenderer(BeaTunes application)
-
-
Method Detail
-
toKeyString
public String toKeyString(Key key)
Description copied from interface:KeyTextRenderer
Create a textual representation for aKey
object.- Specified by:
toKeyString
in interfaceKeyTextRenderer
- Parameters:
key
- key- Returns:
- textual representation
-
toToolTip
public String toToolTip(Key key)
Description copied from interface:KeyTextRenderer
Create a tooltip representation for aKey
object. This may also include <html>-tags.- Specified by:
toToolTip
in interfaceKeyTextRenderer
- Parameters:
key
- key- Returns:
- tooltip representation
-
getName
public String getName()
Description copied from interface:KeyTextRenderer
Short name of this renderer. To be used in the user interface.- Specified by:
getName
in interfaceKeyTextRenderer
- Returns:
- name
-
-