Interface IOperatorConverter

  • All Known Implementing Classes:
    DefaultOperatorConverter, SmoothOperatorConverter

    public interface IOperatorConverter
    A locally used strategy for converting relative coordinates to absolute coordinates (in the current SVG coordinate space). Its implementation differs between Smooth (Shorthand) Bézier curves and all other path commands.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String[] makeCoordinatesAbsolute​(java.lang.String[] relativeCoordinates, double[] initialPoint)
      Convert an array of relative coordinates to an array with the same size containing absolute coordinates.
    • Method Detail

      • makeCoordinatesAbsolute

        java.lang.String[] makeCoordinatesAbsolute​(java.lang.String[] relativeCoordinates,
                                                   double[] initialPoint)
        Convert an array of relative coordinates to an array with the same size containing absolute coordinates.
        Parameters:
        relativeCoordinates - the initial set of coordinates
        initialPoint - an array representing the point relative to which the relativeCoordinates are defined
        Returns:
        a String array of absolute coordinates, with the same length as the input array