| 0,
0,
dim.width,
dim.height);
GradientAlignment gradientAlignment = dataToStore.getGradientAlignment();
int topRectangleHeight = gradientAlignment.getTopRectangleHeight(dim.height, gradientHeight);
int bottomRectangleHeight = gradientAlignment.getBottomRectangleHeight(dim.height, gradientHeight);
rect = new Rectangle2D.Float(
0,
0,
dim.width,
|