| java.lang.Object com.ibm.richtext.textformat.ParagraphRenderer
All known Subclasses: com.ibm.richtext.textformat.BidiParagraphRenderer,
ParagraphRenderer | abstract class ParagraphRenderer (Code) | | ParagraphRenderer is a factory for LayoutInfo objects.
|
Method Summary | |
public void | initRenderer(AttributeMap pStyle) Reset the renderer to use information from this style. | abstract public LayoutInfo | layout(MConstText text, LayoutInfo layoutToReuse, LineBreakMeasurer measurer, FontRenderContext frc, int paragraphStart, int paragraphLimit, int totalFormatWidth, int lineBound) Return a LayoutInfo for the paragraph represented by
measurer.
Parameters: text - the text containing the paragraph Parameters: layoutToReuse - clients can pass in a LayoutInfowhich the ParagraphRenderer may choose to reuseand return. |
initRenderer | public void initRenderer(AttributeMap pStyle)(Code) | | Reset the renderer to use information from this style. Since renderers may be shared, you should
make sure the renderer is initialized for the style you wish to render before you use it.
|
layout | abstract public LayoutInfo layout(MConstText text, LayoutInfo layoutToReuse, LineBreakMeasurer measurer, FontRenderContext frc, int paragraphStart, int paragraphLimit, int totalFormatWidth, int lineBound)(Code) | | Return a LayoutInfo for the paragraph represented by
measurer.
Parameters: text - the text containing the paragraph Parameters: layoutToReuse - clients can pass in a LayoutInfowhich the ParagraphRenderer may choose to reuseand return. If null, a new LayoutInfo will becreated and returned. Parameters: measurer - the LineBreakMeasurer for this paragraph.Current position should be the first character on the line.If null, a 0-length line is generated. If measurer is nullthen paragraphStart and paragraphLimit should be equal. Parameters: frc - the FontRenderContext used for measurerment Parameters: paragraphStart - the index in the text where thecurrent paragraph begins Parameters: paragraphLimit - the index of the first characterafter the current paragraph Parameters: totalFormatWidth - the width in which the line should fit Parameters: lineBound - where right-aligned lines are aligned |
|
|