Package rma.swing
Class RmaInsets
java.lang.Object
rma.swing.RmaInsets
Acts as an insets manager to keep memory allocation to a minimum. Insets can
be re-used within a dialog without a problem. Every time this class is used
to create an Insets object it creates a reference to it so that it can be
reused later.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Insets
Default insets object with border of (0,0,0,0)static final Insets
Default insets object with border of (0,0,0,5)static final Insets
Default insets object with border of (0,0,5,0)static final Insets
Default insets object with border of (0,5,0,0)static final Insets
Default insets object with border of (0,5,0,5)static final Insets
Default insets object with border of (0,5,5,5)static final Insets
Default insets object with border of (5,0,0,0)static final Insets
Default insets object with border of (5,0,0,5)static final Insets
Default insets object with border of (5,0,5,0)static final Insets
Default insets object with border of (5,5,0,0)static final Insets
Default insets object with border of (5,5,0,5)static final Insets
Default insets object with border of (5,5,5,0)static final Insets
Default insets object with border of (5,5,5,5) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSETS5555
Default insets object with border of (5,5,5,5) -
INSETS5550
Default insets object with border of (5,5,5,0) -
INSETS5505
Default insets object with border of (5,5,0,5) -
INSETS5500
Default insets object with border of (5,5,0,0) -
INSETS0000
Default insets object with border of (0,0,0,0) -
INSETS5000
Default insets object with border of (5,0,0,0) -
INSETS5005
Default insets object with border of (5,0,0,5) -
INSETS0500
Default insets object with border of (0,5,0,0) -
INSETS0050
Default insets object with border of (0,0,5,0) -
INSETS0005
Default insets object with border of (0,0,0,5) -
INSETS5050
Default insets object with border of (5,0,5,0) -
INSETS0505
Default insets object with border of (0,5,0,5) -
INSETS0555
Default insets object with border of (0,5,5,5)
-
-
Constructor Details
-
RmaInsets
public RmaInsets()
-
-
Method Details
-
insets
Creates and initializes a newInsets
object with the specified top, left, bottom, and right insets. If an Insets object exists with the specified insets, that is returned, otherwise a new object is returned and a refrenece is stored for future use.- Parameters:
top
- the inset from the topleft
- the inset from the leftbottom
- the inset from the bottomright
- the inset from the right- Returns:
- an inialized insets object
-