1 23 package org.objectweb.clif.scenario.util.isac.loadprofile.gui; 24 25 import org.objectweb.clif.scenario.util.isac.loadprofile.Point; 26 27 34 public class Size { 35 private int width; 36 private int height; 37 38 41 public Size() { 42 this.width = 0; 43 this.height = 0; 44 } 45 46 53 public Size(int w, int h) { 54 this.width = w; 55 this.height = h; 56 } 57 58 61 public int getHeight() { 62 return height; 63 } 64 68 public void setHeight(int heigth) { 69 this.height = heigth; 70 } 71 74 public int getWidth() { 75 return width; 76 } 77 81 public void setWidth(int width) { 82 this.width = width; 83 } 84 85 89 public Point toPoint() { 90 return new Point(this.width, this.height) ; 91 } 92 93 96 public String toString() { 97 String result = "{ " + width + " , " + height + " }" ; 98 99 return result ; 100 } 101 } | Popular Tags |