Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.source
Class AnnotationPainter.NullStrategy


java.lang.Object
  extended by 
org.eclipse.jface.text.source.AnnotationPainter.NullStrategy
All Implemented Interfaces:
AnnotationPainter.IDrawingStrategy
Enclosing class:
AnnotationPainter

public static final class AnnotationPainter.NullStrategy
extends Object
implements AnnotationPainter.IDrawingStrategy

Drawing strategy that does nothing.

Since:
3.0

Constructor Summary
AnnotationPainter.NullStrategy ()
           
 
Method Summary
 void draw ( Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color)
          Draws a decoration for an annotation onto the specified GC at the given text range.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationPainter.NullStrategy

public AnnotationPainter.NullStrategy()
Method Detail

draw

public void draw(
Annotation annotation,
                 
GC gc,
                 
StyledText textWidget,
                 int offset,
                 int length,
                 
Color color)
Description copied from interface: AnnotationPainter.IDrawingStrategy
Draws a decoration for an annotation onto the specified GC at the given text range. There are two different invocation modes of the draw method:
  • drawing mode: the passed GC is the graphics context of a paint event occurring on the text widget. The strategy should draw the decoration onto the graphics context, such that the decoration appears at the given range in the text widget.
  • clearing mode: the passed GC is null. In this case the strategy must invalidate enough of the text widget's client area to cover any decoration drawn in drawing mode. This can usually be accomplished by calling textWidget.redrawRange(offset, length, true).

Specified by:
draw in interface AnnotationPainter.IDrawingStrategy
Parameters:
annotation - the annotation to be drawn
gc - the graphics context, null when in clearing mode
textWidget - the text widget to draw on
offset - the offset of the line
length - the length of the line
color - the color of the line

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire