1 package org.catacomb.graph.gui; 2 3 4 public final class Size { 5 6 double w; 7 double h; 8 9 10 public Size() { 11 this(0., 0.); 12 } 13 14 15 public Size(double px, double py) { 16 set(px, py); 17 } 18 19 20 public void set(double px, double py) { 21 w = px; 22 h = py; 23 } 24 25 26 public double getWidth() { 27 return w; 28 } 29 30 31 public double getHeight() { 32 return h; 33 } 34 35 36 }