java.lang.Object
com.vaadin.featurepack.desktop.geometry.Insets
All Implemented Interfaces:
Serializable, Cloneable

public class Insets extends Object implements Cloneable, Serializable
A class that represents the external padding of a container. It specifies how much extra space should be left around the container.
Author:
Vaadin Ltd
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The inset from the bottom.
    int
    The inset from the left.
    int
    The inset from the right.
    int
    The inset from the top.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Insets(int top, int left, int bottom, int right)
    Creates a new Insets object with the specified top, left, bottom, and right insets.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    int
     
    void
    set(int top, int left, int bottom, int right)
    Sets the insets to the specified values.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • top

      public int top
      The inset from the top.
    • left

      public int left
      The inset from the left.
    • bottom

      public int bottom
      The inset from the bottom.
  • Constructor Details

    • Insets

      public Insets(int top, int left, int bottom, int right)
      Creates a new Insets object with the specified top, left, bottom, and right insets.
      Parameters:
      top - the inset from the top
      left - the inset from the left
      bottom - the inset from the bottom
      right - the inset from the right
  • Method Details

    • set

      public void set(int top, int left, int bottom, int right)
      Sets the insets to the specified values.
      Parameters:
      top - the inset from the top
      left - the inset from the left
      bottom - the inset from the bottom
      right - the inset from the right
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object