Package org.fife.ui.rtextarea
Class RTextAreaHighlighter.LayeredHighlightInfoImpl
java.lang.Object
org.fife.ui.rtextarea.RTextAreaHighlighter.HighlightInfoImpl
org.fife.ui.rtextarea.RTextAreaHighlighter.LayeredHighlightInfoImpl
- All Implemented Interfaces:
Highlighter.Highlight
,RTextAreaHighlighter.HighlightInfo
,RTextAreaHighlighter.LayeredHighlightInfo
- Direct Known Subclasses:
RSyntaxTextAreaHighlighter.SyntaxLayeredHighlightInfoImpl
- Enclosing class:
RTextAreaHighlighter
protected static class RTextAreaHighlighter.LayeredHighlightInfoImpl
extends RTextAreaHighlighter.HighlightInfoImpl
implements RTextAreaHighlighter.LayeredHighlightInfo
A straightforward implementation of
HighlightInfo
for
painting layered highlights.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
paintLayeredHighlights
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) Restricts the region based on the receivers offsets and messages the painter to paint the region.(package private) void
Methods inherited from class org.fife.ui.rtextarea.RTextAreaHighlighter.HighlightInfoImpl
getColor, getEndOffset, getPainter, getStartOffset, setEndOffset, setPainter, setStartOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.text.Highlighter.Highlight
getEndOffset, getPainter, getStartOffset
-
Field Details
-
x
public int x -
y
public int y -
width
public int width -
height
public int height
-
-
Constructor Details
-
LayeredHighlightInfoImpl
protected LayeredHighlightInfoImpl()
-
-
Method Details
-
union
-
paintLayeredHighlights
public void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) Description copied from interface:RTextAreaHighlighter.LayeredHighlightInfo
Restricts the region based on the receivers offsets and messages the painter to paint the region.- Specified by:
paintLayeredHighlights
in interfaceRTextAreaHighlighter.LayeredHighlightInfo
- Parameters:
g
- The graphics context to use.p0
- The start offset.p1
- The end offset.viewBounds
- T?he view bounds.editor
- The text component that contains the highlights.view
- The view being rendered.
-