public class JBInsets
extends java.awt.Insets
Modifier and Type | Class and Description |
---|---|
static class |
JBInsets.JBInsetsUIResource |
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
static void |
addTo(java.awt.Dimension dimension,
java.awt.Insets insets) |
static void |
addTo(java.awt.Rectangle rectangle,
java.awt.Insets insets) |
JBInsets.JBInsetsUIResource |
asUIResource() |
static JBInsets |
create(java.awt.Insets insets) |
static JBInsets |
create(int topBottom,
int leftRight) |
int |
height() |
static void |
removeFrom(java.awt.Dimension dimension,
java.awt.Insets insets) |
static void |
removeFrom(java.awt.Rectangle rectangle,
java.awt.Insets insets) |
int |
width() |
public JBInsets(int top, int left, int bottom, int right)
Insets
object with the
specified top, left, bottom, and right insets.top
- the inset from the top.left
- the inset from the left.bottom
- the inset from the bottom.right
- the inset from the right.public int width()
public int height()
public static JBInsets create(int topBottom, int leftRight)
public static JBInsets create(java.awt.Insets insets)
public JBInsets.JBInsetsUIResource asUIResource()
public static void addTo(java.awt.Dimension dimension, java.awt.Insets insets)
dimension
- the size to increaseinsets
- the insets to addpublic static void removeFrom(java.awt.Dimension dimension, java.awt.Insets insets)
dimension
- the size to decreaseinsets
- the insets to removepublic static void addTo(java.awt.Rectangle rectangle, java.awt.Insets insets)
rectangle
- the size to increase and the location to moveinsets
- the insets to addpublic static void removeFrom(java.awt.Rectangle rectangle, java.awt.Insets insets)
rectangle
- the size to decrease and the location to moveinsets
- the insets to remove