Class StyledTextRenderer.LineSizeInfo
java.lang.Object
org.eclipse.swt.custom.StyledTextRenderer.LineSizeInfo
- Enclosing class:
StyledTextRenderer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intprivate static final int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanReturns true if the TextLayout get from the layout pool can be directly used or must be refreshed with styles.(package private) booleanReturns true if it needs to recalculate the line height and false otherwise.(package private) booleanReturns true if it needs to recalculate the line size and false otherwise.(package private) booleanReturns true if it needs to recalculate the line width and false otherwise.(package private) voidReset the line size.
-
Field Details
-
RESETED_SIZE
private static final int RESETED_SIZE- See Also:
-
height
int height -
width
int width
-
-
Constructor Details
-
LineSizeInfo
public LineSizeInfo()
-
-
Method Details
-
resetSize
void resetSize()Reset the line size. -
canLayout
boolean canLayout()Returns true if the TextLayout get from the layout pool can be directly used or must be refreshed with styles.- Returns:
- true if the TextLayout get from the layout pool can be directly used or must be refreshed with styles.
-
needsRecalculateSize
boolean needsRecalculateSize()Returns true if it needs to recalculate the line size and false otherwise.- Returns:
- true if it needs to recalculate the line size and false otherwise.
-
needsRecalculateWidth
boolean needsRecalculateWidth()Returns true if it needs to recalculate the line width and false otherwise.- Returns:
- true if it needs to recalculate the line width and false otherwise.
-
needsRecalculateHeight
boolean needsRecalculateHeight()Returns true if it needs to recalculate the line height and false otherwise.- Returns:
- true if it needs to recalculate the line height and false otherwise.
-