Package rma.swing

Class RmaInsets

java.lang.Object
rma.swing.RmaInsets

public class RmaInsets extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Insets
    insets(int top, int left, int bottom, int right)
    Creates and initializes a new Insets object with the specified top, left, bottom, and right insets.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSETS5555

      public static final Insets INSETS5555
      Default insets object with border of (5,5,5,5)
    • INSETS5550

      public static final Insets INSETS5550
      Default insets object with border of (5,5,5,0)
    • INSETS5505

      public static final Insets INSETS5505
      Default insets object with border of (5,5,0,5)
    • INSETS5500

      public static final Insets INSETS5500
      Default insets object with border of (5,5,0,0)
    • INSETS0000

      public static final Insets INSETS0000
      Default insets object with border of (0,0,0,0)
    • INSETS5000

      public static final Insets INSETS5000
      Default insets object with border of (5,0,0,0)
    • INSETS5005

      public static final Insets INSETS5005
      Default insets object with border of (5,0,0,5)
    • INSETS0500

      public static final Insets INSETS0500
      Default insets object with border of (0,5,0,0)
    • INSETS0050

      public static final Insets INSETS0050
      Default insets object with border of (0,0,5,0)
    • INSETS0005

      public static final Insets INSETS0005
      Default insets object with border of (0,0,0,5)
    • INSETS5050

      public static final Insets INSETS5050
      Default insets object with border of (5,0,5,0)
    • INSETS0505

      public static final Insets INSETS0505
      Default insets object with border of (0,5,0,5)
    • INSETS0555

      public static final Insets INSETS0555
      Default insets object with border of (0,5,5,5)
  • Constructor Details

    • RmaInsets

      public RmaInsets()
  • Method Details

    • insets

      public static Insets insets(int top, int left, int bottom, int right)
      Creates and initializes a new Insets 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 top
      left - the inset from the left
      bottom - the inset from the bottom
      right - the inset from the right
      Returns:
      an inialized insets object