Class SingleSelectedVertexPaintable.Builder<V,E,B extends SingleSelectedVertexPaintable.Builder<V,E,B>>
- java.lang.Object
-
- org.jungrapht.visualization.annotations.SingleSelectedVertexPaintable.Builder<V,E,B>
-
- Type Parameters:
V- the vertex type
- Enclosing class:
- SingleSelectedVertexPaintable<V,E>
public static class SingleSelectedVertexPaintable.Builder<V,E,B extends SingleSelectedVertexPaintable.Builder<V,E,B>> extends Object
builder for theSelectedVertexPaintable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleSelectedVertexPaintable<V,E>build()BselectedVertexFunction(Function<VisualizationServer<V,E>,V> selectedVertexFunction)BselectionIcon(Icon selectionIcon)BselectionPaint(Paint selectionPaint)BselectionShape(Shape selectionShape)BselectionStrokeMin(float selectionStrokeMin)protected Bself()
-
-
-
Method Detail
-
self
protected B self()
-
selectionShape
public B selectionShape(Shape selectionShape)
- Parameters:
selectionShape- the shape to draw as an indicator for selected vertices- Returns:
- this builder
-
selectionPaint
public B selectionPaint(Paint selectionPaint)
- Parameters:
selectionPaint- the color to draw the selected vertex indicator- Returns:
- this builder
-
selectionStrokeMin
public B selectionStrokeMin(float selectionStrokeMin)
-
selectedVertexFunction
public B selectedVertexFunction(Function<VisualizationServer<V,E>,V> selectedVertexFunction)
-
build
public SingleSelectedVertexPaintable<V,E> build()
- Returns:
- a new instance of a
SelectedVertexPaintable
-
-