Package org.jjazz.itemrenderer.api
Interface ItemRendererFactory
public interface ItemRendererFactory
Provide a consistent set of ItemRenderer instances.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDraggedItemRenderer
(IR_Type type, ChordLeadSheetItem<?> item, ItemRendererSettings irSettings) Create an ItemRenderer used to represent a dragged item.createItemRenderer
(IR_Type type, ChordLeadSheetItem<?> item, ItemRendererSettings irSettings) Create an itemrenderer of specified type and set its model to item.static ItemRendererFactory
getItemRendererSample
(IR_Type type, ItemRendererSettings irSettings) Get a shared instance of an ItemRenderer sample of given type.
-
Method Details
-
getDefault
-
createItemRenderer
ItemRenderer createItemRenderer(IR_Type type, ChordLeadSheetItem<?> item, ItemRendererSettings irSettings) Create an itemrenderer of specified type and set its model to item.- Parameters:
type
-item
-irSettings
-- Returns:
-
createDraggedItemRenderer
ItemRenderer createDraggedItemRenderer(IR_Type type, ChordLeadSheetItem<?> item, ItemRendererSettings irSettings) Create an ItemRenderer used to represent a dragged item.- Parameters:
type
-item
-irSettings
-- Returns:
- Can be null if specified ItemRenderer's type can not be dragged.
-
getItemRendererSample
Get a shared instance of an ItemRenderer sample of given type.- Parameters:
type
-irSettings
-- Returns:
-