metricsOverlay.augmentationStrategies
Class BgLineStrategy

java.lang.Object
  extended by metricsOverlay.augmentationStrategies.AugmentationStrategy
      extended by metricsOverlay.augmentationStrategies.BgLineStrategy

public class BgLineStrategy
extends AugmentationStrategy

This display strategy colours background lines of code with a blend between two set colours.

Version:
5/7/2009
Author:
Matthew Harward

Constructor Summary
BgLineStrategy()
           
 
Method Summary
 void dispose()
          Subclasses should override this method
 void update(MetricFile mf, Mapping mm)
          Adds line listeners for colouring the background and updating when the text changes.
 
Methods inherited from class metricsOverlay.augmentationStrategies.AugmentationStrategy
isActive, parseColor, setActive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BgLineStrategy

public BgLineStrategy()
Method Detail

update

public void update(MetricFile mf,
                   Mapping mm)
Adds line listeners for colouring the background and updating when the text changes.

Overrides:
update in class AugmentationStrategy
Parameters:
mf - the metric file describing the current file and the metrics to be applied.
mm - the name of the current mapping this display strategy belongs to.

dispose

public void dispose()
Description copied from class: AugmentationStrategy
Subclasses should override this method

Specified by:
dispose in class AugmentationStrategy