Class StyledTextRenderer.LineSizeInfo

java.lang.Object
org.eclipse.swt.custom.StyledTextRenderer.LineSizeInfo
Enclosing class:
StyledTextRenderer

static class StyledTextRenderer.LineSizeInfo extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
     
    private static final int
     
    (package private) int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) boolean
    Returns true if the TextLayout get from the layout pool can be directly used or must be refreshed with styles.
    (package private) boolean
    Returns true if it needs to recalculate the line height and false otherwise.
    (package private) boolean
    Returns true if it needs to recalculate the line size and false otherwise.
    (package private) boolean
    Returns true if it needs to recalculate the line width and false otherwise.
    (package private) void
    Reset the line size.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.