public class

XYCoordinate

extends Object
implements Serializable Comparable<T>
java.lang.Object
   ↳ org.jfree.data.xy.XYCoordinate

Class Overview

Represents an (x, y) coordinate.

Summary

Public Constructors
XYCoordinate()
Creates a new coordinate for the point (0.0, 0.0).
XYCoordinate(double x, double y)
Creates a new coordinate for the point (x, y).
Public Methods
int compareTo(Object obj)
Compares this instance against an arbitrary object.
boolean equals(Object obj)
Tests this coordinate for equality with an arbitrary object.
double getX()
Returns the x-coordinate.
double getY()
Returns the y-coordinate.
int hashCode()
Returns a hash code for this instance.
String toString()
Returns a string representation of this instance, primarily for debugging purposes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public XYCoordinate ()

Creates a new coordinate for the point (0.0, 0.0).

public XYCoordinate (double x, double y)

Creates a new coordinate for the point (x, y).

Parameters
x the x-coordinate.
y the y-coordinate.

Public Methods

public int compareTo (Object obj)

Compares this instance against an arbitrary object.

Parameters
obj the object (null not permitted).
Returns
  • An integer indicating the relative order of the items.

public boolean equals (Object obj)

Tests this coordinate for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public double getX ()

Returns the x-coordinate.

Returns
  • The x-coordinate.

public double getY ()

Returns the y-coordinate.

Returns
  • The y-coordinate.

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public String toString ()

Returns a string representation of this instance, primarily for debugging purposes.

Returns
  • A string.