Top Fields Constructors Methods
com.sun.javafx.text

public Class PrismTextLine

extends Object
implements TextLine
Class Inheritance
All Implemented Interfaces
com.sun.javafx.scene.text.TextLine
Imports
com.sun.javafx.geom.RectBounds, com.sun.javafx.scene.text.TextLine

Field Summary

Modifier and TypeField and Description
private final RectBounds
private final float
private final int
private float
private float
private final TextRun[]
private final int

Constructor Summary

AccessConstructor and Description
public
PrismTextLine(int start, int length, TextRun[] runs, float width, float ascent, float descent, float leading)

Method Summary

Modifier and TypeMethod and Description
public RectBounds
getBounds()

Implements com.sun.javafx.scene.text.TextLine.getBounds.

Returns metrics information about the line as follows: bounds().getWidth() - the width of the line.

public float
public float
getLeftSideBearing()

Implements com.sun.javafx.scene.text.TextLine.getLeftSideBearing.

Returns the left side bearing of the line (negative).

public int
getLength()

Implements com.sun.javafx.scene.text.TextLine.getLength.

Returns the line length in characters.

public float
getRightSideBearing()

Implements com.sun.javafx.scene.text.TextLine.getRightSideBearing.

Returns the right side bearing of the line (positive).

public TextRun[]
getRuns()

Implements com.sun.javafx.scene.text.TextLine.getRuns.

Returns the list of GlyphList in the line.

public int
getStart()

Implements com.sun.javafx.scene.text.TextLine.getStart.

Returns the line start offset.

public void
setAlignment(float x)

public void
setSideBearings(float lsb, float rsb)

public void
setWidth(float width)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boundsback to summary
private final RectBounds bounds
leadingback to summary
private final float leading
lengthback to summary
private final int length
lsbback to summary
private float lsb
rsbback to summary
private float rsb
runsback to summary
private final TextRun[] runs
startback to summary
private final int start

Constructor Detail

PrismTextLineback to summary
public PrismTextLine(int start, int length, TextRun[] runs, float width, float ascent, float descent, float leading)

Method Detail

getBoundsback to summary
public RectBounds getBounds()

Implements com.sun.javafx.scene.text.TextLine.getBounds.

Doc from com.sun.javafx.scene.text.TextLine.getBounds.

Returns metrics information about the line as follows: bounds().getWidth() - the width of the line. The width for the line is sum of all run's width in the line, it is not affected by any wrapping width but it will include any changes caused by justification. bounds().getHeight() - the height of the line. The height of the line is sum of the max ascent, max descent, and max line gap of all the fonts in the line. bounds.().getMinY() - the ascent of the line (negative). The ascent of the line is the max ascent of all fonts in the line. bounds().getMinX() - the x origin of the line (relative to the layout). The x origin is defined by TextAlignment of the text layout, always zero for left-aligned text.

Annotations
@Override
getLeadingback to summary
public float getLeading()
getLeftSideBearingback to summary
public float getLeftSideBearing()

Implements com.sun.javafx.scene.text.TextLine.getLeftSideBearing.

Doc from com.sun.javafx.scene.text.TextLine.getLeftSideBearing.

Returns the left side bearing of the line (negative).

Annotations
@Override
getLengthback to summary
public int getLength()

Implements com.sun.javafx.scene.text.TextLine.getLength.

Doc from com.sun.javafx.scene.text.TextLine.getLength.

Returns the line length in characters.

Annotations
@Override
getRightSideBearingback to summary
public float getRightSideBearing()

Implements com.sun.javafx.scene.text.TextLine.getRightSideBearing.

Doc from com.sun.javafx.scene.text.TextLine.getRightSideBearing.

Returns the right side bearing of the line (positive).

Annotations
@Override
getRunsback to summary
public TextRun[] getRuns()

Implements com.sun.javafx.scene.text.TextLine.getRuns.

Doc from com.sun.javafx.scene.text.TextLine.getRuns.

Returns the list of GlyphList in the line. The list is visually ordered.

Annotations
@Override
getStartback to summary
public int getStart()

Implements com.sun.javafx.scene.text.TextLine.getStart.

Doc from com.sun.javafx.scene.text.TextLine.getStart.

Returns the line start offset.

Annotations
@Override
setAlignmentback to summary
public void setAlignment(float x)
setSideBearingsback to summary
public void setSideBearings(float lsb, float rsb)
setWidthback to summary
public void setWidth(float width)