src/uniandes/tsdl/itdroid/model/AndroidNode.java
public void loadBounds(String text) {
		String bounds = text.replace("][", "/").replace("[", "").replace("]", "");
		bounds += "/0";
		String[] coords = bounds.split("/");
		String coord1 = coords[0];
		String coord2 = coords[1];
		String[] points1 = coord1.split(",");
		String[] points2 = coord2.split(",");
		int x1 = Integer.parseInt(points1[0]);
		int x2 = Integer.parseInt(points2[0]);
		int y1 = Integer.parseInt(points1[1]);
		int y2 = Integer.parseInt(points2[1]);
		point1 = new int[] {x1,y1};
		point2 = new int[] {x2,y2};
		centralPoint = new int[] {(int)((x1+x2)/2), (int)((y1+y2)/2)};
	}
/**
	 * Calculates the bounds and central point of a node
	 * @param text Raw input
	 * Initializes point1, point2 and centralPoint
	 */
Calculates the bounds and central point of a node
@param text Raw input
Initializes point1, point2 and centralPoint
Calculates the bounds and central point of a node @param text Raw input Initializes point1 point2 and centralPoint
public void loadBounds(String text) {
		String bounds = text.replace("][", "/").replace("[", "").replace("]", "");
		bounds += "/0";
		String[] coords = bounds.split("/");
		String coord1 = coords[0];
		String coord2 = coords[1];
		String[] points1 = coord1.split(",");
		String[] points2 = coord2.split(",");
		int x1 = Integer.parseInt(points1[0]);
		int x2 = Integer.parseInt(points2[0]);
		int y1 = Integer.parseInt(points1[1]);
		int y2 = Integer.parseInt(points2[1]);
		point1 = new int[] {x1,y1};
		point2 = new int[] {x2,y2};
		centralPoint = new int[] {(int)((x1+x2)/2), (int)((y1+y2)/2)};
	}
public void loadBounds ( String text ) { String bounds = text . replace ( "][" , "/" ) . replace ( "[" , "" ) . replace ( "]" , "" ) ; bounds += "/0" ; String [ ] coords = bounds . split ( "/" ) ; String coord1 = coords [ 0 ] ; String coord2 = coords [ 1 ] ; String [ ] points1 = coord1 . split ( "," ) ; String [ ] points2 = coord2 . split ( "," ) ; int x1 = Integer . parseInt ( points1 [ 0 ] ) ; int x2 = Integer . parseInt ( points2 [ 0 ] ) ; int y1 = Integer . parseInt ( points1 [ 1 ] ) ; int y2 = Integer . parseInt ( points2 [ 1 ] ) ; point1 = new int [ ] { x1 , y1 } ; point2 = new int [ ] { x2 , y2 } ; centralPoint = new int [ ] { ( int ) ( ( x1 + x2 ) / 2 ) , ( int ) ( ( y1 + y2 ) / 2 ) } ; }
Calculates the bounds and central point of a node
 @param text Raw input
 Initializes point1, point2 and centralPoint
Calculates the bounds and central point of a node @param text Raw input Initializes point1 point2 and centralPoint