Search in sources :

Example 1 with Paragraph

use of org.fxmisc.richtext.model.Paragraph in project RichTextFX by FXMisc.

the class RichText method start.

@Override
public void start(Stage primaryStage) {
    mainStage = primaryStage;
    Button loadBtn = createButton("loadfile", this::loadDocument, "Load document.\n\n" + "Note: the demo will load only previously-saved \"" + RTFX_FILE_EXTENSION + "\" files. " + "This file format is abitrary and may change across versions.");
    Button saveBtn = createButton("savefile", this::saveDocument, "Save document.\n\n" + "Note: the demo will save the area's content to a \"" + RTFX_FILE_EXTENSION + "\" file. " + "This file format is abitrary and may change across versions.");
    CheckBox wrapToggle = new CheckBox("Wrap");
    wrapToggle.setSelected(true);
    area.wrapTextProperty().bind(wrapToggle.selectedProperty());
    Button undoBtn = createButton("undo", area::undo, "Undo");
    Button redoBtn = createButton("redo", area::redo, "Redo");
    Button cutBtn = createButton("cut", area::cut, "Cut");
    Button copyBtn = createButton("copy", area::copy, "Copy");
    Button pasteBtn = createButton("paste", area::paste, "Paste");
    Button boldBtn = createButton("bold", this::toggleBold, "Bold");
    Button italicBtn = createButton("italic", this::toggleItalic, "Italic");
    Button underlineBtn = createButton("underline", this::toggleUnderline, "Underline");
    Button strikeBtn = createButton("strikethrough", this::toggleStrikethrough, "Strike Trough");
    Button insertImageBtn = createButton("insertimage", this::insertImage, "Insert Image");
    ToggleGroup alignmentGrp = new ToggleGroup();
    ToggleButton alignLeftBtn = createToggleButton(alignmentGrp, "align-left", this::alignLeft, "Align left");
    ToggleButton alignCenterBtn = createToggleButton(alignmentGrp, "align-center", this::alignCenter, "Align center");
    ToggleButton alignRightBtn = createToggleButton(alignmentGrp, "align-right", this::alignRight, "Align right");
    ToggleButton alignJustifyBtn = createToggleButton(alignmentGrp, "align-justify", this::alignJustify, "Justify");
    ColorPicker paragraphBackgroundPicker = new ColorPicker();
    ComboBox<Integer> sizeCombo = new ComboBox<>(FXCollections.observableArrayList(5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 20, 22, 24, 28, 32, 36, 40, 48, 56, 64, 72));
    sizeCombo.getSelectionModel().select(Integer.valueOf(12));
    sizeCombo.setTooltip(new Tooltip("Font size"));
    ComboBox<String> familyCombo = new ComboBox<>(FXCollections.observableList(Font.getFamilies()));
    familyCombo.getSelectionModel().select("Serif");
    familyCombo.setTooltip(new Tooltip("Font family"));
    ColorPicker textColorPicker = new ColorPicker(Color.BLACK);
    ColorPicker backgroundColorPicker = new ColorPicker();
    paragraphBackgroundPicker.setTooltip(new Tooltip("Paragraph background"));
    textColorPicker.setTooltip(new Tooltip("Text color"));
    backgroundColorPicker.setTooltip(new Tooltip("Text background"));
    paragraphBackgroundPicker.valueProperty().addListener((o, old, color) -> updateParagraphBackground(color));
    sizeCombo.setOnAction(evt -> updateFontSize(sizeCombo.getValue()));
    familyCombo.setOnAction(evt -> updateFontFamily(familyCombo.getValue()));
    textColorPicker.valueProperty().addListener((o, old, color) -> updateTextColor(color));
    backgroundColorPicker.valueProperty().addListener((o, old, color) -> updateBackgroundColor(color));
    undoBtn.disableProperty().bind(area.undoAvailableProperty().map(x -> !x));
    redoBtn.disableProperty().bind(area.redoAvailableProperty().map(x -> !x));
    BooleanBinding selectionEmpty = new BooleanBinding() {

        {
            bind(area.selectionProperty());
        }

        @Override
        protected boolean computeValue() {
            return area.getSelection().getLength() == 0;
        }
    };
    cutBtn.disableProperty().bind(selectionEmpty);
    copyBtn.disableProperty().bind(selectionEmpty);
    area.beingUpdatedProperty().addListener((o, old, beingUpdated) -> {
        if (!beingUpdated) {
            boolean bold, italic, underline, strike;
            Integer fontSize;
            String fontFamily;
            Color textColor;
            Color backgroundColor;
            IndexRange selection = area.getSelection();
            if (selection.getLength() != 0) {
                StyleSpans<TextStyle> styles = area.getStyleSpans(selection);
                bold = styles.styleStream().anyMatch(s -> s.bold.orElse(false));
                italic = styles.styleStream().anyMatch(s -> s.italic.orElse(false));
                underline = styles.styleStream().anyMatch(s -> s.underline.orElse(false));
                strike = styles.styleStream().anyMatch(s -> s.strikethrough.orElse(false));
                int[] sizes = styles.styleStream().mapToInt(s -> s.fontSize.orElse(-1)).distinct().toArray();
                fontSize = sizes.length == 1 ? sizes[0] : -1;
                String[] families = styles.styleStream().map(s -> s.fontFamily.orElse(null)).distinct().toArray(String[]::new);
                fontFamily = families.length == 1 ? families[0] : null;
                Color[] colors = styles.styleStream().map(s -> s.textColor.orElse(null)).distinct().toArray(Color[]::new);
                textColor = colors.length == 1 ? colors[0] : null;
                Color[] backgrounds = styles.styleStream().map(s -> s.backgroundColor.orElse(null)).distinct().toArray(i -> new Color[i]);
                backgroundColor = backgrounds.length == 1 ? backgrounds[0] : null;
            } else {
                int p = area.getCurrentParagraph();
                int col = area.getCaretColumn();
                TextStyle style = area.getStyleAtPosition(p, col);
                bold = style.bold.orElse(false);
                italic = style.italic.orElse(false);
                underline = style.underline.orElse(false);
                strike = style.strikethrough.orElse(false);
                fontSize = style.fontSize.orElse(-1);
                fontFamily = style.fontFamily.orElse(null);
                textColor = style.textColor.orElse(null);
                backgroundColor = style.backgroundColor.orElse(null);
            }
            int startPar = area.offsetToPosition(selection.getStart(), Forward).getMajor();
            int endPar = area.offsetToPosition(selection.getEnd(), Backward).getMajor();
            List<Paragraph<ParStyle, Either<String, LinkedImage>, TextStyle>> pars = area.getParagraphs().subList(startPar, endPar + 1);
            @SuppressWarnings("unchecked") Optional<TextAlignment>[] alignments = pars.stream().map(p -> p.getParagraphStyle().alignment).distinct().toArray(Optional[]::new);
            Optional<TextAlignment> alignment = alignments.length == 1 ? alignments[0] : Optional.empty();
            @SuppressWarnings("unchecked") Optional<Color>[] paragraphBackgrounds = pars.stream().map(p -> p.getParagraphStyle().backgroundColor).distinct().toArray(Optional[]::new);
            Optional<Color> paragraphBackground = paragraphBackgrounds.length == 1 ? paragraphBackgrounds[0] : Optional.empty();
            updatingToolbar.suspendWhile(() -> {
                if (bold) {
                    if (!boldBtn.getStyleClass().contains("pressed")) {
                        boldBtn.getStyleClass().add("pressed");
                    }
                } else {
                    boldBtn.getStyleClass().remove("pressed");
                }
                if (italic) {
                    if (!italicBtn.getStyleClass().contains("pressed")) {
                        italicBtn.getStyleClass().add("pressed");
                    }
                } else {
                    italicBtn.getStyleClass().remove("pressed");
                }
                if (underline) {
                    if (!underlineBtn.getStyleClass().contains("pressed")) {
                        underlineBtn.getStyleClass().add("pressed");
                    }
                } else {
                    underlineBtn.getStyleClass().remove("pressed");
                }
                if (strike) {
                    if (!strikeBtn.getStyleClass().contains("pressed")) {
                        strikeBtn.getStyleClass().add("pressed");
                    }
                } else {
                    strikeBtn.getStyleClass().remove("pressed");
                }
                if (alignment.isPresent()) {
                    TextAlignment al = alignment.get();
                    switch(al) {
                        case LEFT:
                            alignmentGrp.selectToggle(alignLeftBtn);
                            break;
                        case CENTER:
                            alignmentGrp.selectToggle(alignCenterBtn);
                            break;
                        case RIGHT:
                            alignmentGrp.selectToggle(alignRightBtn);
                            break;
                        case JUSTIFY:
                            alignmentGrp.selectToggle(alignJustifyBtn);
                            break;
                    }
                } else {
                    alignmentGrp.selectToggle(null);
                }
                paragraphBackgroundPicker.setValue(paragraphBackground.orElse(null));
                if (fontSize != -1) {
                    sizeCombo.getSelectionModel().select(fontSize);
                } else {
                    sizeCombo.getSelectionModel().clearSelection();
                }
                if (fontFamily != null) {
                    familyCombo.getSelectionModel().select(fontFamily);
                } else {
                    familyCombo.getSelectionModel().clearSelection();
                }
                if (textColor != null) {
                    textColorPicker.setValue(textColor);
                }
                backgroundColorPicker.setValue(backgroundColor);
            });
        }
    });
    ToolBar toolBar1 = new ToolBar(loadBtn, saveBtn, new Separator(Orientation.VERTICAL), wrapToggle, new Separator(Orientation.VERTICAL), undoBtn, redoBtn, new Separator(Orientation.VERTICAL), cutBtn, copyBtn, pasteBtn, new Separator(Orientation.VERTICAL), boldBtn, italicBtn, underlineBtn, strikeBtn, new Separator(Orientation.VERTICAL), alignLeftBtn, alignCenterBtn, alignRightBtn, alignJustifyBtn, new Separator(Orientation.VERTICAL), insertImageBtn, new Separator(Orientation.VERTICAL), paragraphBackgroundPicker);
    ToolBar toolBar2 = new ToolBar(sizeCombo, familyCombo, textColorPicker, backgroundColorPicker);
    VirtualizedScrollPane<GenericStyledArea<ParStyle, Either<String, LinkedImage>, TextStyle>> vsPane = new VirtualizedScrollPane<>(area);
    VBox vbox = new VBox();
    VBox.setVgrow(vsPane, Priority.ALWAYS);
    vbox.getChildren().addAll(toolBar1, toolBar2, vsPane);
    Scene scene = new Scene(vbox, 600, 400);
    scene.getStylesheets().add(RichText.class.getResource("rich-text.css").toExternalForm());
    primaryStage.setScene(scene);
    area.requestFocus();
    primaryStage.setTitle("Rich Text Demo");
    primaryStage.show();
}
Also used : Button(javafx.scene.control.Button) SegmentOps(org.fxmisc.richtext.model.SegmentOps) SuspendableNo(org.reactfx.SuspendableNo) BooleanBinding(javafx.beans.binding.BooleanBinding) VBox(javafx.scene.layout.VBox) TextExt(org.fxmisc.richtext.TextExt) TextOps(org.fxmisc.richtext.model.TextOps) Application(javafx.application.Application) Either(org.reactfx.util.Either) DataOutputStream(java.io.DataOutputStream) ComboBox(javafx.scene.control.ComboBox) Orientation(javafx.geometry.Orientation) Font(javafx.scene.text.Font) Separator(javafx.scene.control.Separator) Priority(javafx.scene.layout.Priority) List(java.util.List) ToggleButton(javafx.scene.control.ToggleButton) Tuple2(org.reactfx.util.Tuple2) Optional(java.util.Optional) GenericStyledArea(org.fxmisc.richtext.GenericStyledArea) DataInputStream(java.io.DataInputStream) Scene(javafx.scene.Scene) StyleSpans(org.fxmisc.richtext.model.StyleSpans) Bias(org.fxmisc.richtext.model.TwoDimensional.Bias) FXCollections(javafx.collections.FXCollections) Codec(org.fxmisc.richtext.model.Codec) Function(java.util.function.Function) IndexRange(javafx.scene.control.IndexRange) Paragraph(org.fxmisc.richtext.model.Paragraph) BiConsumer(java.util.function.BiConsumer) TextAlignment(javafx.scene.text.TextAlignment) StyledTextArea(org.fxmisc.richtext.StyledTextArea) Tooltip(javafx.scene.control.Tooltip) ColorPicker(javafx.scene.control.ColorPicker) Color(javafx.scene.paint.Color) ReadOnlyStyledDocument(org.fxmisc.richtext.model.ReadOnlyStyledDocument) ToolBar(javafx.scene.control.ToolBar) Node(javafx.scene.Node) CheckBox(javafx.scene.control.CheckBox) FileOutputStream(java.io.FileOutputStream) IOException(java.io.IOException) FileInputStream(java.io.FileInputStream) File(java.io.File) StyledDocument(org.fxmisc.richtext.model.StyledDocument) FileChooser(javafx.stage.FileChooser) ToggleGroup(javafx.scene.control.ToggleGroup) Stage(javafx.stage.Stage) VirtualizedScrollPane(org.fxmisc.flowless.VirtualizedScrollPane) StyledSegment(org.fxmisc.richtext.model.StyledSegment) ColorPicker(javafx.scene.control.ColorPicker) Button(javafx.scene.control.Button) ToggleButton(javafx.scene.control.ToggleButton) ToggleButton(javafx.scene.control.ToggleButton) Optional(java.util.Optional) GenericStyledArea(org.fxmisc.richtext.GenericStyledArea) ComboBox(javafx.scene.control.ComboBox) Tooltip(javafx.scene.control.Tooltip) Color(javafx.scene.paint.Color) Scene(javafx.scene.Scene) Paragraph(org.fxmisc.richtext.model.Paragraph) IndexRange(javafx.scene.control.IndexRange) BooleanBinding(javafx.beans.binding.BooleanBinding) CheckBox(javafx.scene.control.CheckBox) ToggleGroup(javafx.scene.control.ToggleGroup) TextAlignment(javafx.scene.text.TextAlignment) ToolBar(javafx.scene.control.ToolBar) VBox(javafx.scene.layout.VBox) Separator(javafx.scene.control.Separator) VirtualizedScrollPane(org.fxmisc.flowless.VirtualizedScrollPane)

