Class RectangleHighlightPainter
java.lang.Object
ro.sync.ecss.extensions.api.highlights.RectangleHighlightPainter
- All Implemented Interfaces:
HighlightPainter
,PrioritizableHighlightPainter
@API(type=EXTENDABLE,
src=PUBLIC)
public class RectangleHighlightPainter
extends Object
implements HighlightPainter, PrioritizableHighlightPainter
Fill a rectangle for the given highlight.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ro.sync.ecss.extensions.api.highlights.PrioritizableHighlightPainter
PrioritizableHighlightPainter.ZLayer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the Z layer where this highlight painter paints all its highlights.void
Renders the highlight.protected void
paintHighlight
(Graphics g, int x, int y, int width, int height) Paint highlight.void
setFillColor
(Color fillColor)
-
Field Details
-
fillColor
The fill color.
-
-
Constructor Details
-
RectangleHighlightPainter
Constructor.- Parameters:
fillColor
- The fill color.
-
-
Method Details
-
getZLayer
Description copied from interface:PrioritizableHighlightPainter
Get the Z layer where this highlight painter paints all its highlights. One ofPrioritizableHighlightPainter.ZLayer.BASE_LAYER
,PrioritizableHighlightPainter.ZLayer.MIDDLE_LAYER
orPrioritizableHighlightPainter.ZLayer.TOP_LAYER
.- Specified by:
getZLayer
in interfacePrioritizableHighlightPainter
- Returns:
- the Z layer where this highlight painter paints all its highlights.
- See Also:
-
paint
Description copied from interface:HighlightPainter
Renders the highlight.- Specified by:
paint
in interfaceHighlightPainter
- Parameters:
pi
- Information used by highlight- See Also:
-
paintHighlight
Paint highlight.- Parameters:
g
- The graphics used for paint.x
- The x coordinate.y
- The y coordinate.width
- The rectangle width.height
- The rectangle height.
-
setFillColor
- Parameters:
fillColor
- The fill color to set.
-