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