Package org.fxmisc.richtext.util

Examples of org.fxmisc.richtext.util.MouseStationaryHelper


    Paragraph<S> getParagraph() {
        return text.getParagraph();
    }

    public EventStream<Either<Tuple2<Point2D, Integer>, Object>> stationaryIndices(Duration delay) {
        EventStream<Either<Point2D, Void>> stationaryEvents = new MouseStationaryHelper(this).events(delay);
        EventStream<Tuple2<Point2D, Integer>> hits = stationaryEvents.filterMap(Either::asLeft)
                .<Tuple2<Point2D, Integer>>filterMap(pos -> hit(pos).map(hit -> t(pos, hit.getCharIndex())));
        EventStream<?> stops = stationaryEvents.filterMap(Either::isRight, Either::getRight);
        return hits.or(stops);
    }
View Full Code Here

TOP

Related Classes of org.fxmisc.richtext.util.MouseStationaryHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.