org.eclipse.swt.widgets.Canvas.setOrientation()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(159)

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

Canvas.setOrientation介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

  1. @Override
  2. void setOrientation (boolean create) {
  3. super.setOrientation (create);
  4. if (!create) {
  5. if (menuBar != null) menuBar._setOrientation (style & (SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT));
  6. }
  7. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

  1. @Override
  2. void setOrientation (boolean create) {
  3. super.setOrientation (create);
  4. if (!create) {
  5. if (menuBar != null) menuBar._setOrientation (style & (SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT));
  6. }
  7. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

  1. @Override
  2. void setOrientation (boolean create) {
  3. super.setOrientation (create);
  4. if (!create) {
  5. if (menuBar != null) menuBar._setOrientation (style & (SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT));
  6. }
  7. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. @Override
  2. public void setOrientation (int orientation) {
  3. super.setOrientation (orientation);
  4. if (menus != null) {
  5. for (int i=0; i<menus.length; i++) {
  6. Menu menu = menus [i];
  7. if (menu != null && !menu.isDisposed () && (menu.getStyle () & SWT.POP_UP) != 0) {
  8. menu._setOrientation (menu.getOrientation ());
  9. }
  10. }
  11. }
  12. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

  1. /**
  2. * Sets the orientation of the receiver, which must be one
  3. * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>.
  4. *
  5. * @param orientation new orientation style
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @since 2.1.2
  13. */
  14. @Override
  15. public void setOrientation(int orientation) {
  16. int oldOrientation = getOrientation();
  17. super.setOrientation(orientation);
  18. int newOrientation = getOrientation();
  19. if (oldOrientation != newOrientation) {
  20. resetBidiData();
  21. }
  22. }
  23. /**

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

  1. /**
  2. * Sets the orientation of the receiver, which must be one
  3. * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>.
  4. *
  5. * @param orientation new orientation style
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @since 2.1.2
  13. */
  14. @Override
  15. public void setOrientation(int orientation) {
  16. int oldOrientation = getOrientation();
  17. super.setOrientation(orientation);
  18. int newOrientation = getOrientation();
  19. if (oldOrientation != newOrientation) {
  20. resetBidiData();
  21. }
  22. }
  23. /**

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. /**
  2. * Sets the orientation of the receiver, which must be one
  3. * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>.
  4. *
  5. * @param orientation new orientation style
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @since 2.1.2
  13. */
  14. @Override
  15. public void setOrientation(int orientation) {
  16. int oldOrientation = getOrientation();
  17. super.setOrientation(orientation);
  18. int newOrientation = getOrientation();
  19. if (oldOrientation != newOrientation) {
  20. resetBidiData();
  21. }
  22. }
  23. /**

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

  1. /**
  2. * Sets the orientation of the receiver, which must be one
  3. * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>.
  4. *
  5. * @param orientation new orientation style
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @since 2.1.2
  13. */
  14. @Override
  15. public void setOrientation(int orientation) {
  16. int oldOrientation = getOrientation();
  17. super.setOrientation(orientation);
  18. int newOrientation = getOrientation();
  19. if (oldOrientation != newOrientation) {
  20. resetBidiData();
  21. }
  22. }
  23. /**

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

  1. /**
  2. * Sets the orientation of the receiver, which must be one
  3. * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>.
  4. *
  5. * @param orientation new orientation style
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @since 2.1.2
  13. */
  14. public void setOrientation(int orientation) {
  15. int oldOrientation = getOrientation();
  16. super.setOrientation(orientation);
  17. int newOrientation = getOrientation();
  18. if (oldOrientation != newOrientation) {
  19. caretDirection = SWT.NULL;
  20. resetCache(0, content.getLineCount());
  21. setCaretLocation();
  22. keyActionMap.clear();
  23. createKeyBindings();
  24. super.redraw();
  25. }
  26. }
  27. /**

相关文章

Canvas类方法