Interface RpCustomEditorFactory


public interface RpCustomEditorFactory
Provide RpCustomEditor implementations.
  • Method Details

    • findFactory

      static RpCustomEditorFactory findFactory(RhythmParameter<?> rp)
      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

      default boolean isSupported(RhythmParameter<?> rp)
      Check if this factory can create a renderer for the specified RhythmParameter.
      Parameters:
      rp -
      Returns:
      Default implementation returns true.
    • getEditor

      <E> RpCustomEditor<E> getEditor(RhythmParameter<E> rp)
      Get a RpCustomEditor instance for the specific RhythmParameter.

      Type Parameters:
      E - RhythmParameter value class
      Parameters:
      rp -
      Returns: