@API(type=EXTENDABLE,
src=PUBLIC)
public class RectangleHighlightPainter
extends java.lang.Object
implements HighlightPainter, PrioritizableHighlightPainter
PrioritizableHighlightPainter.ZLayer| Modifier and Type | Field and Description |
|---|---|
protected Color |
fillColor
The fill color.
|
| Constructor and Description |
|---|
RectangleHighlightPainter(Color fillColor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PrioritizableHighlightPainter.ZLayer |
getZLayer()
Get the Z layer where this highlight painter paints all its highlights.
|
void |
paint(HighlightPainterInfo pi)
Renders the highlight.
|
protected void |
paintHighlight(Graphics g,
int x,
int y,
int width,
int height)
Paint highlight.
|
void |
setFillColor(Color fillColor) |
protected Color fillColor
public RectangleHighlightPainter(Color fillColor)
fillColor - The fill color.public PrioritizableHighlightPainter.ZLayer getZLayer()
PrioritizableHighlightPainterPrioritizableHighlightPainter.ZLayer.BASE_LAYER, PrioritizableHighlightPainter.ZLayer.MIDDLE_LAYER or PrioritizableHighlightPainter.ZLayer.TOP_LAYER.getZLayer in interface PrioritizableHighlightPainterPrioritizableHighlightPainter.getZLayer()public void paint(HighlightPainterInfo pi)
HighlightPainterpaint in interface HighlightPainterpi - Information used by highlightHighlightPainter.paint(ro.sync.ecss.extensions.api.highlights.HighlightPainterInfo)protected void paintHighlight(Graphics g, int x, int y, int width, int height)
g - The graphics used for paint.x - The x coordinate.y - The y coordinate.width - The rectangle width.height - The rectangle height.public void setFillColor(Color fillColor)
fillColor - The fill color to set.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.