Example 2 with Paragraph

use of org.fxmisc.richtext.model.Paragraph in project RichTextFX by FXMisc.

the class GenericStyledArea method getCharacterBoundsOnScreen.

@Override
public Optional<Bounds> getCharacterBoundsOnScreen(int from, int to) {
    if (from < 0) {
        throw new IllegalArgumentException("From is negative: " + from);
    }
    if (from > to) {
        throw new IllegalArgumentException(String.format("From is greater than to. from=%s to=%s", from, to));
    }
    if (to > getLength()) {
        throw new IllegalArgumentException(String.format("To is greater than area's length. length=%s, to=%s", getLength(), to));
    }
    // no bounds exist if range is just a newline character
    if (getText(from, to).equals("\n")) {
        return Optional.empty();
    }
    // if 'from' is the newline character at the end of a multi-line paragraph, it returns a Bounds that whose
    // minX & minY are the minX and minY of the paragraph itself, not the newline character. So, ignore it.
    int realFrom = getText(from, from + 1).equals("\n") ? from + 1 : from;
    Position startPosition = offsetToPosition(realFrom, Bias.Forward);
    int startRow = startPosition.getMajor();
    Position endPosition = startPosition.offsetBy(to - realFrom, Bias.Forward);
    int endRow = endPosition.getMajor();
    if (startRow == endRow) {
        return getRangeBoundsOnScreen(startRow, startPosition.getMinor(), endPosition.getMinor());
    } else {
        Optional<Bounds> rangeBounds = getRangeBoundsOnScreen(startRow, startPosition.getMinor(), getParagraph(startRow).length());
        for (int i = startRow + 1; i <= endRow; i++) {
            Optional<Bounds> nextLineBounds = getRangeBoundsOnScreen(i, 0, i == endRow ? endPosition.getMinor() : getParagraph(i).length());
            if (nextLineBounds.isPresent()) {
                if (rangeBounds.isPresent()) {
                    Bounds lineBounds = nextLineBounds.get();
                    rangeBounds = rangeBounds.map(b -> {
                        double minX = Math.min(b.getMinX(), lineBounds.getMinX());
                        double minY = Math.min(b.getMinY(), lineBounds.getMinY());
                        double maxX = Math.max(b.getMaxX(), lineBounds.getMaxX());
                        double maxY = Math.max(b.getMaxY(), lineBounds.getMaxY());
                        return new BoundingBox(minX, minY, maxX - minX, maxY - minY);
                    });
                } else {
                    rangeBounds = nextLineBounds;
                }
            }
        }
        return rangeBounds;
    }
}
Also used : EventHandler(javafx.event.EventHandler) NamedArg(javafx.beans.NamedArg) SuspendableNo(org.reactfx.SuspendableNo) IntUnaryOperator(java.util.function.IntUnaryOperator) PseudoClass(javafx.css.PseudoClass) Cell(org.fxmisc.flowless.Cell) BiFunction(java.util.function.BiFunction) TextOps(org.fxmisc.richtext.model.TextOps) SuspendableEventStream(org.reactfx.SuspendableEventStream) PlainTextChange(org.fxmisc.richtext.model.PlainTextChange) StyleConverter(javafx.css.StyleConverter) ContextMenu(javafx.scene.control.ContextMenu) GenericEditableStyledDocument(org.fxmisc.richtext.model.GenericEditableStyledDocument) Duration(java.time.Duration) TwoDimensional(org.fxmisc.richtext.model.TwoDimensional) Point2D(javafx.geometry.Point2D) UndoManager(org.fxmisc.undo.UndoManager) VirtualFlowHit(org.fxmisc.flowless.VirtualFlowHit) SubscribeableContentsObsSet(org.fxmisc.richtext.util.SubscribeableContentsObsSet) Guard(org.reactfx.Guard) ObservableSet(javafx.collections.ObservableSet) UndoUtils(org.fxmisc.richtext.util.UndoUtils) LiveList(org.reactfx.collection.LiveList) CssMetaData(javafx.css.CssMetaData) Event(javafx.event.Event) Virtualized(org.fxmisc.flowless.Virtualized) List(java.util.List) BooleanProperty(javafx.beans.property.BooleanProperty) Region(javafx.scene.layout.Region) TwoLevelNavigator(org.fxmisc.richtext.model.TwoLevelNavigator) Subscription(org.reactfx.Subscription) Tuple2(org.reactfx.util.Tuple2) Paint(javafx.scene.paint.Paint) EventStreams(org.reactfx.EventStreams) Optional(java.util.Optional) SimpleDoubleProperty(javafx.beans.property.SimpleDoubleProperty) Suspendable(org.reactfx.Suspendable) Styleable(javafx.css.Styleable) Bounds(javafx.geometry.Bounds) CornerRadii(javafx.scene.layout.CornerRadii) Val(org.reactfx.value.Val) BoundingBox(javafx.geometry.BoundingBox) MouseEvent(javafx.scene.input.MouseEvent) StyleSpans(org.fxmisc.richtext.model.StyleSpans) FXCollections(javafx.collections.FXCollections) Codec(org.fxmisc.richtext.model.Codec) DoubleProperty(javafx.beans.property.DoubleProperty) TextFlow(javafx.scene.text.TextFlow) Function(java.util.function.Function) MouseOverTextEvent(org.fxmisc.richtext.event.MouseOverTextEvent) ArrayList(java.util.ArrayList) IndexRange(javafx.scene.control.IndexRange) Paragraph(org.fxmisc.richtext.model.Paragraph) Insets(javafx.geometry.Insets) BackgroundFill(javafx.scene.layout.BackgroundFill) BiConsumer(java.util.function.BiConsumer) IntSupplier(java.util.function.IntSupplier) IntFunction(java.util.function.IntFunction) Color(javafx.scene.paint.Color) ObjectProperty(javafx.beans.property.ObjectProperty) ReadOnlyStyledDocument(org.fxmisc.richtext.model.ReadOnlyStyledDocument) Node(javafx.scene.Node) RichTextChange(org.fxmisc.richtext.model.RichTextChange) Replacement(org.fxmisc.richtext.model.Replacement) Tuples(org.reactfx.util.Tuples) Background(javafx.scene.layout.Background) Consumer(java.util.function.Consumer) StyledDocument(org.fxmisc.richtext.model.StyledDocument) SimpleBooleanProperty(javafx.beans.property.SimpleBooleanProperty) StyleableObjectProperty(javafx.css.StyleableObjectProperty) VirtualizedScrollPane(org.fxmisc.flowless.VirtualizedScrollPane) StyledSegment(org.fxmisc.richtext.model.StyledSegment) SimpleObjectProperty(javafx.beans.property.SimpleObjectProperty) SuspendableList(org.reactfx.collection.SuspendableList) ObservableValue(javafx.beans.value.ObservableValue) EditableStyledDocument(org.fxmisc.richtext.model.EditableStyledDocument) VirtualFlow(org.fxmisc.flowless.VirtualFlow) Var(org.reactfx.value.Var) EventStream(org.reactfx.EventStream) Collections(java.util.Collections) Bounds(javafx.geometry.Bounds) BoundingBox(javafx.geometry.BoundingBox) Paint(javafx.scene.paint.Paint)

