Class SelectedVertexPaintable<V>
- java.lang.Object
-
- org.jungrapht.visualization.annotations.SelectedVertexPaintable<V>
-
- Type Parameters:
V
- the vertex type
- All Implemented Interfaces:
VisualizationServer.Paintable
public class SelectedVertexPaintable<V> extends Object implements VisualizationServer.Paintable
Paints a shape at the location of all selected vertices. The shape does not change size as the view is scaled (zoomed in or out)- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SelectedVertexPaintable.Builder<V>
builder for theSelectedVertexPaintable
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V> SelectedVertexPaintable.Builder<V>
builder(VisualizationServer<V,?> visualizationServer)
void
paint(Graphics g)
Draw shapes to indicate selected verticesboolean
useTransform()
-
-
-
Method Detail
-
builder
public static <V> SelectedVertexPaintable.Builder<V> builder(VisualizationServer<V,?> visualizationServer)
- Type Parameters:
V
- the vertex type- Parameters:
visualizationServer
- the (required)VisualizationServer
parameter- Returns:
- the
Builder
used to create the instance of aSelectedVertexPaintable
-
paint
public void paint(Graphics g)
Draw shapes to indicate selected vertices- Specified by:
paint
in interfaceVisualizationServer.Paintable
- Parameters:
g
- theGraphics
to draw with
-
useTransform
public boolean useTransform()
- Specified by:
useTransform
in interfaceVisualizationServer.Paintable
-
-