Corners
Leave feedback
On this page
Inheritance: java.lang.Object
public class Corners
Represents corners of a square graphical object.
| Constructor | Description |
|---|---|
| Corners() | Initializes a new instance of Corners class using zero values. |
| Corners(double all) | Initializes a new instance of the Corners class using the supplied value for all corners. |
| Corners(double topLeft, double topRight, double bottomLeft, double bottomRight) | Initializes a new instance of the Corners class using the supplied values. |
| Field | Description |
|---|---|
| Empty | Provides a Corners object with no data. |
| Method | Description |
|---|---|
| getAll() | Gets or sets the value for all corners. |
| setAll(double value) | Gets or sets the value for all corners. |
| getTopLeft() | Gets or sets top left corner value. |
| setTopLeft(double value) | Gets or sets top left corner value. |
| getTopRight() | Gets or sets top right corner value. |
| setTopRight(double value) | Gets or sets top right corner value. |
| getBottomLeft() | Gets or sets bottom left corner value. |
| setBottomLeft(double value) | Gets or sets bottom left corner value. |
| getBottomRight() | Gets or sets bottom right corner value. |
| setBottomRight(double value) | Gets or sets bottom right corner value. |
| deepClone() | Gets a copy of this object. |
| equals(Object obj) | Override equals method |
| hashCode() | Overrides obtaining unique hash code value |
| toString() | Overrides conversion to string. |
public Corners()
Initializes a new instance of Corners class using zero values.
public Corners(double all)
Initializes a new instance of the Corners class using the supplied value for all corners.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| all | double | The value to be used for padding for all corners. |
public Corners(double topLeft, double topRight, double bottomLeft, double bottomRight)
Initializes a new instance of the Corners class using the supplied values.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| topLeft | double | Top left corner value. |
| topRight | double | Top right corner value. |
| bottomLeft | double | Bottom left corner value. |
| bottomRight | double | Bottom right corner value. |
public static final Corners Empty
Provides a Corners object with no data.
public final double getAll()
Gets or sets the value for all corners. Changing of any partial corner like top right makes this property equal 0;
Returns: double
public final void setAll(double value)
Gets or sets the value for all corners. Changing of any partial corner like top right makes this property equal 0;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double |
public final double getTopLeft()
Gets or sets top left corner value.
Returns: double
public final void setTopLeft(double value)
Gets or sets top left corner value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double |
public final double getTopRight()
Gets or sets top right corner value.
Returns: double
public final void setTopRight(double value)
Gets or sets top right corner value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double |
public final double getBottomLeft()
Gets or sets bottom left corner value.
Returns: double
public final void setBottomLeft(double value)
Gets or sets bottom left corner value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double |
public final double getBottomRight()
Gets or sets bottom right corner value.
Returns: double
public final void setBottomRight(double value)
Gets or sets bottom right corner value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double |
public final Object deepClone()
Gets a copy of this object.
Returns: java.lang.Object
public boolean equals(Object obj)
Override equals method
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | Instance to compare with. |
Returns: boolean - Returns true if properties of objects are equal.
public int hashCode()
Overrides obtaining unique hash code value
Returns: int -
public String toString()
Overrides conversion to string.
Returns: java.lang.String -
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.