Class DefaultOperatorConverter
- java.lang.Object
-
- com.itextpdf.svg.renderers.path.impl.DefaultOperatorConverter
-
- All Implemented Interfaces:
IOperatorConverter
class DefaultOperatorConverter extends java.lang.Object implements IOperatorConverter
Default implementation ofIOperatorConverter
used by the regular (not-smooth) curves and other path commands. It will convert all operators from relative to absolute coordinates.
-
-
Constructor Summary
Constructors Constructor Description DefaultOperatorConverter()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String[] makeCoordinatesAbsolute(java.lang.String[] relativeCoordinates, double[] initialPoint)
Description copied from interface:IOperatorConverter
Convert an array of relative coordinates to an array with the same size containing absolute coordinates.- Specified by:
makeCoordinatesAbsolute
in interfaceIOperatorConverter
- Parameters:
relativeCoordinates
- the initial set of coordinatesinitialPoint
- 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
-
-