public interface HighlightsLayerFactory
HighlightsLayer
s. Modules can implement
this interface and register their implementations among the mime-type specific
services under the Editors
folder on the system filesystem.
The infrastructure uses HighlightsLayerFactory
instances
registered in the mime-type specific registry to create HighlightsLayer
s,
which will participate in rendering a document. All factories that the infrastructure
considers relelvant for rendering a document will be asked to create
HighlightsLayer
s for that document.
Modifier and Type | Interface and Description |
---|---|
static class |
HighlightsLayerFactory.Context
The context passed to a factory when it is asked to create
HighlightLayer s. |
Modifier and Type | Method and Description |
---|---|
HighlightsLayer[] |
createLayers(HighlightsLayerFactory.Context context)
Creates
HighlightLayer s appropriate for the context passed in. |
HighlightsLayer[] createLayers(HighlightsLayerFactory.Context context)
HighlightLayer
s appropriate for the context passed in.context
- The context that should be used for creating the layer.HighlightLayer
s that should be used
for rendering the document in the Context
. This method can
return null
if there are no HighlightLayer
s available.