Creates a new CupShape that switches from insets
i1
, i2
to i3
, i4
at Y-position y
.
the left inset to use in the top part of the shape
the right inset to use in the top part of the shape
the Y-coordinate at which the insets switch from top to bottom
the left inset to use in the bottom part of the shape
the right inset to use in the bottom part of the shape
A PageShape subclass that is optimized for the most common case: a rectangle that becomes wider or narrower after a certain Y-position is reached. For example:
i1 i2 i1 i2 +--------+ +------+ | | | | | | or | | +--+ +--+ y +--+ | y | | | | +--+ +---------+ i3 i4 i3 i4 (same as i2)