/** * Adds a rectangular link. * * @param x1 * top left x * @param y1 * top left y * @param x2 * bottom right x * @param y2 * bottom right y * @param link * @return This */ public ImageMap addRectangleLink(final int x1, final int y1, final int x2, final int y2, final Link link) { add(link); shapeLinks.add(new RectangleLink(x1, y1, x2, y2, link)); return this; }
/** * Adds a rectangular link. * * @param x1 * top left x * @param y1 * top left y * @param x2 * bottom right x * @param y2 * bottom right y * @param link * @return This */ public ImageMap addRectangleLink(final int x1, final int y1, final int x2, final int y2, final Link<?> link) { add(link); shapeLinks.add(new RectangleLink(x1, y1, x2, y2, link)); return this; }