Class HorizontalLineTo

  • All Implemented Interfaces:
    IPathShape

    public class HorizontalLineTo
    extends LineTo
    Implements lineTo(H) attribute of SVG's path element
    • Constructor Detail

      • HorizontalLineTo

        public HorizontalLineTo()
        Creates an absolute Horizontal LineTo.
      • HorizontalLineTo

        public HorizontalLineTo​(boolean relative)
        Creates a Horizontal LineTo. Set argument to true to create a relative HorizontalLineTo.
        Parameters:
        relative - whether this is a relative HorizontalLineTo or not
    • Method Detail

      • setCoordinates

        public void setCoordinates​(java.lang.String[] inputCoordinates,
                                   Point startPoint)
        Description copied from interface: IPathShape
        This method sets the coordinates for the path painting operator and does internal preprocessing, if necessary
        Specified by:
        setCoordinates in interface IPathShape
        Overrides:
        setCoordinates in class LineTo
        Parameters:
        inputCoordinates - an array containing point values for path coordinates
        startPoint - the ending point of the previous operator, or, in broader terms, the point that the coordinates should be absolutized against, for relative operators