Package com.intellij.util.ui
Class JBInsets
java.lang.Object
java.awt.Insets
com.intellij.util.ui.JBInsets
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
JBInsets.JBInsetsUIResource
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJBInsets(int top, int left, int bottom, int right) Creates and initializes a newInsetsobject with the specified top, left, bottom, and right insets. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic JBInsetsintheight()static voidremoveFrom(Dimension dimension, Insets insets) static voidremoveFrom(Rectangle rectangle, Insets insets) intwidth()
-
Constructor Details
-
JBInsets
public JBInsets(int top, int left, int bottom, int right) Creates and initializes a newInsetsobject 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
-
asUIResource
-
addTo
- Parameters:
dimension- the size to increaseinsets- the insets to add
-
removeFrom
- Parameters:
dimension- the size to decreaseinsets- the insets to remove
-
addTo
- Parameters:
rectangle- the size to increase and the location to moveinsets- the insets to add
-
removeFrom
- Parameters:
rectangle- the size to decrease and the location to moveinsets- the insets to remove
-