@Test public void testGetLocation() throws Exception { }
public Point2D getLocation(Content content) { int index = contents.indexOf(content); Point2D offset = new Point2D.Double(0,0); for(int i = 0; i < index; ++i) { offset = getNextOffset(offset, contents.get(i)); } return offset; }
Layout extends Content { public Point2D getLocation(Content content) { int index = contents.indexOf(content); Point2D offset = new Point2D.Double(0,0); for(int i = 0; i < index; ++i) { offset = getNextOffset(offset, contents.get(i)); } return offset; } }
Layout extends Content { public Point2D getLocation(Content content) { int index = contents.indexOf(content); Point2D offset = new Point2D.Double(0,0); for(int i = 0; i < index; ++i) { offset = getNextOffset(offset, contents.get(i)); } return offset; }  }
Layout extends Content { public Point2D getLocation(Content content) { int index = contents.indexOf(content); Point2D offset = new Point2D.Double(0,0); for(int i = 0; i < index; ++i) { offset = getNextOffset(offset, contents.get(i)); } return offset; }  void add(Content content); void remove(Content content); final Separator getSeparator(); final void setSeparator(Separator separator); boolean isEmpty(); void clear(); @Override final void draw(Graphics2D graphics); Point2D getLocation(Content content); }
Layout extends Content { public Point2D getLocation(Content content) { int index = contents.indexOf(content); Point2D offset = new Point2D.Double(0,0); for(int i = 0; i < index; ++i) { offset = getNextOffset(offset, contents.get(i)); } return offset; }  void add(Content content); void remove(Content content); final Separator getSeparator(); final void setSeparator(Separator separator); boolean isEmpty(); void clear(); @Override final void draw(Graphics2D graphics); Point2D getLocation(Content content);  }