protected void paintDeterminate(Graphics g, JComponent c) {
Insets b = progressBar.getInsets();
int barRectWidth = progressBar.getWidth() - (b.right + b.left);
int barRectHeight = progressBar.getHeight() - (b.top + b.bottom);
if(progressBar.getOrientation() == JProgressBar.HORIZONTAL) {
int amountFull = getAmountFull(b, barRectWidth, barRectHeight);
drawXpHorzProgress(g, b.left, b.top, barRectWidth, barRectHeight, amountFull);
if(progressBar.isStringPainted()) {
g.setFont(c.getFont());
paintString(g, b.left, b.top, barRectWidth, barRectHeight, amountFull, b);
}
}
else {
int amountFull = getAmountFull(b, barRectWidth, barRectHeight);
drawXpVertProgress(g, b.left, b.top, barRectWidth, barRectHeight, amountFull);
if(progressBar.isStringPainted()) {
g.setFont(c.getFont());
paintString(g, b.left, b.top, barRectWidth, barRectHeight, amountFull, b);
}
}
}