Top Description Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class RangeInfo

extends Object
Class Inheritance
Imports
javafx.scene.shape.LineTo, .MoveTo, .PathElement

Represents the text geometry as a sequence of bounding rectangles.

Field Summary

Modifier and TypeField and Description
private final double[]
data

the sequence of rectangles encoded as [xmin, ymin, xmax, ymax], ...

private final double
private final double

Constructor Summary

AccessConstructor and Description
private
RangeInfo(double[] data, double ymin, double ymax)

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(int ix, double x, double y)

public boolean
containsX(int ix, double x)

public double
getMaxY(int ix)

public double
getMinY(int ix)

public int
public boolean
insideY(double y)

public double
midPointY(int ix)

public static RangeInfo
of(double width, double height)

public static RangeInfo
of(PathElement[] elements, double lineSpacing)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private final double[] data

the sequence of rectangles encoded as [xmin, ymin, xmax, ymax], ...

ymaxback to summary
private final double ymax
yminback to summary
private final double ymin

Constructor Detail

RangeInfoback to summary
private RangeInfo(double[] data, double ymin, double ymax)

Method Detail

containsback to summary
public boolean contains(int ix, double x, double y)
containsXback to summary
public boolean containsX(int ix, double x)
getMaxYback to summary
public double getMaxY(int ix)
getMinYback to summary
public double getMinY(int ix)
getSegmentCountback to summary
public int getSegmentCount()
insideYback to summary
public boolean insideY(double y)
midPointYback to summary
public double midPointY(int ix)
ofback to summary
public static RangeInfo of(double width, double height)
ofback to summary
public static RangeInfo of(PathElement[] elements, double lineSpacing)