Class DefaultViewFactory.AbstractCurveView

    • Field Detail

      • arrowStroke

        protected java.awt.Stroke arrowStroke
      • arrow1

        protected Arrow arrow1
      • arrow2

        protected Arrow arrow2
      • arrow1Loc

        protected PicPoint arrow1Loc
      • arrow2Loc

        protected PicPoint arrow2Loc
      • hasSegments

        protected boolean hasSegments
      • dotShape

        protected java.awt.Shape dotShape
      • isDotFilled

        protected boolean isDotFilled
      • dotStroke

        protected java.awt.Stroke dotStroke
      • dotFillPaint

        protected java.awt.Paint dotFillPaint
      • dotDrawPaint

        protected java.awt.Paint dotDrawPaint
    • Constructor Detail

      • AbstractCurveView

        public AbstractCurveView​(AbstractCurve curve)
        construct a new View for the given curve
    • Method Detail

      • syncShape

        protected void syncShape()
        Synchronize the "shape" variable with the model. To reduce the burden for subclasses, this method calls syncTangents after having updated the shape field. It is up to subclasses to adapt their behaviour according to the underlying model, if only computing tangents is different.
        Overrides:
        syncShape in class DefaultViewFactory.LeafElementView
      • syncDotShape

        protected void syncDotShape()
        Computes the Shape (centered at 0,0) used for drawing polygon's dots, built from the given attributes ; set it to null if POLYDOTS_STYLE==NONE or if dotting is not supported by the factory.

        This method gets invoked by syncAttributes as part of the delegation mechanism, when style of dots has changed.

      • paint

        public void paint​(java.awt.Graphics2D g,
                          java.awt.geom.Rectangle2D a)
        Render the View to the given graphic context.
        Specified by:
        paint in interface View
        Overrides:
        paint in class DefaultViewFactory.LeafElementView
        a - the current graphic clip