Package org.jungrapht.samples.util
Class LensControlHelper.Builder
- java.lang.Object
-
- org.jungrapht.samples.util.LensControlHelper.Builder
-
- Enclosing class:
- LensControlHelper
public static class LensControlHelper.Builder extends Object
Builder forLensControlHelper
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LensControlHelperbuild()LensControlHelper.BuilderbuttonSupplier(Supplier<AbstractButton> buttonSupplier)LensControlHelper.BuildercontainerLayoutManager(LayoutManager containerLayoutManager)LensControlHelper.BuildercontainerSupplier(Supplier<JComponent> containerSupplier)LensControlHelper.Buildertitle(String title)
-
-
-
Method Detail
-
containerSupplier
public LensControlHelper.Builder containerSupplier(Supplier<JComponent> containerSupplier)
- Parameters:
containerSupplier- aSupplierfor the desired container type- Returns:
- this Builder
-
containerLayoutManager
public LensControlHelper.Builder containerLayoutManager(LayoutManager containerLayoutManager)
- Parameters:
containerLayoutManager- aLayoutManagerfor the container- Returns:
- this Builder
-
buttonSupplier
public LensControlHelper.Builder buttonSupplier(Supplier<AbstractButton> buttonSupplier)
- Parameters:
buttonSupplier- aSupplierfor the activation control buttons- Returns:
-
title
public LensControlHelper.Builder title(String title)
- Parameters:
title- optional title for the Container- Returns:
- this Builder
-
build
public LensControlHelper build()
- Returns:
- a configured instance of the Builder
-
-