Interface Shape

All Superinterfaces:
Serializable
All Known Subinterfaces:
Circle, LineString, Point, Polygon, Rectangle
All Known Implementing Classes:
CircleImpl, LineStringImpl, PointImpl, PolygonImpl, RectangleImpl

public interface Shape extends Serializable
Markup interface to serve as base for all spatial shapes supported by XAP.
Since:
11.0
Author:
Yohana Khoury
  • Method Summary

    Modifier and Type
    Method
    Description
    appendTo(StringBuilder stringBuilder, ShapeFormat shapeFormat)
    Appends a string representation of the shape using the specified format
    toString(ShapeFormat shapeFormat)
    Returns a string representation of the shape using the specified format.
  • Method Details

    • toString

      String toString(ShapeFormat shapeFormat)
      Returns a string representation of the shape using the specified format.
      Parameters:
      shapeFormat - The format which will be used to format the shape.
      Returns:
      A string representation of the shape.
    • appendTo

      StringBuilder appendTo(StringBuilder stringBuilder, ShapeFormat shapeFormat)
      Appends a string representation of the shape using the specified format
      Parameters:
      stringBuilder - The string builder to append to
      shapeFormat - The format which will be used to format the shape
      Returns:
      The string builder