Package org.gephi.preview.spi
Interface RenderTargetBuilder
-
public interface RenderTargetBuilderBuilds and returns newRenderTargetinstances.Render targets are the rendering container and are built by
RenderTargetBuilderimplementations. Each render target is associated to it's preview model and shouldn't be reused across models. ThePreviewModelprovides 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 RenderTargetbuildRenderTarget(PreviewModel previewModel)Builds a new render target using the properties and dimensions defined inpreviewModel.StringgetName()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 thePreviewControllerto identify render targets.- Returns:
- the name of the target builder
-
-