Class SimpleVertexSupport<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.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 java.lang.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:
- tanelso
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.base.Supplier<V>
vertexFactory
-
Constructor Summary
Constructors Constructor Description SimpleVertexSupport(com.google.common.base.Supplier<V> vertexFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endVertexCreate(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D point)
com.google.common.base.Supplier<V>
getVertexFactory()
void
midVertexCreate(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D point)
void
setVertexFactory(com.google.common.base.Supplier<V> vertexFactory)
void
startVertexCreate(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D point)
-
-
-
Field Detail
-
vertexFactory
protected com.google.common.base.Supplier<V> vertexFactory
-
-
Constructor Detail
-
SimpleVertexSupport
public SimpleVertexSupport(com.google.common.base.Supplier<V> vertexFactory)
-
-
Method Detail
-
startVertexCreate
public void startVertexCreate(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D point)
- Specified by:
startVertexCreate
in interfaceVertexSupport<V,E>
-
midVertexCreate
public void midVertexCreate(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D point)
- Specified by:
midVertexCreate
in interfaceVertexSupport<V,E>
-
endVertexCreate
public void endVertexCreate(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D point)
- Specified by:
endVertexCreate
in interfaceVertexSupport<V,E>
-
getVertexFactory
public com.google.common.base.Supplier<V> getVertexFactory()
-
setVertexFactory
public void setVertexFactory(com.google.common.base.Supplier<V> vertexFactory)
-
-