public class DefaultHighlighterFactory.EllipseHighlighter extends DefaultHighlighterFactory.DefaultHighlighter
bounds, element, pointIndexIterator, ptBuffer, rectBuffer, shape
Constructor and Description |
---|
EllipseHighlighter(PicEllipse ellipse)
construct a new Highlighter for the given ellipse
|
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 using the highlighter color if the given allocation intersects the bounds of this view, then paint the surrounding parallelogram. |
protected void |
syncShape(double scale)
Synchronize the "shape" variable with the model.
|
changedUpdate, getBounds, getControlPointsIterator, getElement, getHighlighterFactory, hitTest, syncBounds
public EllipseHighlighter(PicEllipse ellipse)
protected void syncShape(double scale)
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.public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)
paint
in interface Highlighter
paint
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 lines/rectangle/... appear with the
same length on the screen whatever the scale factor that's set to the graphic context.allocation
- current clippingSubmit a bug : syd@jpicedt.org