Skip to main content
Version: API v2 Preview

Line

Kind: class
Module/package: com.pdfdancer.common.model.path
SDK: com.pdfdancer.client:pdfdancer-client-java 2.0.0

Represents a straight line path segment between two points. This class defines a linear path element connecting two coordinate points, commonly used in vector graphics and geometric shapes within PDF documents.

Declaration

public class com.pdfdancer.common.model.path.Line extends com.pdfdancer.common.model.path.PathSegment

Members

constructor

public com.pdfdancer.common.model.path.Line()

Default constructor for deserialization.

constructor

public com.pdfdancer.common.model.path.Line(com.pdfdancer.common.model.Point, com.pdfdancer.common.model.Point)

Creates a line segment between the specified points.

getP0

public com.pdfdancer.common.model.Point getP0()

Returns the starting point of this line segment.

getP1

public com.pdfdancer.common.model.Point getP1()

Returns the ending point of this line segment.

setP0

public void setP0(com.pdfdancer.common.model.Point)

setP1

public void setP1(com.pdfdancer.common.model.Point)

View source at 9c04036fe114