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.voidRenders the highlight.protected voidpaintHighlight(Graphics g, int x, int y, int width, int height) Paint highlight.voidsetFillColor(Color fillColor)
-
Field Details
-
fillColor
The fill color.
-
-
Constructor Details
-
RectangleHighlightPainter
Constructor.- Parameters:
fillColor- The fill color.
-
-
Method Details
-
getZLayer
Description copied from interface:PrioritizableHighlightPainterGet the Z layer where this highlight painter paints all its highlights. One ofPrioritizableHighlightPainter.ZLayer.BASE_LAYER,PrioritizableHighlightPainter.ZLayer.MIDDLE_LAYERorPrioritizableHighlightPainter.ZLayer.TOP_LAYER.- Specified by:
getZLayerin interfacePrioritizableHighlightPainter- Returns:
- the Z layer where this highlight painter paints all its highlights.
- See Also:
-
paint
Description copied from interface:HighlightPainterRenders the highlight.- Specified by:
paintin 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.
-