Example #1
0
        internal Rectangle getClient()
        {
            Insets insets = getInsets();

            return(new Rectangle(insets.left, insets.top, width - insets.right - insets.left, height
                                 - insets.top - insets.bottom));
        }
Example #2
0
        protected internal Dimension addInsets(Dimension size)
        {
            Insets insets = getInsets();

            size.width  += insets.left + insets.right;
            size.height += insets.top + insets.bottom;

            return(size);
        }
Example #3
0
 public override bool Equals(Object o)
 {
     if (o == this)
     {
         return(true);
     }
     if (o is Insets)
     {
         Insets i = (Insets)o;
         return((i.left == left) && (i.bottom == bottom) &&
                (i.right == right) && (i.top == top));
     }
     return(false);
 }