All Known Subinterfaces:
CircleArea, PolyArea, RectArea

@NonExtendable public interface Area
An area of some shape at some place hosting a link. See subtypes for concrete shapes.

Use the ImageMapAgent to create new instances of shaped Areas.

Since:
5.1.203
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Visitor to operate on different shapes of areas.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Link
    Provides the link this area is pointing to, if any.
    <R> R
    receive(@NotNull Area.Visitor<R> visitor)
    Receive the handed visitor.
  • Method Details

    • getLink

      @ApiDoc(comment="Provides the link this area is pointing to, if any.", since="5.1.203") @Nullable @Nullable Link getLink()
      Provides the link this area is pointing to, if any.
      Returns:
      The link or null.
      Since:
      5.1.203
    • receive

      @ApiDoc(comment="Receive the handed visitor.", since="5.1.203") @Nullable <R> R receive(@NotNull @NotNull Area.Visitor<R> visitor)
      Receive the handed visitor.
      Parameters:
      visitor - The visitor to receive.
      Returns:
      The result of the visit.
      Since:
      5.1.203