Beispiel #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;
        }
Beispiel #2
0
 public Dimension(Dimension d)
     : this(d.width, d.height)
 {
 }
Beispiel #3
0
 public virtual void setSize(Dimension d)
 {
     setSize(d.width, d.height);
 }
Beispiel #4
0
 public Rectangle(Dimension d)
 {
     setBounds(0, 0, d.width, d.height);
 }
Beispiel #5
0
 public Rectangle(Point p, Dimension d)
 {
     setBounds(p.x, p.y, d.width, d.height);
 }
Beispiel #6
0
 public void setSize(Dimension d)
 {
     setSize(d.width, d.height);
 }