예제 #1
0
 public int getWidth() {
   return Math.abs(startVertex.getX() - endVertex.getX());
 }
예제 #2
0
 public int getHeight() {
   return Math.abs(startVertex.getY() - endVertex.getY());
 }
예제 #3
0
 /* (non-Javadoc)
  * @see com.cosylab.vdct.graphics.objects.VisibleObject#getY()
  */
 public int getY() {
   return Math.min(startVertex.getY(), endVertex.getY());
 }