Class mxCurveShape

    • Field Detail

      • curve

        protected mxCurve curve
        Cache of the points between which drawing straight lines views as a curve
    • Constructor Detail

      • mxCurveShape

        public mxCurveShape()
      • mxCurveShape

        public mxCurveShape​(mxCurve curve)
    • Method Detail

      • getCurve

        public mxCurve getCurve()
      • validateCurve

        public void validateCurve​(java.util.List<mxPoint> points,
                                  double scale,
                                  java.util.Map<java.lang.String,​java.lang.Object> style)
        Forces underlying curve to a valid state
        Parameters:
        points -
      • getMarkerVector

        protected mxLine getMarkerVector​(java.util.List<mxPoint> points,
                                         boolean source,
                                         double markerSize)
        Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points
        Overrides:
        getMarkerVector in class mxConnectorShape
        Parameters:
        points - the guide points of the connector
        source - whether the marker is at the source end
        markerSize - the scaled maximum length of the marker
        Returns:
        a line describing the vector the marker should be drawn along