The
RectangularShape[
^] class has not such properties. However it does provide the
getX
and
getY
methods. As an alternative (depending upon your needs) you might call the
getBounds
method, which returns a
Rectangle
which, in turn, provides the
X, Y
properties.