public interface RenderTargetBuilder
RenderTarget
instances.
Render targets are the rendering container and are built by RenderTargetBuilder
implementations. Each render target is associated to it's preview model and
shouldn't be reused across models. The PreviewModel
provides methods
to retrieve properties and dimensions of the graph.
Render targets are singleton services and implementations need to add the following annotation to be recognized by the system:
@ServiceProvider(service=RenderTargetBuilder.class)
Modifier and Type | Method and Description |
---|---|
RenderTarget |
buildRenderTarget(PreviewModel previewModel)
Builds a new render target using the properties and dimensions defined
in
previewModel . |
String |
getName()
Returns the name of the target builder.
|
RenderTarget buildRenderTarget(PreviewModel previewModel)
previewModel
.previewModel
- the preview model to get the dimensions and properties fromString getName()
PreviewController
to identify render targets.Copyright © 2007–2015 Gephi Consortium. All rights reserved.