public class DefaultHighlighterFactory.SmoothPolygonHighlighter extends DefaultHighlighterFactory.DefaultHighlighter
bounds, element, pointIndexIterator, ptBuffer, rectBuffer, shape
Constructor and Description |
---|
SmoothPolygonHighlighter(PicSmoothPolygon curve)
construct a new Highlighter for the given smooth-polygon
|
Modifier and Type | Method and Description |
---|---|
protected void |
syncShape(double scale)
Synchronizes the highlighter's tangents with the model.
|
changedUpdate, getBounds, getControlPointsIterator, getElement, getHighlighterFactory, hitTest, paint, syncBounds
public SmoothPolygonHighlighter(PicSmoothPolygon curve)
protected void syncShape(double scale)
syncShape()
only, and is overriden so as to compute tangents based on polygon's points
rather than Bezier-points. Also compute the ``envelope'' polygon which is used for adding a new point
(hitTest method).syncShape
in class DefaultHighlighterFactory.DefaultHighlighter
scale
- 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