jpicedt.graphic.view.highlighter
Class PsCurveHighlighter
java.lang.Object
jpicedt.graphic.view.highlighter.DefaultHighlighter
jpicedt.graphic.view.highlighter.PsCurveHighlighter
- All Implemented Interfaces:
- Highlighter
public class PsCurveHighlighter
- extends DefaultHighlighter
a Highlighter for PsCurve. So far, it is based on AbstractCurveHighlighter, except where computing
tangents is concerned: we draw 2 tangents at the endpoints of an open pscurve, no tangent otherwise.
- Since:
- jPicEdt 1.4
- Version:
- $Id: PsCurveHighlighter.java,v 1.4 2013/03/27 06:54:11 vincentb1 Exp $
- Author:
- Sylvain Reynal
Method Summary |
PicPsCurve |
getElement()
returns the higlighted Element |
protected void |
syncShape(double scale)
Synchronizes the highlighter's tangents with the model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PsCurveHighlighter
public PsCurveHighlighter(PicPsCurve curve,
DefaultHighlighterFactory f)
- construct a new Highlighter for the given pscurve
getElement
public PicPsCurve getElement()
- Description copied from interface:
Highlighter
- returns the higlighted Element
- Specified by:
getElement
in interface Highlighter
- Overrides:
getElement
in class DefaultHighlighter
- Returns:
- the higlighted
Element
.
syncShape
protected void syncShape(double scale)
- Synchronizes the highlighter's tangents with the model.
- Overrides:
syncShape
in class DefaultHighlighter
- Parameters:
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