@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()
PrioritizableHighlightPainter
PrioritizableHighlightPainter.ZLayer.BASE_LAYER
, PrioritizableHighlightPainter.ZLayer.MIDDLE_LAYER
or PrioritizableHighlightPainter.ZLayer.TOP_LAYER
.getZLayer
in interface PrioritizableHighlightPainter
PrioritizableHighlightPainter.getZLayer()
public void paint(HighlightPainterInfo pi)
HighlightPainter
paint
in interface HighlightPainter
pi
- 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.