# Class Insets

java.lang.Object
com.codename1.ui.layouts.Insets

public class Insets extends java.lang.Object
Port of Insets from Harmony for the use of the GridBag code

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `int`
  `bottom`
  `int`
  `left`
  `int`
  `right`
  `int`
  `top`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Insets(int top, int left, int bottom, int right)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `java.lang.Object`
  `clone()`
  `boolean`
  `equals(java.lang.Object o)`
  `int`
  `hashCode()`
  `void`
  `set(int top, int left, int bottom, int right)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### top

    public int top

  - ### left

    public int left

  - ### bottom

    public int bottom

  - ### right

    public int right

- ## Constructor Details

  - ### Insets

    public Insets(int top, int left, int bottom, int right)

- ## Method Details

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `java.lang.Object`

  - ### clone

    public java.lang.Object clone()
    Overrides:
      `clone` in class `java.lang.Object`

  - ### equals

    public boolean equals(java.lang.Object o)
    Overrides:
      `equals` in class `java.lang.Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `java.lang.Object`

  - ### set

    public void set(int top, int left, int bottom, int right)