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 Summary
Modifier and TypeFieldDescriptionstatic final SpecialistType<ImageMapAgent>
Agent providing means to operate on image map specifics. -
Method Summary
Modifier and TypeMethodDescription@NotNull CircleBuilder
Provides a builder for circular areas.@NotNull PolygonBuilder
Provides a builder for polygonal areas.@NotNull RectangleBuilder
Provides a builder for rectangular areas.
-
Field Details
-
TYPE
Agent providing means to operate on image map specifics.- Since:
- 5.2.2103
-
-
Method Details
-
getCircleBuilder
Provides a builder for circular areas.- Returns:
- A circle builder.
- Since:
- 5.2.2103
-
getRectangleBuilder
Provides a builder for rectangular areas.- Returns:
- A rectangle builder.
- Since:
- 5.2.2103
-
getPolygonBuilder
Provides a builder for polygonal areas.- Returns:
- A polygon builder.
- Since:
- 5.2.2103
-