Class TextPaintInstruction

java.lang.Object
org.eclipse.nebula.widgets.richtext.painter.instructions.TextPaintInstruction
All Implemented Interfaces:
PaintInstruction

public class TextPaintInstruction
extends java.lang.Object
implements PaintInstruction
PaintInstruction to paint text based on the current TagProcessingState.
  • Constructor Summary

    Constructors 
    Constructor Description
    TextPaintInstruction​(TagProcessingState state, java.lang.String text)  
    TextPaintInstruction​(TagProcessingState state, java.lang.String text, java.lang.String wordSplitRegex)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getText()  
    int getTextLength​(org.eclipse.swt.graphics.GC gc)  
    int getTrimmedTextLength​(org.eclipse.swt.graphics.GC gc)  
    java.util.List<java.lang.String> getWords()  
    void paint​(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle area)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait