Class ModeContainer.Builder
- java.lang.Object
-
- org.jungrapht.visualization.control.modal.ModeContainer.Builder
-
- Enclosing class:
- ModeContainer
public static class ModeContainer.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Supplier<JButton>
buttonSupplier
protected Supplier<JComponent>
containerSupplier
protected Set<Modal>
modals
protected Modal.Mode[]
modes
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModeContainer
build()
ModeContainer.Builder
buttonSupplier(Supplier<JButton> buttonSupplier)
ModeContainer.Builder
containerSupplier(Supplier<JComponent> containerSupplier)
ModeContainer.Builder
modals(Modal... modals)
ModeContainer.Builder
modes(Modal.Mode... modes)
-
-
-
Field Detail
-
containerSupplier
protected Supplier<JComponent> containerSupplier
-
modes
protected Modal.Mode[] modes
-
-
Method Detail
-
containerSupplier
public ModeContainer.Builder containerSupplier(Supplier<JComponent> containerSupplier)
-
buttonSupplier
public ModeContainer.Builder buttonSupplier(Supplier<JButton> buttonSupplier)
-
modes
public ModeContainer.Builder modes(Modal.Mode... modes)
-
modals
public ModeContainer.Builder modals(Modal... modals)
-
build
public ModeContainer build()
-
-