public class FlowExtGlyphLayout extends GlyphLayout
advance, eps, FLOW_EMPTY_PARAGRAPH, FLOW_LINE_BREAK, FLOW_PARAGRAPH, gv, GVT_FONT, HORIZONTAL_ORIENTATION_ANGLE, layoutApplied, LINE_HEIGHT, runAtts, szAtts, VERTICAL_ORIENTATION, VERTICAL_ORIENTATION_ANGLE
DECORATION_ALL, DECORATION_OVERLINE, DECORATION_STRIKETHROUGH, DECORATION_UNDERLINE
Constructor and Description |
---|
FlowExtGlyphLayout(java.text.AttributedCharacterIterator aci,
int[] charMap,
java.awt.geom.Point2D offset,
java.awt.font.FontRenderContext frc) |
Modifier and Type | Method and Description |
---|---|
static void |
layoutChunk(GVTGlyphVector gv,
java.awt.geom.Point2D origin,
int justification,
java.util.List lineInfos) |
static void |
textWrapTextChunk(java.text.AttributedCharacterIterator[] acis,
java.util.List chunkLayouts,
java.util.List flowRects)
This will wrap the text associated with
aci and
layouts . |
static void |
updateVerticalAlignOffset(java.awt.geom.Point2D.Float verticalAlignOffset,
RegionInfo region,
float maxDescent)
Updates the specified verticalAlignmentOffset using the current
alignment rule and the heights of the flow rect and the maximum
descent of the text.
|
addPtsToPath, adjustTextSpacing, applyStretchTransform, doExplicitGlyphLayout, doPathLayout, doSpacing, draw, epsEQ, getAdvance2D, getBounds2D, getCharacterCount, getComputedOrientationAngle, getDecorationOutline, getFont, getGeometricBounds, getGlyphAdvances, getGlyphCount, getGlyphIndex, getGlyphMetrics, getGlyphOrientationAngle, getGlyphVector, getHighlightShape, getLastGlyphIndex, getLineMetrics, getOffset, getOutline, getOverlineShape, getStrikethroughShape, getTextPathAdvance, getUnderlineShape, hasCharacterIndex, hitTestChar, isAltGlyph, isGlyphOrientationAuto, isLatinChar, isLeftToRight, isOnATextPath, isReversed, isVertical, makeConvexHull, maybeReverse, mergeAreas, setOffset, setScale
public FlowExtGlyphLayout(java.text.AttributedCharacterIterator aci, int[] charMap, java.awt.geom.Point2D offset, java.awt.font.FontRenderContext frc)
public static void textWrapTextChunk(java.text.AttributedCharacterIterator[] acis, java.util.List chunkLayouts, java.util.List flowRects)
aci
and
layouts
.acis
- An array of Attributed Charater Iterators containing the
text to wrap. There is one aci per text chunk
(which maps to flowPara elements. Used to access
font, paragraph, and line break info.chunkLayouts
- A List of List of GlyphLayout objects. There
is a List of GlyphLayout objects for each
flowPara element. There is a GlyphLayout
for approximately each sub element in the
flowPara element.flowRects
- A List of Rectangle2D representing the regions
to flow text into.public static void updateVerticalAlignOffset(java.awt.geom.Point2D.Float verticalAlignOffset, RegionInfo region, float maxDescent)
LineInfo
objects created for a given
flow rect. The value is calculated by determining the left
over space in the flow rect and scaling that value by 1.0 to
align to the bottom, 0.5 for middle and 0.0 for top.verticalAlignOffset
- the Point2D.Float
object that is storing the alignment offset.region
- the RegionInfo
object that we are rendering into.maxDescent
- the very lowest point this line reaches.public static void layoutChunk(GVTGlyphVector gv, java.awt.geom.Point2D origin, int justification, java.util.List lineInfos)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.