public class CompositionTextPainter
extends Object
| Constructor and Description |
|---|
CompositionTextPainter(JEditTextArea textArea)
Constructor for painter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics gfx,
Color fillBackGroundColor)
Draw text via input method with composed text information.
|
boolean |
hasComposedTextLayout()
Check the painter has TextLayout.
|
void |
invalidateComposedTextLayout(int composedEndCaretPosition)
Invalidate this TextLayout to set null.
|
void |
setCaret(TextHitInfo caret) |
void |
setComposedTextLayout(TextLayout composedTextLayout,
int composedStartCaretPosition)
Set TextLayout to the painter.
|
public CompositionTextPainter(JEditTextArea textArea)
textArea - textarea used by PDE.public boolean hasComposedTextLayout()
public void setComposedTextLayout(TextLayout composedTextLayout,
int composedStartCaretPosition)
CompositionTextManagerpublic void invalidateComposedTextLayout(int composedEndCaretPosition)
public void draw(Graphics gfx,
Color fillBackGroundColor)
gfx - set TextAreaPainter's Graphics object.fillBackGroundColor - set textarea's background.public void setCaret(TextHitInfo caret)