129 |
thumbBounds.y + thumbBounds.height); |
thumbBounds.y + thumbBounds.height); |
130 |
|
|
131 |
// draw the pattern |
// draw the pattern |
132 |
int xOff = 0; |
MetalUtils.fillMetalPattern(g, thumbBounds.x + 3, thumbBounds.y + 3, |
133 |
for (int y = thumbBounds.y + 4; |
thumbBounds.width - 6, thumbBounds.height - 6, |
134 |
y < (thumbBounds.y + thumbBounds.height - 4); y++) |
thumbHighlightColor, thumbDarkShadowColor); |
|
{ |
|
|
// set color alternating with every line |
|
|
if ((y % 2) == 0) |
|
|
g.setColor(thumbHighlightColor); |
|
|
else |
|
|
g.setColor(thumbDarkShadowColor); |
|
|
|
|
|
for (int x = thumbBounds.x + 3 + (xOff); |
|
|
x < (thumbBounds.x + thumbBounds.width - 3); x = x + 4) |
|
|
{ |
|
|
g.drawLine(x, y, x, y); |
|
|
} |
|
|
|
|
|
// increase x offset |
|
|
xOff++; |
|
|
if (xOff > 3) |
|
|
xOff = 0; |
|
|
|
|
|
} |
|
135 |
} |
} |
136 |
|
|
137 |
/** |
/** |