Example 3 with Paragraph

use of org.fxmisc.richtext.model.Paragraph in project RichTextFX by FXMisc.

the class GenericStyledArea method showCaretAtBottom.

void showCaretAtBottom() {
    int parIdx = getCurrentParagraph();
    Cell<Paragraph<PS, SEG, S>, ParagraphBox<PS, SEG, S>> cell = virtualFlow.getCell(parIdx);
    Bounds caretBounds = cell.getNode().getCaretBounds(caretSelectionBind.getUnderlyingCaret());
    double y = caretBounds.getMaxY();
    suspendVisibleParsWhile(() -> virtualFlow.showAtOffset(parIdx, getViewportHeight() - y));
}
Also used : Bounds(javafx.geometry.Bounds) Paint(javafx.scene.paint.Paint) Paragraph(org.fxmisc.richtext.model.Paragraph)

Example 4 with Paragraph

use of org.fxmisc.richtext.model.Paragraph in project RichTextFX by FXMisc.

the class GenericStyledArea method followCaret.

/**
 * Assumes this method is called within a {@link #suspendVisibleParsWhile(Runnable)} block
 */
private void followCaret() {
    int parIdx = getCurrentParagraph();
    Cell<Paragraph<PS, SEG, S>, ParagraphBox<PS, SEG, S>> cell = virtualFlow.getCell(parIdx);
    Bounds caretBounds = cell.getNode().getCaretBounds(caretSelectionBind.getUnderlyingCaret());
    double graphicWidth = cell.getNode().getGraphicPrefWidth();
    Bounds region = extendLeft(caretBounds, graphicWidth);
    virtualFlow.show(parIdx, region);
}
Also used : Bounds(javafx.geometry.Bounds) Paint(javafx.scene.paint.Paint) Paragraph(org.fxmisc.richtext.model.Paragraph)

