Interface BarRendererFactory
public interface BarRendererFactory
Provide a consistent set of BarRenderer implementations.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault BarRenderer
createBarRenderer
(CL_Editor editor, String brType, int barIndex, Object groupKey) Create a BarRenderer with default settings.createBarRenderer
(CL_Editor editor, String brType, int barIndex, BarRendererSettings settings, ItemRendererFactory irf, Object groupKey) Create a BarRenderer of the specified type.static BarRendererFactory
Return the default implementation.default ItemRendererFactory
-
Field Details
-
BR_CHORD_SYMBOL
BarRenderer type for chord symbols.- See Also:
-
BR_CHORD_POSITION
BarRenderer type for chord positions.- See Also:
-
BR_SECTION
BarRenderer type for sections.- See Also:
-
BR_ANNOTATION
BarRenderer type for bar annotation.- See Also:
-
-
Method Details
-
getDefault
Return the default implementation.If brType is not handled by the default implementation, it tries to find a relevant BarRendererProvider in the global lookup.
- Returns:
-
getItemRendererFactory
-
createBarRenderer
default BarRenderer createBarRenderer(CL_Editor editor, String brType, int barIndex, Object groupKey) Create a BarRenderer with default settings.- Parameters:
editor
- Can be nullbrType
-barIndex
- The barIndex and the modelBarIndex (unless barIndex is beyond ChordLeadSheet size, then modelBarIndex is set to -1)groupKey
-- Returns:
-
createBarRenderer
BarRenderer createBarRenderer(CL_Editor editor, String brType, int barIndex, BarRendererSettings settings, ItemRendererFactory irf, Object groupKey) Create a BarRenderer of the specified type.- Parameters:
editor
- Can be nullbrType
-barIndex
- The barIndex and the modelBarIndex (unless barIndex is beyond ChordLeadSheet size, then modelBarIndex is set to -1)settings
-irf
-groupKey
-- Returns:
-