Search in sources :

Example 1 with FreeHandStyle

use of net.sf.latexdraw.models.interfaces.shape.FreeHandStyle in project latexdraw by arnobl.

the class ShapeFreeHandCustomiser method initialize.

@Override
public void initialize(final URL location, final ResourceBundle resources) {
    mainPane.managedProperty().bind(mainPane.visibleProperty());
    final Map<FreeHandStyle, Image> cache = new EnumMap<>(FreeHandStyle.class);
    // NON-NLS
    cache.put(FreeHandStyle.LINES, new Image("/res/freehand/line.png"));
    // NON-NLS
    cache.put(FreeHandStyle.CURVES, new Image("/res/freehand/curve.png"));
    initComboBox(freeHandType, cache, FreeHandStyle.values());
}
Also used : FreeHandStyle(net.sf.latexdraw.models.interfaces.shape.FreeHandStyle) Image(javafx.scene.image.Image) EnumMap(java.util.EnumMap)

Aggregations

EnumMap (java.util.EnumMap)1 Image (javafx.scene.image.Image)1 FreeHandStyle (net.sf.latexdraw.models.interfaces.shape.FreeHandStyle)1