Example 5 with Paragraph

use of org.fxmisc.richtext.model.Paragraph in project RichTextFX by FXMisc.

the class GenericStyledArea method currentLine.

/* ********************************************************************** *
     *                                                                        *
     * Package-Private methods                                                *
     *                                                                        *
     * ********************************************************************** */
/**
 * Returns the current line as a two-level index.
 * The major number is the paragraph index, the minor
 * number is the line number within the paragraph.
 *
 * <p>This method has a side-effect of bringing the current
 * paragraph to the viewport if it is not already visible.
 */
TwoDimensional.Position currentLine() {
    int parIdx = getCurrentParagraph();
    Cell<Paragraph<PS, SEG, S>, ParagraphBox<PS, SEG, S>> cell = virtualFlow.getCell(parIdx);
    int lineIdx = cell.getNode().getCurrentLineIndex(caretSelectionBind.getUnderlyingCaret());
    return paragraphLineNavigator.position(parIdx, lineIdx);
}
Also used : Paint(javafx.scene.paint.Paint) Paragraph(org.fxmisc.richtext.model.Paragraph)

Aggregations

Paragraph (org.fxmisc.richtext.model.Paragraph)7 Paint (javafx.scene.paint.Paint)6 Bounds (javafx.geometry.Bounds)5 List (java.util.List)3 Optional (java.util.Optional)3 BiConsumer (java.util.function.BiConsumer)3 Function (java.util.function.Function)3 FXCollections (javafx.collections.FXCollections)3 Node (javafx.scene.Node)3 IndexRange (javafx.scene.control.IndexRange)3 Duration (java.time.Duration)2 ArrayList (java.util.ArrayList)2 Collections (java.util.Collections)2 BiFunction (java.util.function.BiFunction)2 Consumer (java.util.function.Consumer)2 IntFunction (java.util.function.IntFunction)2 IntSupplier (java.util.function.IntSupplier)2 IntUnaryOperator (java.util.function.IntUnaryOperator)2 NamedArg (javafx.beans.NamedArg)2 BooleanProperty (javafx.beans.property.BooleanProperty)2