* Split pane orientation.
*/
public void updateOneTouchButtons(int orientation) {
if (orientation == JSplitPane.VERTICAL_SPLIT) {
if (this.leftButton != null) {
this.leftButton.setIcon(new TransitionAwareIcon(
this.leftButton, new TransitionAwareIcon.Delegate() {
public Icon getColorSchemeIcon(
SubstanceColorScheme scheme) {
int fontSize = SubstanceSizeUtils
.getComponentFontSize(splitPane);
return SubstanceImageCreator
.getArrowIcon(
SubstanceSizeUtils
.getSplitPaneArrowIconWidth(fontSize),
SubstanceSizeUtils
.getSplitPaneArrowIconHeight(fontSize),
SubstanceSizeUtils
.getArrowStrokeWidth(fontSize),
SwingConstants.NORTH, scheme);
}
}, "substance.splitPane.left.vertical"));
}
if (this.rightButton != null) {
this.rightButton.setIcon(new TransitionAwareIcon(
this.rightButton, new TransitionAwareIcon.Delegate() {
public Icon getColorSchemeIcon(
SubstanceColorScheme scheme) {
int fontSize = SubstanceSizeUtils
.getComponentFontSize(splitPane);
return SubstanceImageCreator
.getArrowIcon(
SubstanceSizeUtils
.getSplitPaneArrowIconWidth(fontSize),
SubstanceSizeUtils
.getSplitPaneArrowIconHeight(fontSize),
SubstanceSizeUtils
.getArrowStrokeWidth(fontSize),
SwingConstants.SOUTH, scheme);
}
}, "substance.splitPane.right.vertical"));
}
} else {
if (this.leftButton != null) {
this.leftButton.setIcon(new TransitionAwareIcon(
this.leftButton, new TransitionAwareIcon.Delegate() {
public Icon getColorSchemeIcon(
SubstanceColorScheme scheme) {
int fontSize = SubstanceSizeUtils
.getComponentFontSize(splitPane);
return SubstanceImageCreator
.getArrowIcon(
SubstanceSizeUtils
.getSplitPaneArrowIconWidth(fontSize),
SubstanceSizeUtils
.getSplitPaneArrowIconHeight(fontSize),
SubstanceSizeUtils
.getArrowStrokeWidth(fontSize),
SwingConstants.WEST, scheme);
}
}, "substance.splitPane.left.horizontal"));
}
if (this.rightButton != null) {
this.rightButton.setIcon(new TransitionAwareIcon(
this.rightButton, new TransitionAwareIcon.Delegate() {
public Icon getColorSchemeIcon(
SubstanceColorScheme scheme) {
int fontSize = SubstanceSizeUtils
.getComponentFontSize(splitPane);