public class NGText extends NGShape
NGShape.ModeNGNode.DirtyFlag, NGNode.RenderRootResultdrawPaint, drawStroke, fillPaint, mode, shapeRepchildDirty, contentBounds, cullingBits, dirty, DIRTY_CHILDREN_ACCUMULATED_THRESHOLD, dirtyChildrenAccumulated, TEMP_TRANSFORM, transformedBounds| Constructor and Description |
|---|
NGText() |
| Modifier and Type | Method and Description |
|---|---|
protected BaseBounds |
computePadding(BaseBounds region)
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.
|
Shape |
getShape() |
protected void |
renderContent2D(Graphics g,
boolean printing)
Renders the content as though it is 2D in all cases.
|
protected void |
renderEffect(Graphics g) |
void |
setFont(Object font) |
void |
setFontSmoothingType(int fontSmoothingType) |
void |
setGlyphs(Object[] glyphs) |
void |
setLayoutLocation(float x,
float y) |
void |
setSelection(int start,
int end,
Object color) |
void |
setStrikethrough(boolean strikethrough) |
void |
setUnderline(boolean underline) |
createShapeRep, geometryChanged, getFillPaint, getMode, getStrokeShape, hasOpaqueRegion, hasOverlappingContents, isSmooth, renderContent, setDrawPaint, setDrawStroke, setDrawStroke, setFillPaint, setMode, setSmooth, visualsChangedaccumulateDirtyRegions, applyClip, applyEffect, applyTransform, clearDirty, clearDirtyTree, clearPainted, computeOpaqueRegion, doPreCulling, doRender, drawDirtyOpts, effectChanged, getCacheFilter, getClipNode, getClippedBounds, getCompleteBounds, getContentBounds, getEffect, getEffectBounds, getEffectFilter, getName, getNodeBlendMode, getOpacity, getOpaqueRegion, getParent, getRenderRoot, getTransform, hasVisuals, invalidateCache, invalidateCacheByTranslation, invalidateOpaqueRegion, isClean, isContentBounds2D, isDepthTest, isRectClip, isVisible, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderForcedContent, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, supportsOpaqueRegions, toStringpublic void setGlyphs(Object[] glyphs)
public void setLayoutLocation(float x,
float y)
public void setFont(Object font)
public void setFontSmoothingType(int fontSmoothingType)
public void setUnderline(boolean underline)
public void setStrikethrough(boolean strikethrough)
public void setSelection(int start,
int end,
Object color)
protected BaseBounds computePadding(BaseBounds region)
computePadding in class NGNodeprotected void renderEffect(Graphics g)
renderEffect in class NGNodeprotected void renderContent2D(Graphics g, boolean printing)
NGShaperenderContent2D in class NGShapeg - The graphics object to render withCopyright © 2025. All rights reserved.