break;
case LEFT:
if (SwingUtil.getBoolean(MyDoggyKeySpace.TWRA_ROTATE_ICON_ON_ANCHOR, false) && toolIcon != null)
toolIcon = GraphicsUtil.rotate(toolIcon, -Math.PI/2);
TextIcon textIcon = new TextIcon(((TextIcon) ((AggregateIcon) representativeLabel.getIcon()).getLeftIcon()).getComponent(), labelText, TextIcon.ROTATE_LEFT);
textIcon.setForeground(UIManager.getColor(MyDoggyKeySpace.TWRA_FOREGROUND));
AggregateIcon compositeIcon = new AggregateIcon(textIcon, toolIcon, SwingConstants.VERTICAL);
representativeLabel.setText(null);
representativeLabel.setIcon(compositeIcon);
break;
case RIGHT:
if (SwingUtil.getBoolean(MyDoggyKeySpace.TWRA_ROTATE_ICON_ON_ANCHOR, false) && toolIcon != null)
toolIcon = GraphicsUtil.rotate(toolIcon, Math.PI/2);
textIcon = new TextIcon(((TextIcon) ((AggregateIcon) representativeLabel.getIcon()).getRightIcon()).getComponent(), labelText, TextIcon.ROTATE_RIGHT);
textIcon.setForeground(UIManager.getColor(MyDoggyKeySpace.TWRA_FOREGROUND));
compositeIcon = new AggregateIcon(toolIcon, textIcon, SwingConstants.VERTICAL);
representativeLabel.setText(null);
representativeLabel.setIcon(compositeIcon);
break;