See: Description
Interface | Description |
---|---|
ItemBuilder |
Builds and returns new
Item instances. |
MouseResponsiveRenderer |
Optionally implement this interface in a
Renderer that
needs to be responsive to mouse events. |
PreviewMouseListener |
Listener for mouse events in Preview.
|
PreviewUI |
SPI interface to add UI settings components to the Preview.
|
Renderer |
Renderer describes how a particular
Item object is rendered on a particular
RenderTarget instance. |
RenderTargetBuilder |
Builds and returns new
RenderTarget instances. |
Interfaces for creating new renderers, item builders and render targets.
Preview API
,
Graph API
, AttributesAPI
and
Lookup
as dependencies.
Item
or
extends AbstractItem
. The AbstractItem
class is located in the PreviewPlugin
module so add
it as dependency first. An item should be very simple but has a
unique identifier returned by its getType()
method.
ItemBuilder
getType()
method and returns the same
identifier than the Item
you created earlier.
getItems()
method by retrieving objects
from the given graph.
ItemBuilder
as the
annotation parameter.
Preview API
,
GraphAPI
, Processing Wrapper
,
iText Wrapper
and Lookup
as dependencies.
Renderer
.
Renderer
as the
annotation parameter.
To add an additional data attribute to a Node or Edge item, you need to create
a new item builder for the specific type. For instance if one want to add
a new attribute to nodes create a new ItemBuilder
for the
type Item.Node
. Simply return item objects with the data you
want to add. The system will automatically merge your new data to node items.
To extend or completely replace a default Renderer by your own implementation, create a new Renderer and set the annotation like below. In addition add Preview Plugin module as a dependency.
@ServiceProvider(service=Renderer.class, position=XXX) public class MyRenderer extends NodeRenderer
Being XXX the new position of the renderer Then you can reuse parts of the base class or just override them.
Default renderers are:
Plug-ins can add UI components to the Preview Settings module. Additional components are placed in new tabs and have access to the
current PreviewModel
and therefore PreviewProperties
.
Preview API
and
Lookup
as dependencies.
PreviewUI
and implements
methods.
PreviewUI
as the
'service' annotation parameter.
Copyright © 2007–2017 Gephi Consortium. All rights reserved.