Stores the position and size of
the bouncing box that would be painted for the current animation index
in
r
and returns
r
.
Subclasses that add to the painting performed
in this class's implementation of
paintIndeterminate
--
to draw an outline around the bouncing box, for example --
can use this method to get the location of the bouncing
box that was just painted.
By overriding this method,
you have complete control over the size and position
of the bouncing box,
without having to reimplement
paintIndeterminate
.
Returns:
null
if no box should be drawn;
otherwise, returns the passed-in rectangle
(if non-null)
or a new rectangle
Parameters:
-
r - the Rectangle instance to be modified;
may be
null
Since:
1.4
See Also:
BasicProgressBarUI.setAnimationIndex(int)
,