Class MultiSelectedVertexPaintable.Builder<V,E,B extends MultiSelectedVertexPaintable.Builder<V,E,B>>
- java.lang.Object
-
- org.jungrapht.visualization.annotations.MultiSelectedVertexPaintable.Builder<V,E,B>
-
- Type Parameters:
V- the vertex type
- Enclosing class:
- MultiSelectedVertexPaintable<V,E>
public static class MultiSelectedVertexPaintable.Builder<V,E,B extends MultiSelectedVertexPaintable.Builder<V,E,B>> extends Object
builder for theSelectedVertexPaintable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiSelectedVertexPaintable<V,E>build()BselectedVertexFunction(Function<VisualizationServer<V,E>,Collection<V>> selectedVertexFunction)BselectionIcon(Icon selectionIcon)BselectionPaint(Paint selectionPaint)BselectionShape(Shape selectionShape)BselectionStrokeMin(float selectionStrokeMin)protected Bself()BuseBounds(boolean useBounds)
-
-
-
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)
-
useBounds
public B useBounds(boolean useBounds)
-
selectedVertexFunction
public B selectedVertexFunction(Function<VisualizationServer<V,E>,Collection<V>> selectedVertexFunction)
-
build
public MultiSelectedVertexPaintable<V,E> build()
- Returns:
- a new instance of a
SelectedVertexPaintable
-
-