Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.editor
Interface BasicEditorPainter


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

paint

void paint(java.awt.Graphics g,
           BasicEditorPane editor)
Perform custom painting into an editor

Parameters:
g -
editor -

getPriority

int getPriority()
Priority determines the order in which painters will be called to do their painting in the editor.

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.

Returns:
the priority of the painter

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.