Skip to main content

PathLine Class

Defines a straight line (a path segment).

Declaration

public final class PathLine extends Struct<PathLine> implements IPathSegment, IEquatable<PathLine>

Implements

com.devexpress.system.IEquatable<com.devexpress.docs.presentation.PathLine>

Inherited Members

com.devexpress.system.Struct.equals(java.lang.Object)
com.devexpress.system.Struct.getHashCode()
com.devexpress.system.Struct.hashCode()
java.lang.Object.clone()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.Struct
PathLine

Constructors

PathLine() Constructor

Initializes a new instance of the PathLine class.

Declaration

public PathLine()

PathLine(AdjustCoordinate x, AdjustCoordinate y) Constructor

Initializes a new instance of the PathLine class with specified settings.

Declaration

public PathLine(AdjustCoordinate x, AdjustCoordinate y)

Parameters

Name Type Description
x AdjustCoordinate

The X-coordinate.

y AdjustCoordinate

The Y-coordinate.

PathLine(float x, float y) Constructor

Initializes a new instance of the PathLine class with specified settings.

Declaration

public PathLine(float x, float y)

Parameters

Name Type Description
x float

The X-coordinate.

y float

The Y-coordinate.

Methods

equals(Object obj) Method

Determines whether the specified object is equal to the current PathLine instance.

Declaration

public boolean equals(Object obj)

Parameters

Name Type Description
obj Object

The object to compare with the current PathLine instance.

Returns

Type Description
boolean

true if the specified object is equal to the current PathLine instance; otherwise, false.

equals(PathLine other) Method

Determines whether the specified PathLine is equal to the current PathLine.

Declaration

public boolean equals(PathLine other)

Parameters

Name Type Description
other PathLine

The PathLine to compare with the current PathLine.

Returns

Type Description
boolean

true if the specified PathLine is equal to the current PathLine; otherwise, false.

getX() Method

Returns the X-coordinate of the path line.

Declaration

public AdjustCoordinate getX()

Returns

Type Description
AdjustCoordinate

The X-coordinate.

getY() Method

Returns the Y-coordinate of the path line.

Declaration

public AdjustCoordinate getY()

Returns

Type Description
AdjustCoordinate

The Y-coordinate.

hashCode() Method

Returns a hash code for this PathLine object.

Declaration

public int hashCode()

Returns

Type Description
int

The identification number.