Class JBInsets

java.lang.Object
java.awt.Insets
com.intellij.util.ui.JBInsets
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
JBInsets.JBInsetsUIResource

public class JBInsets extends Insets
See Also:
  • Constructor Details

    • JBInsets

      public JBInsets(int top, int left, int bottom, int right)
      Creates and initializes 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

    • width

      public int width()
    • height

      public int height()
    • create

      public static JBInsets create(@NotNull Insets insets)
    • asUIResource

      public JBInsets.JBInsetsUIResource asUIResource()
    • addTo

      public static void addTo(@NotNull Dimension dimension, Insets insets)
      Parameters:
      dimension - the size to increase
      insets - the insets to add
    • removeFrom

      public static void removeFrom(@NotNull Dimension dimension, Insets insets)
      Parameters:
      dimension - the size to decrease
      insets - the insets to remove
    • addTo

      public static void addTo(@NotNull Rectangle rectangle, Insets insets)
      Parameters:
      rectangle - the size to increase and the location to move
      insets - the insets to add
    • removeFrom

      public static void removeFrom(@NotNull Rectangle rectangle, Insets insets)
      Parameters:
      rectangle - the size to decrease and the location to move
      insets - the insets to remove