Constructor and Description |
---|
Renderer() |
Modifier and Type | Method and Description |
---|---|
IAttachment |
createAttachment(java.lang.Class<? extends IAttachment> clazz)
Creates an attachment of the specified type.
|
void |
register(java.lang.Class<? extends IAttachment> type,
IAttachmentManager mgr)
Associates the supplied IAttachmentManager with the renderer, so
attachments can be allocated with the associated type.
|
boolean |
supportsAttachment(java.lang.Class<? extends IAttachment> clazz)
Returns true if the renderer supports the supplied attachment type, false
otherwise.
|
void |
unregister(java.lang.Class<? extends IAttachment> type)
Removes any manager associated with the supplied type from the renderer.
|
public boolean supportsAttachment(java.lang.Class<? extends IAttachment> clazz)
IRenderer
Returns true if the renderer supports the supplied attachment type, false otherwise.
supportsAttachment
in interface IRenderer
clazz
- the type of attachment to check forIRenderer.supportsAttachment(Class)
public IAttachment createAttachment(java.lang.Class<? extends IAttachment> clazz)
IRenderer
Creates an attachment of the specified type.
createAttachment
in interface IRenderer
clazz
- the type of IAttachment to allocate.IRenderer.createAttachment(Class)
public void register(java.lang.Class<? extends IAttachment> type, IAttachmentManager mgr)
IRenderer
Associates the supplied IAttachmentManager with the renderer, so attachments can be allocated with the associated type.
register
in interface IRenderer
type
- the type of attachments supplied by the managermgr
- the manager instance to handle allocating attachmentsIRenderer.register(Class, IAttachmentManager)
public void unregister(java.lang.Class<? extends IAttachment> type)
IRenderer
Removes any manager associated with the supplied type from the renderer.
unregister
in interface IRenderer
type
- the type of attachment manager to unregisterIRenderer.unregister(Class)