PathPdfObject.PathInput


public final class PathPdfObject.PathInput


Data model for a single 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 of the point.

final float

The y-coordinate of the point.

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-alpha19
public PathInput(float x, float y, int command)

Public methods

equals

public boolean equals(Object other)

getCommand

Added in 1.0.0-alpha19
public final int getCommand()

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

getX

Added in 1.0.0-alpha19
public final float getX()

The x-coordinate of the point.

getY

Added in 1.0.0-alpha19
public final float getY()

The y-coordinate of the point.

hashCode

public int hashCode()