com.bluemarsh.jswat.view
Class BasicGutterDrawLayer

java.lang.Object
  |
  +--com.bluemarsh.jswat.view.BasicGutterDrawLayer
All Implemented Interfaces:
GutterDrawLayer

public class BasicGutterDrawLayer
extends java.lang.Object
implements GutterDrawLayer

Class BasicGutterDrawLayer provides a simple default implementation of the GutterDrawLayer interface.

Author:
Nathan Fiedler

Field Summary
protected  boolean active
          True if this draw layer is actively affecting the text area.
 
Fields inherited from interface com.bluemarsh.jswat.view.GutterDrawLayer
PRIORITY_BREAKPOINT, PRIORITY_HIGHEST, PRIORITY_LOWEST
 
Constructor Summary
BasicGutterDrawLayer()
           
 
Method Summary
 boolean isActive()
          Returns true if this draw layer wants to take part in the current painting event.
 void updateContext(DrawContext ctx, int line)
          Update the draw context by setting colors, fonts and possibly other draw properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

active

protected boolean active
True if this draw layer is actively affecting the text area.
Constructor Detail

BasicGutterDrawLayer

public BasicGutterDrawLayer()
Method Detail

isActive

public boolean isActive()
Returns true if this draw layer wants to take part in the current painting event.
Specified by:
isActive in interface GutterDrawLayer
Returns:
true if active, false otherwise.

updateContext

public void updateContext(DrawContext ctx,
                          int line)
Update the draw context by setting colors, fonts and possibly other draw properties.
Specified by:
updateContext in interface GutterDrawLayer
Parameters:
ctx - draw context.
line - line number where drawing is presently taking place.