org.fxmisc.richtext.model.TwoDimensional Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of richtextfx Show documentation
Show all versions of richtextfx Show documentation
Rich-text area for JavaFX
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);
}