An Insets object is a representation of the borders of a container. It specifies the space that a container must leave at each of its edges. The space can be a border, a blank space, or a title.
An Insets object is a representation of the borders of a container. It specifies the space that a container must leave at each of its edges. The space can be a border, a blank space, or a title.
(->insets top left bottom right)
Constructor.
Creates and initializes a new Insets object with the specified top, left, bottom, and right insets.
top - the inset from the top. - int
left - the inset from the left. - int
bottom - the inset from the bottom. - int
right - the inset from the right. - int
Constructor. Creates and initializes a new Insets object with the specified top, left, bottom, and right insets. top - the inset from the top. - `int` left - the inset from the left. - `int` bottom - the inset from the bottom. - `int` right - the inset from the right. - `int`
(bottom this)
Instance Field.
The inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom.
type: int
Instance Field. The inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom. type: int
(clone this)
Create a copy of this object.
returns: a copy of this Insets object. - java.lang.Object
Create a copy of this object. returns: a copy of this Insets object. - `java.lang.Object`
(equals this obj)
Checks whether two insets objects are equal. Two instances of Insets are equal if the four integer values of the fields top, left, bottom, and right are all equal.
obj - the reference object with which to compare. - java.lang.Object
returns: true if the two insets are equal;
otherwise false. - boolean
Checks whether two insets objects are equal. Two instances of Insets are equal if the four integer values of the fields top, left, bottom, and right are all equal. obj - the reference object with which to compare. - `java.lang.Object` returns: true if the two insets are equal; otherwise false. - `boolean`
(hash-code this)
Returns the hash code for this Insets.
returns: a hash code for this Insets. - int
Returns the hash code for this Insets. returns: a hash code for this Insets. - `int`
(left this)
Instance Field.
The inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge.
type: int
Instance Field. The inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge. type: int
(right this)
Instance Field.
The inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge.
type: int
Instance Field. The inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge. type: int
(set this top left bottom right)
Set top, left, bottom, and right to the specified values
top - the inset from the top. - int
left - the inset from the left. - int
bottom - the inset from the bottom. - int
right - the inset from the right. - int
Set top, left, bottom, and right to the specified values top - the inset from the top. - `int` left - the inset from the left. - `int` bottom - the inset from the bottom. - `int` right - the inset from the right. - `int`
(to-string this)
Returns a string representation of this Insets object. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.
returns: a string representation of this Insets object. - java.lang.String
Returns a string representation of this Insets object. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null. returns: a string representation of this Insets object. - `java.lang.String`
(top this)
Instance Field.
The inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top.
type: int
Instance Field. The inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top. type: int
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close