public class DefaultHighlighterFactory.TextHighlighter extends DefaultHighlighterFactory.DefaultHighlighter
bounds, element, pointIndexIterator, ptBuffer, rectBuffer, shape
Constructor and Description |
---|
DefaultHighlighterFactory.TextHighlighter(TextEditable text)
construct a new Highlighter for the given TextEditable
|
Modifier and Type | Method and Description |
---|---|
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
Render the Highlighter to the given graphic context.
Current implementation paints end-points by delegating to a DefaultPointIndexIterator ,
using the highlighter color if the given
allocation intersects the bounds of this view,
then iterates over the shapes array, and paints any non-null element. |
changedUpdate, getBounds, getControlPointsIterator, getElement, getHighlighterFactory, hitTest, syncBounds, syncShape
public DefaultHighlighterFactory.TextHighlighter(TextEditable text)
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)
DefaultHighlighterFactory.DefaultHighlighter
DefaultPointIndexIterator
,
using the highlighter color if the given
allocation intersects the bounds of this view,
then iterates over the shapes
array, and paints any non-null element.paint
in interface Highlighter
paint
in class DefaultHighlighterFactory.DefaultHighlighter
allocation
- current clippingscale
- The current scale factor from-model-to-screen for the Graphics2D context ;
this may be used to scale down line thickess, etc... so that e.g. barbells appear with the
same size on the screen whatever the scale factor being set to the graphic context.Submit a bug : syd@jpicedt.org