Package org.gephi.layout.spi
Interfaces for creating new layout algorithms.
Create a new Layout
-
Create a new module and set
LayoutAPI
andGraphAPI
as dependencies. -
Create a new builder class by implementing
LayoutBuilder
-
Add @ServiceProvider annotation to your builder, that it can
be found by the system. Set
LayoutBuilder
as the annotation parameter. -
Create a new class that implements
Layout
. Set instantiation code inLayoutBuilder.buildLayout()
.
-
Interface Summary Interface Description Layout A Layout algorithm should implement theLayout
interface to allow theLayoutController
to run it properly.LayoutBuilder ALayoutBuilder
provides a specificLayout
instance.LayoutUI Various information about a layout algorithm that allows UI integration. -
Class Summary Class Description LayoutProperty Properties for layout algorithms that are used by the UI to fill the property sheet and thus allow user edit.