Package com.storedobject.svg
Interface At<T>
- Type Parameters:
T- The type of the implementing class, enabling method chaining.
public interface At<T>
Represents a generic type that supports setting and retrieving 2D positional coordinates.
This interface provides methods to manage X and Y coordinates and supports chaining of operations.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault Tat(double x, double y) Set the position.default TSet the position.default PointgetAt()Get the position.doublegetX()Retrieves the X coordinate.doublegetY()Retrieves the Y coordinate.x(double x) Set the X coordinate.y(double y) Set the Y coordinate.
-
Method Details
-
getX
double getX()Retrieves the X coordinate.- Returns:
- The X coordinate.
-
getY
double getY()Retrieves the Y coordinate.- Returns:
- The Y coordinate.
-
at
-
at
Set the position.- Parameters:
x- X coordinate.y- Y coordinate.- Returns:
- Self.
-
x
-
y
-
getAt
-