Package org.jjazz.ss_editor.rpviewer.spi
Interface RpCustomEditorFactory
public interface RpCustomEditorFactory
Provide RpCustomEditor implementations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RpCustomEditorFactory
findFactory
(RhythmParameter<?> rp) Try to find the relevant factory for the specified RhythmParameter.<E> RpCustomEditor<E>
getEditor
(RhythmParameter<E> rp) Get a RpCustomEditor instance for the specific RhythmParameter.default boolean
isSupported
(RhythmParameter<?> rp) Check if this factory can create a renderer for the specified RhythmParameter.
-
Method Details
-
findFactory
Try to find the relevant factory for the specified RhythmParameter.First, return rp if rp is an instanceof RpCustomEditorFactory. If not, scan all the RpCustomEditorFactory instances available on the global lookup, and return the first one which supports rp.
- Parameters:
rp
-- Returns:
- Can be null if no relevant factory found.
-
isSupported
Check if this factory can create a renderer for the specified RhythmParameter.- Parameters:
rp
-- Returns:
- Default implementation returns true.
-
getEditor
Get a RpCustomEditor instance for the specific RhythmParameter.- Type Parameters:
E
- RhythmParameter value class- Parameters:
rp
-- Returns:
-