329 |
* |
* |
330 |
* @return the indent value for the left child. |
* @return the indent value for the left child. |
331 |
*/ |
*/ |
332 |
public int getLeftChildIndent(int newAmount) |
public int getLeftChildIndent() |
333 |
{ |
{ |
334 |
return leftChildIndent; |
return leftChildIndent; |
335 |
} |
} |
3642 |
* is the center position in y-direction FIXME what to do if x < |
* is the center position in y-direction FIXME what to do if x < |
3643 |
* (icon.width / 2). Same with y |
* (icon.width / 2). Same with y |
3644 |
*/ |
*/ |
3645 |
protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) |
protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y) |
3646 |
{ |
{ |
3647 |
int beginPositionX = x - icon.getIconWidth() / 2; |
int beginPositionX = x - icon.getIconWidth() / 2; |
3648 |
int beginPositionY = y - icon.getIconHeight() / 2; |
int beginPositionY = y - icon.getIconHeight() / 2; |