Пример #1
0
        protected internal Dimension addInsets(Dimension size)
        {
            Insets insets = getInsets();
            size.width += insets.left + insets.right;
            size.height += insets.top + insets.bottom;

            return size;
        }
Пример #2
0
 public Dimension(Dimension d)
     : this(d.width, d.height)
 {
 }
Пример #3
0
 public virtual void setSize(Dimension d)
 {
     setSize(d.width, d.height);
 }
Пример #4
0
 public Rectangle(Dimension d)
 {
     setBounds(0, 0, d.width, d.height);
 }
Пример #5
0
 public Rectangle(Point p, Dimension d)
 {
     setBounds(p.x, p.y, d.width, d.height);
 }
Пример #6
0
 public void setSize(Dimension d)
 {
     setSize(d.width, d.height);
 }