code: Point2D getAlignmentCenter() {
          if (alignment == SymbolAlignment.Left) {
              return element.getFirstGlyphCenter();
          } else if (alignment == SymbolAlignment.Right) {
              return element.getLastGlyphCenter();
          } else {
              return element.getCenter();
          }
      }
docs: Access the center point of the symbol. The center point is determined by
  the alignment.
  
  @return center point