javax.swing.JComponent.applyComponentOrientation()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中javax.swing.JComponent.applyComponentOrientation()方法的一些代码示例,展示了JComponent.applyComponentOrientation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComponent.applyComponentOrientation()方法的具体详情如下:
包路径:javax.swing.JComponent
类名称:JComponent
方法名:applyComponentOrientation

JComponent.applyComponentOrientation介绍

暂无

代码示例

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Synchronizes internal state which depends on the month view's
 * componentOrientation.
 * 
 * This implementation updates the month navigation icons and the header
 * component's orientation.
 */
protected void componentOrientationChanged() {
  getHeaderComponent().applyComponentOrientation(
      monthView.getComponentOrientation());
  if (monthView.getComponentOrientation().isLeftToRight()) {
    updateMonthNavigationIcons(monthDownImage, monthUpImage);
  } else {
    updateMonthNavigationIcons(monthUpImage, monthDownImage);
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

/**
 * Synchronizes internal state which depends on the month view's
 * componentOrientation.
 * 
 * This implementation updates the month navigation icons and the header
 * component's orientation.
 */
protected void componentOrientationChanged() {
  getHeaderComponent().applyComponentOrientation(
      monthView.getComponentOrientation());
  if (monthView.getComponentOrientation().isLeftToRight()) {
    updateMonthNavigationIcons(monthDownImage, monthUpImage);
  } else {
    updateMonthNavigationIcons(monthUpImage, monthDownImage);
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * Synchronizes internal state which depends on the month view's
 * componentOrientation.
 * 
 * This implementation updates the month navigation icons and the header
 * component's orientation.
 */
protected void componentOrientationChanged() {
  getHeaderComponent().applyComponentOrientation(
      monthView.getComponentOrientation());
  if (monthView.getComponentOrientation().isLeftToRight()) {
    updateMonthNavigationIcons(monthDownImage, monthUpImage);
  } else {
    updateMonthNavigationIcons(monthUpImage, monthDownImage);
  }
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * Synchronizes internal state which depends on the month view's
 * componentOrientation.
 * 
 * This implementation updates the month navigation icons and the header
 * component's orientation.
 */
protected void componentOrientationChanged() {
  getHeaderComponent().applyComponentOrientation(
      monthView.getComponentOrientation());
  if (monthView.getComponentOrientation().isLeftToRight()) {
    updateMonthNavigationIcons(monthDownImage, monthUpImage);
  } else {
    updateMonthNavigationIcons(monthUpImage, monthDownImage);
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * Synchronizes internal state which depends on the month view's
 * componentOrientation.
 * 
 * This implementation updates the month navigation icons and the header
 * component's orientation.
 */
protected void componentOrientationChanged() {
  getHeaderComponent().applyComponentOrientation(
      monthView.getComponentOrientation());
  if (monthView.getComponentOrientation().isLeftToRight()) {
    updateMonthNavigationIcons(monthDownImage, monthUpImage);
  } else {
    updateMonthNavigationIcons(monthUpImage, monthDownImage);
  }
}

代码示例来源:origin: com.fifesoft.rtext/fife.common

/**
 * {@inheritDoc}
 */
@Override
public void applyComponentOrientation(ComponentOrientation o) {
  ComponentOrientation old = getComponentOrientation();
  super.applyComponentOrientation(o);
  if (getMode()==BREADCRUMB_MODE && dirField!=null) {
    dirField.applyComponentOrientation(o);
  }
  // Only re-load icons if necessary.
  if (!o.equals(old)) {
    // Fix horizontal arrow for this orientation.
    Icon oldBackIcon = backIcon;
    backIcon = createBackIcon();
    for (int i=0; i<buttonPanel.getComponentCount(); i++) {
      Component c = buttonPanel.getComponent(i);
      if (c instanceof AbstractButton) {
        AbstractButton b = (AbstractButton)c;
        if (b.getIcon()==oldBackIcon) {
          b.setIcon(backIcon);
        }
      }
    }
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

renderingComponent.setFont(context.getComponent().getFont());
renderingComponent.setEnabled(context.getComponent().isEnabled());
renderingComponent.applyComponentOrientation(context.getComponent()
    .getComponentOrientation());

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

renderingComponent.applyComponentOrientation(context.getComponent()
    .getComponentOrientation());

代码示例来源:origin: org.swinglabs.swingx/swingx-core

renderingComponent.applyComponentOrientation(context.getComponent()
    .getComponentOrientation());

代码示例来源:origin: org.swinglabs.swingx/swingx-all

renderingComponent.applyComponentOrientation(context.getComponent()
    .getComponentOrientation());

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

renderingComponent.applyComponentOrientation(context.getComponent()
    .getComponentOrientation());

相关文章

JComponent类方法