Package org.gephi.preview.spi
Interface RenderTargetBuilder
-
public interface RenderTargetBuilder
Builds and returns newRenderTarget
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. ThePreviewModel
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)
- Author:
- Mathieu Bastian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RenderTarget
buildRenderTarget(PreviewModel previewModel)
Builds a new render target using the properties and dimensions defined inpreviewModel
.String
getName()
Returns the name of the target builder.
-
-
-
Method Detail
-
buildRenderTarget
RenderTarget buildRenderTarget(PreviewModel previewModel)
Builds a new render target using the properties and dimensions defined inpreviewModel
.- Parameters:
previewModel
- the preview model to get the dimensions and properties from- Returns:
- a new render target instance
-
getName
String getName()
Returns the name of the target builder. This value is used by thePreviewController
to identify render targets.- Returns:
- the name of the target builder
-
-