Top Fields Constructors Methods
com.sun.javafx.sg.prism

public Class NGText

extends NGShape
Class Inheritance
Imports
com.sun.javafx.font.FontResource, .FontStrike, .Metrics, .PGFont, com.sun.javafx.geom.BaseBounds, .Path2D, .Point2D, .RectBounds, .RoundRectangle2D, .Shape, com.sun.javafx.geom.transform.BaseTransform, com.sun.javafx.scene.text.GlyphList, com.sun.javafx.text.TextRun, com.sun.prism.Graphics, com.sun.prism.paint.Color

Field Summary

Modifier and TypeField and Description
private static int
private boolean
private static double
private static int
private PGFont
private int
private FontStrike
pack-priv static final BaseTransform
private FontStrike
private float
private float
private GlyphList[]
private int
private Object
private int
private static int
private double[]
private boolean
private static int
private boolean
Inherited from com.sun.javafx.sg.prism.NGShape:
drawPaintdrawStrokefillPaintmodeshapeRepTHRESHOLD

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected BaseBounds
computePadding(BaseBounds region)

Overrides com.sun.javafx.sg.prism.NGNode.computePadding.

Provide some lucky padding in the case that we are rendering LCD text since there might be some pixels that lie outside the normally computed content bounds.

public Shape
private FontStrike
private boolean
protected void
renderContent2D(Graphics
The graphics object to render with
g
,
boolean printing)

Overrides com.sun.javafx.sg.prism.NGShape.renderContent2D.

Renders the content as though it is 2D in all cases.

protected void
private void
renderText(Graphics g, FontStrike strike, BaseBounds clipBds, Color selectionColor, int op)

public void
public void
setFontSmoothingType(int fontSmoothingType)

public void
setGlyphs(Object[] glyphs)

public void
setLayoutLocation(float x, float y)

public void
setSelection(int start, int end, Object color)

public void
setStrikethrough(boolean strikethrough)

public void
setUnderline(boolean underline)

Inherited from com.sun.javafx.sg.prism.NGShape:
createShapeRepgeometryChangedgetFillPaintgetModegetStrokeShapehasOpaqueRegionhasOverlappingContentsisSmoothrenderContentsetDrawPaintsetDrawStrokesetDrawStrokesetFillPaintsetModesetSmoothvisualsChanged

Field Detail

DECORATIONback to summary
private static int DECORATION
drawingEffectback to summary
private boolean drawingEffect
EPSILONback to summary
private static double EPSILON
FILLback to summary
private static int FILL
fontback to summary
private PGFont font
fontSmoothingTypeback to summary
private int fontSmoothingType
fontStrikeback to summary
private FontStrike fontStrike
IDENTback to summary
pack-priv static final BaseTransform IDENT
identityStrikeback to summary
private FontStrike identityStrike
layoutXback to summary
private float layoutX
layoutYback to summary
private float layoutY
runsback to summary
private GlyphList[] runs
selectionEndback to summary
private int selectionEnd
selectionPaintback to summary
private Object selectionPaint
selectionStartback to summary
private int selectionStart
SHAPE_FILLback to summary
private static int SHAPE_FILL
strikeMatback to summary
private double[] strikeMat
strikethroughback to summary
private boolean strikethrough
TEXTback to summary
private static int TEXT
underlineback to summary
private boolean underline

Constructor Detail

NGTextback to summary
public NGText()

Method Detail

computePaddingback to summary
protected BaseBounds computePadding(BaseBounds region)

Overrides com.sun.javafx.sg.prism.NGNode.computePadding.

Provide some lucky padding in the case that we are rendering LCD text since there might be some pixels that lie outside the normally computed content bounds.

Annotations
@Override
getShapeback to summary
public Shape getShape()

Implements abstract com.sun.javafx.sg.prism.NGShape.getShape.

Annotations
@Override
getStrikeback to summary
private FontStrike getStrike(BaseTransform xform)
isEmojiRunback to summary
private boolean isEmojiRun(TextRun run, FontStrike strike)
renderContent2Dback to summary
protected void renderContent2D(Graphics g, boolean printing)

Overrides com.sun.javafx.sg.prism.NGShape.renderContent2D.

Doc from com.sun.javafx.sg.prism.NGShape.renderContent2D.

Renders the content as though it is 2D in all cases. In the case that a 3D transform is in use at the time an NGShape is rendered, it will render as 2D into a texture and then transform in 3D that texture.

Parameters
g:Graphics

The graphics object to render with

Annotations
@Override
renderEffectback to summary
protected void renderEffect(Graphics g)

Overrides com.sun.javafx.sg.prism.NGNode.renderEffect.

Annotations
@Override
renderTextback to summary
private void renderText(Graphics g, FontStrike strike, BaseBounds clipBds, Color selectionColor, int op)
setFontback to summary
public void setFont(Object font)
setFontSmoothingTypeback to summary
public void setFontSmoothingType(int fontSmoothingType)
setGlyphsback to summary
public void setGlyphs(Object[] glyphs)
setLayoutLocationback to summary
public void setLayoutLocation(float x, float y)
setSelectionback to summary
public void setSelection(int start, int end, Object color)
setStrikethroughback to summary
public void setStrikethrough(boolean strikethrough)
setUnderlineback to summary
public void setUnderline(boolean underline)