Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api.highlights
Class ColorHighlightPainter

java.lang.Object
  extended by ro.sync.ecss.extensions.api.highlights.ColorHighlightPainter
All Implemented Interfaces:
HighlightPainter

public class ColorHighlightPainter
extends Object
implements HighlightPainter

Paint spell check markers on a view.


Constructor Summary
ColorHighlightPainter()
          Default constructor.
ColorHighlightPainter(Color color, int height, int totalHeight)
          Constructor.
 
Method Summary
 void paint(HighlightPainterInfo pi)
          Renders the highlight.
 void setBgColor(Color bgColor)
           
 void setColor(Color c)
          Set the color.
 void setStrikeOut(boolean strikeOut)
           
 boolean useBaseLineForUnderline()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorHighlightPainter

public ColorHighlightPainter()
Default constructor. The color is red.


ColorHighlightPainter

public ColorHighlightPainter(Color color,
                             int height,
                             int totalHeight)
Constructor.

Parameters:
color - The color to use for highlight.
height - The height of the highlight line. This may be smaller than the total height. If it is, the extra space will remain under the line.
totalHeight - The height of the highlight.
Method Detail

paint

public void paint(HighlightPainterInfo pi)
Description copied from interface: HighlightPainter
Renders the highlight.

Specified by:
paint in interface HighlightPainter
Parameters:
pi - Information used by highlight
See Also:
HighlightPainter.paint(ro.sync.ecss.extensions.api.highlights.HighlightPainterInfo)

setColor

public void setColor(Color c)
Set the color.

Parameters:
c - The color.

setStrikeOut

public void setStrikeOut(boolean strikeOut)
Parameters:
strikeOut - Set this highlight as strike out.

setBgColor

public void setBgColor(Color bgColor)
Parameters:
bgColor - The background color to set.

useBaseLineForUnderline

public boolean useBaseLineForUnderline()
Returns:
true if use the base line for underlining

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.