All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fxmisc.richtext.model.TwoDimensional Maven / Gradle / Ivy

There is a newer version: 0.11.3
Show newest version
package org.fxmisc.richtext.model;


public interface TwoDimensional {

    enum Bias {
        Forward,
        Backward,
    }

    interface Position {

        TwoDimensional getTargetObject();

        int getMajor();

        int getMinor();

        /**
         * Returns {@code true} if the given position is equal to this
         * position, that is they both point to the same place in the
         * same two-dimensional object. Otherwise returns {@code false}.
         */
        boolean sameAs(Position other);

        public Position clamp();

        public Position offsetBy(int offset, Bias bias);

        int toOffset();

    }

    Position position(int major, int minor);

    Position offsetToPosition(int offset, Bias bias);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy