public class NGText extends NGShape
NGShape.Mode
NGNode.DirtyFlag, NGNode.RenderRootResult
drawPaint, drawStroke, fillPaint, mode, shapeRep
childDirty, 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, visualsChanged
accumulateDirtyRegions, 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, toString
public 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 NGNode
protected void renderEffect(Graphics g)
renderEffect
in class NGNode
protected void renderContent2D(Graphics g, boolean printing)
NGShape
renderContent2D
in class NGShape
g
- The graphics object to render withCopyright © 2020. All rights reserved.