Class PolylineShape

java.lang.Object
com.lowagie.text.pdf.internal.PolylineShape
All Implemented Interfaces:
Shape

public class PolylineShape extends Object implements Shape
Class that defines a Polyline shape. This class was originally written by wil - amristar.com.au and integrated into iText by Bruno.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
    The total number of points.
    protected int[]
    All the X-values of the coordinates in the polyline.
    protected int[]
    All the Y-values of the coordinates in the polyline.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PolylineShape(int[] x, int[] y, int nPoints)
    Creates a PolylineShape.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(double x, double y)
    A polyline can't contain a point.
    boolean
    contains(double x, double y, double w, double h)
    A polyline can't contain a point.
    boolean
    A polyline can't contain a point.
    boolean
    A polyline can't contain a point.
    Returns the bounding box of this polyline.
    Returns the bounding box of this polyline.
    Returns an iteration object that defines the boundary of the polyline.
    getPathIterator(AffineTransform at, double flatness)
    There's no difference with getPathIterator(AffineTransform at); we just need this method to implement the Shape interface.
    boolean
    intersects(double x, double y, double w, double h)
    Checks if one of the lines in the polyline intersects with a given rectangle.
    boolean
    Checks if one of the lines in the polyline intersects with a given rectangle.
    private int[]
    Calculates the origin (X, Y) and the width and height of a rectangle that contains all the segments of the polyline.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait