Package org.jungrapht.visualization
Class VisualizationViewer.Builder<V,E,T extends org.jungrapht.visualization.DefaultVisualizationViewer<V,E>,B extends VisualizationViewer.Builder<V,E,T,B>>
- java.lang.Object
-
- org.jungrapht.visualization.VisualizationServer.Builder<V,E,T,B>
-
- org.jungrapht.visualization.VisualizationViewer.Builder<V,E,T,B>
-
- Type Parameters:
V
- the vertex typeE
- the edge typeT
- the type of VisualizationViewer to buildB
- the builder typw
- Direct Known Subclasses:
SatelliteVisualizationViewer.Builder
- Enclosing interface:
- VisualizationViewer<V,E>
public static class VisualizationViewer.Builder<V,E,T extends org.jungrapht.visualization.DefaultVisualizationViewer<V,E>,B extends VisualizationViewer.Builder<V,E,T,B>> extends VisualizationServer.Builder<V,E,T,B>
Builder for VisualizationViewer instances
-
-
Field Summary
Fields Modifier and Type Field Description protected VisualizationViewer.GraphMouse
graphMouse
protected Supplier<MultiSelectionStrategy>
multiSelectionStrategySupplier
-
Fields inherited from class org.jungrapht.visualization.VisualizationServer.Builder
graph, initialDimensionFunction, layoutAlgorithm, layoutSize, viewSize, visualizationModel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
build()
B
graphMouse(VisualizationViewer.GraphMouse graphMouse)
B
multiSelectionStrategySupplier(Supplier<MultiSelectionStrategy> multiSelectionStrategySupplier)
-
Methods inherited from class org.jungrapht.visualization.VisualizationServer.Builder
initialDimensionFunction, layoutAlgorithm, layoutSize, self, viewSize
-
-
-
-
Field Detail
-
graphMouse
protected VisualizationViewer.GraphMouse graphMouse
-
multiSelectionStrategySupplier
protected Supplier<MultiSelectionStrategy> multiSelectionStrategySupplier
-
-
Constructor Detail
-
Builder
protected Builder()
create an instance with no initial args
-
Builder
protected Builder(org.jgrapht.Graph<V,E> graph)
- Parameters:
graph
- the graph to be visualized
-
Builder
protected Builder(VisualizationModel<V,E> visualizationModel)
- Parameters:
visualizationModel
- the model for visualization state
-
-
Method Detail
-
graphMouse
public B graphMouse(VisualizationViewer.GraphMouse graphMouse)
-
multiSelectionStrategySupplier
public B multiSelectionStrategySupplier(Supplier<MultiSelectionStrategy> multiSelectionStrategySupplier)
-
-