/** * Adds a polygon link. * * @param coordinates * the coordinates for the polygon * @param link * the link * @return This */ public ImageMap addPolygonLink(final int[] coordinates, final Link<?> link) { add(link); shapeLinks.add(new PolygonLink(coordinates, link)); return this; }
/** * Adds a polygon link. * * @param coordinates * the coordinates for the polygon * @param link * the link * @return This */ public ImageMap addPolygonLink(final int[] coordinates, final Link link) { add(link); shapeLinks.add(new PolygonLink(coordinates, 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; }
/** * Adds a circle link. * * @param x1 * top left x * @param y1 * top left y * @param radius * the radius * @param link * the link * @return This */ public ImageMap addCircleLink(final int x1, final int y1, final int radius, final Link<?> link) { add(link); shapeLinks.add(new CircleLink(x1, y1, radius, link)); return this; }
/** * Adds a circle link. * * @param x1 * top left x * @param y1 * top left y * @param radius * the radius * @param link * the link * @return This */ public ImageMap addCircleLink(final int x1, final int y1, final int radius, final Link link) { add(link); shapeLinks.add(new CircleLink(x1, y1, radius, 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; }