new Insets(top, left, bottom, right)
Constructs an Insets object that is a representation of the borders of a container.
It specifies the space that a container must leave at each of its edges.
Parameters:
Name | Type | Description |
---|---|---|
top |
Number | The inset from the top. |
left |
Number | The inset from the left. |
bottom |
Number | The inset from the bottom. |
right |
Number | The inset from the right. |
- Source:
Members
bottom :Number
Indicates the the inset from the bottom.
Type:
- Number
- Source:
left :Number
Indicates the the inset from the left.
Type:
- Number
- Source:
right :Number
Indicates the the inset from the right.
Type:
- Number
- Source:
top :Number
Indicates the the inset from the top.
Type:
- Number
- Source:
Methods
clone() → {Insets}
Creates a new copy of this insets with identical property values.
- Source:
Returns:
A new insets instance with its property values the same as this one's.
- Type
- Insets
set(top, left, bottom, right)
Set top, left, bottom, and right to the specified values.
Parameters:
Name | Type | Description |
---|---|---|
top |
Number | The inset from the top. |
left |
Number | The inset from the left. |
bottom |
Number | The inset from the bottom. |
right |
Number | The inset from the right. |
- Source:
toString() → {String}
Returns a string representation of this object.
- Source:
Returns:
A string representation of this object.
- Type
- String