Oxygen XML Editor 14.2 Author API

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

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

@API(type=EXTENDABLE,
     src=PUBLIC)
public class RectangleHighlightPainter
extends java.lang.Object
implements HighlightPainter

Fill a rectangle for the given highlight.


Field Summary
protected  Color fillColor
          The fill color.
 
Constructor Summary
RectangleHighlightPainter(Color fillColor)
          Constructor.
 
Method Summary
 void paint(HighlightPainterInfo pi)
          Renders the highlight.
 void setFillColor(Color fillColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fillColor

protected Color fillColor
The fill color.

Constructor Detail

RectangleHighlightPainter

public RectangleHighlightPainter(Color fillColor)
Constructor.

Parameters:
fillColor - The fill color.
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)

setFillColor

public void setFillColor(Color fillColor)
Parameters:
fillColor - The fill color to set.

Oxygen XML Editor 14.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.