public class PathPoint extends Object implements IEquatable<PathPoint>
Constructor and Description |
---|
PathPoint(Cartesian position,
JulianDate date)
Initializes a
PathPoint with the given position and date. |
PathPoint(Cartesian position,
JulianDate date,
Color color)
Initializes a
PathPoint with the given position, date, and color. |
PathPoint(Cartesian position,
JulianDate date,
Color color,
float translucency)
Initializes a
PathPoint with the given position, date, color, and translucency. |
PathPoint(Cartesian position,
JulianDate date,
Color color,
float translucency,
Color outlineColor)
Initializes a
PathPoint with the given position, date, color, translucency,
and outline color. |
PathPoint(Cartesian position,
JulianDate date,
Color color,
float translucency,
Color outlineColor,
float outlineTranslucency)
Initializes a
PathPoint with the given cartesian position, date, color,
translucency, outline color, and outline translucency. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(PathPoint left,
PathPoint right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(PathPoint other)
Indicates whether another instance of this type is exactly equal to this instance.
|
Color |
getColor()
Gets the color associated with this point.
|
JulianDate |
getDate()
Gets the date associated with this point.
|
Color |
getOutlineColor()
Gets the outline color associated with this point.
|
float |
getOutlineTranslucency()
Gets the outline translucency associated with this point.
|
Cartesian |
getPosition()
Gets the position associated with this point.
|
float |
getTranslucency()
Gets the translucency associated with this point.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(PathPoint left,
PathPoint right)
Returns
true if the two instances are not exactly equal. |
String |
toString()
Returns the string representation of the value of this instance.
|
public PathPoint(@Nonnull Cartesian position, @Nonnull JulianDate date)
PathPoint
with the given position and date.
The point's color is initialized to white and its translucency is initialized to zero.
position
- The point's position.date
- The point's date.public PathPoint(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color)
PathPoint
with the given position, date, and color.
The point's translucency is initialized to zero.
position
- The point's position.date
- The point's date.color
- The point's color.public PathPoint(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color, float translucency)
PathPoint
with the given position, date, color, and translucency.position
- The point's position.date
- The point's date.color
- The point's color.translucency
- The point's translucency.ArgumentOutOfRangeException
- Thrown when translucency
is less than 0
or greater than 1
.public PathPoint(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color, float translucency, @Nonnull Color outlineColor)
PathPoint
with the given position, date, color, translucency,
and outline color.position
- The point's position.date
- The point's date.color
- The point's color.translucency
- The point's translucency.outlineColor
- The point's outline color.ArgumentOutOfRangeException
- Thrown when translucency
is less than 0
or greater than 1
.public PathPoint(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color, float translucency, @Nonnull Color outlineColor, float outlineTranslucency)
PathPoint
with the given cartesian position, date, color,
translucency, outline color, and outline translucency.position
- The point's position.date
- The point's date.color
- The point's color.translucency
- The point's translucency.outlineColor
- The point's outline color.outlineTranslucency
- The point's outline translucency.ArgumentOutOfRangeException
- Thrown when translucency
or outlineTranslucency
is less than 0
or greater than 1
.@Nonnull public final Cartesian getPosition()
@Nonnull public final JulianDate getDate()
public final float getTranslucency()
@Nonnull public final Color getOutlineColor()
public final float getOutlineTranslucency()
public String toString()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to this instance.true
if obj
is an instance of this type and represents the same value as this instance; otherwise false
.Object.hashCode()
,
HashMap
public final boolean equalsType(PathPoint other)
equalsType
in interface IEquatable<PathPoint>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public static boolean equals(PathPoint left, PathPoint right)
true
if the two instances are exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
represents the same value as right
; otherwise false
.public static boolean notEquals(PathPoint left, PathPoint right)
true
if the two instances are not exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
does not represent the same value as right
; otherwise false
.