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 classSelectedVertexPaintable.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)voidpaint(Graphics g)Draw shapes to indicate selected verticesbooleanuseTransform()
-
-
-
Method Detail
-
builder
public static <V> SelectedVertexPaintable.Builder<V> builder(VisualizationServer<V,?> visualizationServer)
- Type Parameters:
V- the vertex type- Parameters:
visualizationServer- the (required)VisualizationServerparameter- Returns:
- the
Builderused to create the instance of aSelectedVertexPaintable
-
paint
public void paint(Graphics g)
Draw shapes to indicate selected vertices- Specified by:
paintin interfaceVisualizationServer.Paintable- Parameters:
g- theGraphicsto draw with
-
useTransform
public boolean useTransform()
- Specified by:
useTransformin interfaceVisualizationServer.Paintable
-
-