# Class Insets

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

public class Insets extends 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
  `Object`
  `clone()`
  `boolean`
  `equals(Object o)`
  `int`
  `hashCode()`
  `void`
  `set(int top, int left, int bottom, int right)`
  `String`
  `toString()`

  ### Methods inherited from class 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 `Object`

  - ### clone

    public Object clone()
    Overrides:
      `clone` in class `Object`

  - ### equals

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

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### set

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