public class PathPointBuilder extends Object implements IEquatable<PathPointBuilder>
PathPoint
objects.Constructor and Description |
---|
PathPointBuilder()
Constructs a default PathPointBuilder object.
|
PathPointBuilder(Cartesian position,
JulianDate date)
Initializes a
PathPointBuilder with the given position and date. |
PathPointBuilder(Cartesian position,
JulianDate date,
Color color)
Initializes a
PathPointBuilder with the given position, date, and color. |
PathPointBuilder(Cartesian position,
JulianDate date,
Color color,
float translucency)
Initializes a
PathPointBuilder with the given position, date, color, and translucency. |
PathPointBuilder(Cartesian position,
JulianDate date,
Color color,
float translucency,
Color outlineColor)
Initializes a
PathPointBuilder with the given position, date, color, translucency,
and outline color. |
PathPointBuilder(Cartesian position,
JulianDate date,
Color color,
float translucency,
Color outlineColor,
float outlineTranslucency)
Initializes a
PathPointBuilder with the given cartesian position, date, color,
translucency, outline color, and outline translucency. |
PathPointBuilder(CentralBody centralBody,
Cartographic position,
JulianDate date)
Initializes a
PathPointBuilder with the given position and date. |
PathPointBuilder(CentralBody centralBody,
Cartographic position,
JulianDate date,
Color color)
Initializes a
PathPointBuilder with the given position, date, and color. |
PathPointBuilder(CentralBody centralBody,
Cartographic position,
JulianDate date,
Color color,
float translucency)
Initializes a
PathPointBuilder with the given position, date, color, and translucency. |
PathPointBuilder(CentralBody centralBody,
Cartographic position,
JulianDate date,
Color color,
float translucency,
Color outlineColor)
Initializes a
PathPointBuilder with the given position, date, color, translucency,
and outline color. |
PathPointBuilder(CentralBody centralBody,
Cartographic position,
JulianDate date,
Color color,
float translucency,
Color outlineColor,
float outlineTranslucency)
Initializes a
PathPointBuilder with the given cartographic 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(PathPointBuilder left,
PathPointBuilder right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(PathPointBuilder 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(PathPointBuilder left,
PathPointBuilder right)
Returns
true if the two instances are not exactly equal. |
void |
setColor(Color value)
Sets the color associated with this point.
|
void |
setDate(JulianDate value)
Sets the date associated with this point.
|
void |
setOutlineColor(Color value)
Sets the outline color associated with this point.
|
void |
setOutlineTranslucency(float value)
Sets the outline translucency associated with this point.
|
void |
setPosition(Cartesian value)
Sets the position associated with this point.
|
void |
setPositionCartographic(CentralBody centralBody,
Cartographic position)
Sets the position of the point given in cartographic coordinates defined on a central body.
|
void |
setTranslucency(float value)
Sets the translucency associated with this point.
|
PathPoint |
toPathPoint()
Returns an immutable
PathPoint
object built from this object's attributes. |
String |
toString()
Returns the string representation of the value of this instance.
|
public PathPointBuilder()
The point's position is initialized to Zero
(get
),
its date is initialized to MinValue
(get
),
its color is initialized to white, its translucency is initialized to zero, its outline color is initialized to black,
and its outline translucency is initialized to 0.
public PathPointBuilder(@Nonnull Cartesian position, @Nonnull JulianDate date)
PathPointBuilder
with the given position and date.
The point's color is initialized to white, its translucency is initialized to zero, its outline color is initialized to black, and its outline translucency is initialized to 0.
position
- The point's position.date
- The point's date.public PathPointBuilder(@Nonnull CentralBody centralBody, @Nonnull Cartographic position, @Nonnull JulianDate date)
PathPointBuilder
with the given position and date.
The point's color is initialized to white, its translucency is initialized to zero, its outline color is initialized to black, and its outline translucency is initialized to 0.
centralBody
- The central body the position is defined on.position
- The point's position.date
- The point's date.ArgumentNullException
- Thrown when centralBody
is null
.public PathPointBuilder(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color)
PathPointBuilder
with the given position, date, and color.
The point's translucency is initialized to zero, its outline color is initialized to black, and its outline translucency is initialized to 0.
position
- The point's position.date
- The point's date.color
- The point's color.public PathPointBuilder(@Nonnull CentralBody centralBody, @Nonnull Cartographic position, @Nonnull JulianDate date, @Nonnull Color color)
PathPointBuilder
with the given position, date, and color.
The point's translucency is initialized to zero, its outline color is initialized to black, and its outline translucency is initialized to 0.
centralBody
- The central body the position is defined on.position
- The point's position.date
- The point's date.color
- The point's color.ArgumentNullException
- Thrown when centralBody
is null
.public PathPointBuilder(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color, float translucency)
PathPointBuilder
with the given position, date, color, and translucency.
The point's outline color is initialized to black, and its outline translucency is initialized to 0.
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 PathPointBuilder(@Nonnull CentralBody centralBody, @Nonnull Cartographic position, @Nonnull JulianDate date, @Nonnull Color color, float translucency)
PathPointBuilder
with the given position, date, color, and translucency.
The point's outline color is initialized to black, and its outline translucency is initialized to 0.
centralBody
- The central body the position is defined on.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
.ArgumentNullException
- Thrown when centralBody
is null
.public PathPointBuilder(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color, float translucency, @Nonnull Color outlineColor)
PathPointBuilder
with the given position, date, color, translucency,
and outline color.
The point's outline translucency is initialized to 0.
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 PathPointBuilder(@Nonnull CentralBody centralBody, @Nonnull Cartographic position, @Nonnull JulianDate date, @Nonnull Color color, float translucency, @Nonnull Color outlineColor)
PathPointBuilder
with the given position, date, color, translucency,
and outline color.
The point's outline translucency is initialized to 0.
centralBody
- The central body the position is defined on.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
.ArgumentNullException
- Thrown when centralBody
is null
.public PathPointBuilder(@Nonnull Cartesian position, @Nonnull JulianDate date, @Nonnull Color color, float translucency, @Nonnull Color outlineColor, float outlineTranslucency)
PathPointBuilder
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
.public PathPointBuilder(@Nonnull CentralBody centralBody, @Nonnull Cartographic position, @Nonnull JulianDate date, @Nonnull Color color, float translucency, @Nonnull Color outlineColor, float outlineTranslucency)
PathPointBuilder
with the given cartographic position, date, color,
translucency, outline color, and outline translucency.centralBody
- The central body the position is defined on.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
.ArgumentNullException
- Thrown when centralBody
is null
.@Nonnull public final Cartesian getPosition()
public final void setPosition(@Nonnull Cartesian value)
public final void setPositionCartographic(@Nonnull CentralBody centralBody, @Nonnull Cartographic position)
centralBody
- The central body the position is defined on.position
- The point's position.ArgumentNullException
- Thrown when centralBody
is null
.@Nonnull public final JulianDate getDate()
public final void setDate(@Nonnull JulianDate value)
public final void setColor(@Nonnull Color value)
public final float getTranslucency()
public final void setTranslucency(float value)
@Nonnull public final Color getOutlineColor()
public final void setOutlineColor(@Nonnull Color value)
public final float getOutlineTranslucency()
public final void setOutlineTranslucency(float value)
@Nonnull public final PathPoint toPathPoint()
PathPoint
object built from this object's attributes.PathPoint
object built from this objects attributes.public String toString()
public final boolean equalsType(PathPointBuilder other)
equalsType
in interface IEquatable<PathPointBuilder>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.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 int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public static boolean equals(PathPointBuilder left, PathPointBuilder 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(PathPointBuilder left, PathPointBuilder 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
.