|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasicEditorPainter
Class to allow arbitrary drawing onto a BasicEditorPane
Register a painter with a BasicEditorPainter via BasicEditorPainter.registerPainter(BasicEditorPainter) and perform the custom drawing in the paint method.
Method Summary | |
---|---|
int |
getPriority() Priority determines the order in which painters will be called to do their painting in the editor. |
void |
paint(java.awt.Graphics g, BasicEditorPane editor) Perform custom painting into an editor |
Method Detail |
---|
void paint(java.awt.Graphics g, BasicEditorPane editor)
g
-editor
-int getPriority()
Painting will occur from lower to higher priority (so that higher priority painters can paint over the top of lower priority painters).
The text of the editor is painted at priority position zero, so that sub zero priority painters paint behind the text, and positive priority painters paint on top.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |