java.lang.Object
org.jhotdraw8.draw.popup.AbstractPicker<T>
org.jhotdraw8.draw.popup.ExamplesPicker<T>
- Type Parameters:
T- the type of the examples
- All Implemented Interfaces:
Picker<T>
Picker for picking an example from a set of provided examples.
-
Constructor Summary
ConstructorsConstructorDescriptionExamplesPicker(ImmutableList<String> examples, org.jhotdraw8.base.converter.Converter<T> converter) -
Method Summary
Modifier and TypeMethodDescriptionvoidshow(javafx.scene.Node anchor, double screenX, double screenY, T initialValue, BiConsumer<Boolean, T> callback)
-
Constructor Details
-
ExamplesPicker
public ExamplesPicker(ImmutableList<String> examples, org.jhotdraw8.base.converter.Converter<T> converter)
-
-
Method Details
-
show
public void show(javafx.scene.Node anchor, double screenX, double screenY, T initialValue, BiConsumer<Boolean, T> callback) - Parameters:
anchor- anchor node will be blocked by the pickerscreenX- desired screen coordinatescreenY- desired screen coordinateinitialValue- initial valuecallback- callback when a value was selected (true), or reset to the initial value (false).
-