Class OpenKeyNotationTextRenderer
- java.lang.Object
-
- com.tagtraum.beatunes.keyrenderer.OpenKeyNotationTextRenderer
-
- All Implemented Interfaces:
KeyTextRenderer
public class OpenKeyNotationTextRenderer extends Object implements KeyTextRenderer
Renders keys in Open Key Notation- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description OpenKeyNotationTextRenderer(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
-
OpenKeyNotationTextRenderer
public OpenKeyNotationTextRenderer(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
-
-