Stando alla definizione di "inside" riportata nella JavaDoc della classe Shape:

Definition of insideness: A point is considered to lie inside a Shape if and only if:

- it lies completely inside theShape boundary or
- it lies exactly on the Shape boundary and the space immediately adjacent to the point in the increasing X direction is entirely inside the boundary or
- it lies exactly on a horizontal boundary segment and the space immediately adjacent to the point in the increasing Y direction is inside the boundary.
Ne si deduce che un punto sul bordo superiore o sul bordo sinistro è considerato "inside". Un punto sul bordo destro o sul bordo inferiore è considerato "outside".

Ciao.