-
getStringPlacement
protected Point getStringPlacement(Graphics g,
String progressString,
int x,
int y,
int width,
int height)
Designate the place where the progress string will be painted. This implementation places it at the center of the progress bar (in both x and y). Override this if you want to right, left, top, or bottom align the progress string or if you need to nudge it around for any reason.
-
Parameters:
-
g - an instance of Graphics
-
progressString - a text
-
x - an X coordinate
-
y - an Y coordinate
-
width - a width
-
height - a height
-
Returns:
-
the place where the progress string will be painted
|
-
getStringPlacement
protected Point getStringPlacement(Graphics g,
String progressString,
int x,
int y,
int width,
int height)
Designate the place where the progress string will be painted. This implementation places it at the center of the progress bar (in both x and y). Override this if you want to right, left, top, or bottom align the progress string or if you need to nudge it around for any reason.
|
-
getStringPlacement
protected Point getStringPlacement(Graphics g,
String progressString,
int x,
int y,
int width,
int height)
Designate the place where the progress string will be painted. This implementation places it at the center of the progress bar (in both x and y). Override this if you want to right, left, top, or bottom align the progress string or if you need to nudge it around for any reason.
-
Parameters:
-
g - an instance of Graphics
-
progressString - a text
-
x - an X coordinate
-
y - an Y coordinate
-
width - a width
-
height - a height
-
Returns:
- the place where the progress string will be painted
|
|