Class SimpleVertexSupport<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.control.SimpleVertexSupport<V,E>
-
- Type Parameters:
V
- the vertex typeE
- the edge type
- All Implemented Interfaces:
VertexSupport<V,E>
public class SimpleVertexSupport<V,E> extends Object implements VertexSupport<V,E>
sample implementation showing how to use the VertexSupport interface member of the EditingGraphMousePlugin. override midVertexCreate and endVertexCreate for more elaborate implementations- Author:
- Tom Nelson
-
-
Field Summary
Fields Modifier and Type Field Description protected Supplier<V>
vertexFactory
-
Constructor Summary
Constructors Constructor Description SimpleVertexSupport(Supplier<V> vertexFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endVertexCreate(VisualizationServer<V,E> vv, Point2D point)
Supplier<V>
getVertexFactory()
void
midVertexCreate(VisualizationServer<V,E> vv, Point2D point)
void
setVertexFactory(Supplier<V> vertexFactory)
void
startVertexCreate(VisualizationServer<V,E> vv, Point2D point)
-
-
-
Method Detail
-
startVertexCreate
public void startVertexCreate(VisualizationServer<V,E> vv, Point2D point)
- Specified by:
startVertexCreate
in interfaceVertexSupport<V,E>
-
midVertexCreate
public void midVertexCreate(VisualizationServer<V,E> vv, Point2D point)
- Specified by:
midVertexCreate
in interfaceVertexSupport<V,E>
-
endVertexCreate
public void endVertexCreate(VisualizationServer<V,E> vv, Point2D point)
- Specified by:
endVertexCreate
in interfaceVertexSupport<V,E>
-
-