Interface ImageMapAgent


public interface ImageMapAgent
Agent providing means to operate on image map specifics.

Common practice:


 ImageMapAgent agent = broker.requireAgent(ImageMapAgent.TYPE);
 CircleBuilder builder = agent.getCircleBuilder();
 CircleArea area = builder.center(4, 2).radius(42).link(myLink).build();
 
To enable more generic operations, the builders inherit from a generic interface:

 ImageMapAgent agent = broker.requireAgent(ImageMapAgent.TYPE);
 for (int i; i < size; i++) {
   AreaBuilder builder;
   switch (myShapes[i]) {
     case Circle :
       areaBuilder = agent.getCircleBuilder().center(4, 2).radius(42);
       break;
     ...
   }
   areaBuilder.link(myLinks[i]);
   areas.add(areaBuilder.build());
 }
 
Since:
5.2.2103
  • Field Details

  • Method Details

    • getCircleBuilder

      @NotNull @NotNull CircleBuilder getCircleBuilder()
      Provides a builder for circular areas.
      Returns:
      A circle builder.
      Since:
      5.2.2103
    • getRectangleBuilder

      @NotNull @NotNull RectangleBuilder getRectangleBuilder()
      Provides a builder for rectangular areas.
      Returns:
      A rectangle builder.
      Since:
      5.2.2103
    • getPolygonBuilder

      @NotNull @NotNull PolygonBuilder getPolygonBuilder()
      Provides a builder for polygonal areas.
      Returns:
      A polygon builder.
      Since:
      5.2.2103