PathPdfObject.PathInput


public final class PathPdfObject.PathInput


Data model for a single path operation and coordinate in a PathPdfObject.

Summary

Constants

static final int

Draws a line from the previous point to the given coordinate.

static final int

Starts a new sub-path from the given coordinate.

Public constructors

PathInput(float x, float y, int command)

Public methods

boolean
equals(Object other)
final int

The type of path operation (e.g., MOVE_TO or LINE_TO).

final float

The x-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.

final float

The y-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.

int

Constants

LINE_TO

public static final int LINE_TO

Draws a line from the previous point to the given coordinate.

MOVE_TO

public static final int MOVE_TO

Starts a new sub-path from the given coordinate.

Public constructors

PathInput

Added in 1.0.0-beta01
public PathInput(float x, float y, int command)

Public methods

equals

public boolean equals(Object other)

getCommand

Added in 1.0.0-beta01
public final int getCommand()

The type of path operation (e.g., MOVE_TO or LINE_TO).

getX

Added in 1.0.0-beta01
public final float getX()

The x-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.

getY

Added in 1.0.0-beta01
public final float getY()

The y-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.

hashCode

public int hashCode()