| java.lang.Object org.netbeans.editor.DrawEngine
DrawEngine | class DrawEngine (Code) | | Class responsible for drawing the editor component.
author: Miloslav Metelka version: 1.00 |
Method Summary | |
void | draw(DrawGraphics drawGraphics, EditorUI editorUI, int startOffset, int endOffset, int startX, int startY, int targetOffset) Draw on the specified area.
Parameters: drawGraphics - draw graphics through which the drawing is done Parameters: editorUI - extended UI to use Parameters: startOffset - position from which the drawing starts. | public static DrawEngine | getDrawEngine() |
draw | void draw(DrawGraphics drawGraphics, EditorUI editorUI, int startOffset, int endOffset, int startX, int startY, int targetOffset) throws BadLocationException(Code) | | Draw on the specified area.
Parameters: drawGraphics - draw graphics through which the drawing is done Parameters: editorUI - extended UI to use Parameters: startOffset - position from which the drawing starts. It must BOL of thefirst line to be drawn. Parameters: endOffset - position where the drawing stops. It must be EOL of the lastline to be drawn. Parameters: startX - x-coordinate at which the drawing starts Parameters: startY - x-coordinate at which the drawing starts Parameters: targetOffset - position where the targetOffsetReached() method ofdrawGraphics is called. This is useful for caret update ormodelToView. The Integer.MAX_VALUE can be passed to ignorethat behavior. The -1 value has special meaning there so thatit calls targetOffsetReached() after each character processed.This is used by viewToModel to find the position for somepoint. |
getDrawEngine | public static DrawEngine getDrawEngine()(Code) | | Get the static instance of draw-engine
|
|
|