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

x33g5p2x  于2022-01-29 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(270)

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

Table.getFont介绍

暂无

代码示例

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

  1. @Override
  2. public Font getFont () {
  3. return table.getFont();
  4. }
  5. /**

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

  1. public Font getFont () {
  2. return table.getFont();
  3. }
  4. /**

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

  1. @Override
  2. public Font getFont () {
  3. return table.getFont();
  4. }
  5. /**

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

  1. @Override
  2. public Font getFont () {
  3. return table.getFont();
  4. }
  5. /**

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

  1. @Override
  2. public Font getFont () {
  3. return table.getFont();
  4. }
  5. /**

代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls

  1. public Font getFont() {
  2. return m_table.getFont();
  3. }

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

  1. /**
  2. * Returns the font that the receiver will use to paint textual information for this item.
  3. *
  4. * @return the receiver's font
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. *
  11. * @since 3.0
  12. */
  13. public Font getFont () {
  14. checkWidget ();
  15. if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  16. return font != null ? font : parent.getFont ();
  17. }

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

  1. /**
  2. * Returns the font that the receiver will use to paint textual information for this item.
  3. *
  4. * @return the receiver's font
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. *
  11. * @since 3.0
  12. */
  13. public Font getFont () {
  14. checkWidget ();
  15. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  16. return font != null ? font : parent.getFont ();
  17. }

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

  1. /**
  2. * Returns the font that the receiver will use to paint textual information for this item.
  3. *
  4. * @return the receiver's font
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. *
  11. * @since 3.0
  12. */
  13. public Font getFont () {
  14. checkWidget ();
  15. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  16. return font != null ? font : parent.getFont ();
  17. }

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

  1. /**
  2. * Returns the font that the receiver will use to paint textual information for this item.
  3. *
  4. * @return the receiver's font
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. *
  11. * @since 3.0
  12. */
  13. public Font getFont () {
  14. checkWidget ();
  15. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  16. return font != null ? font : parent.getFont ();
  17. }

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. final int getPackWidth( int index ) {
  2. BoxDimensions cellPadding = parent.getCellPadding();
  3. return
  4. getImageWidth( index )
  5. + getSpacing( index )
  6. + getTextWidth( index, parent.getFont() )
  7. + cellPadding.left
  8. + cellPadding.right;
  9. }

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

  1. void setItemHeight (Image image, NSFont font, boolean set) {
  2. if (font == null) font = getFont ().handle;
  3. double /*float*/ ascent = font.ascender ();
  4. double /*float*/ descent = -font.descender () + font.leading ();
  5. int height = (int)Math.ceil (ascent + descent) + 1;
  6. Rectangle bounds = image != null ? image.getBounds () : imageBounds;
  7. if (bounds != null) {
  8. imageBounds = bounds;
  9. height = Math.max (height, bounds.height);
  10. }
  11. NSTableView widget = (NSTableView)view;
  12. if (set || widget.rowHeight () < height) {
  13. widget.setRowHeight (height);
  14. }
  15. }

代码示例来源:origin: org.eclipse.xtext/ui

  1. public static int getTableHeightHint(Table table, int rows) {
  2. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  3. table.setFont(JFaceResources.getDialogFont());
  4. int result = table.getItemHeight() * rows + table.getHeaderHeight();
  5. if (table.getLinesVisible())
  6. result += table.getGridLineWidth() * (rows - 1);
  7. return result;
  8. }

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

  1. public static int getTableHeightHint(Table table, int rows) {
  2. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  3. table.setFont(JFaceResources.getDialogFont());
  4. int result= table.getItemHeight() * rows + table.getHeaderHeight();
  5. if (table.getLinesVisible())
  6. result+= table.getGridLineWidth() * (rows - 1);
  7. return result;
  8. }

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

  1. public static int getTableHeightHint(Table table, int rows) {
  2. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  3. table.setFont(JFaceResources.getDialogFont());
  4. int result= table.getItemHeight() * rows + table.getHeaderHeight();
  5. if (table.getLinesVisible())
  6. result+= table.getGridLineWidth() * (rows - 1);
  7. return result;
  8. }

代码示例来源:origin: org.eclipse/org.eclipse.search

  1. public static int getTableHeightHint(Table table, int rows) {
  2. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  3. table.setFont(JFaceResources.getDialogFont());
  4. int result= table.getItemHeight() * rows + table.getHeaderHeight();
  5. if (table.getLinesVisible())
  6. result+= table.getGridLineWidth() * (rows - 1);
  7. return result;
  8. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.search

  1. public static int getTableHeightHint(Table table, int rows) {
  2. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  3. table.setFont(JFaceResources.getDialogFont());
  4. int result= table.getItemHeight() * rows + table.getHeaderHeight();
  5. if (table.getLinesVisible())
  6. result+= table.getGridLineWidth() * (rows - 1);
  7. return result;
  8. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  1. public static int getTableHeightHint(Table table, int rows) {
  2. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  3. table.setFont(JFaceResources.getDialogFont());
  4. int result= table.getItemHeight() * rows + table.getHeaderHeight();
  5. if (table.getLinesVisible())
  6. result+= table.getGridLineWidth() * (rows - 1);
  7. return result;
  8. }

代码示例来源:origin: oyse/yedit

  1. public static int getTableHeightHint(Table table, int rows) {
  2. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  3. table.setFont(JFaceResources.getDialogFont());
  4. int result= table.getItemHeight() * rows + table.getHeaderHeight();
  5. if (table.getLinesVisible())
  6. result+= table.getGridLineWidth() * (rows - 1);
  7. return result;
  8. }

代码示例来源:origin: org.eclipse/org.eclipse.datatools.sqltools.common.ui

  1. public static int getTableHeightHint(Table table, int rows)
  2. {
  3. if (table.getFont().equals(JFaceResources.getDefaultFont()))
  4. {
  5. table.setFont(JFaceResources.getDialogFont());
  6. }
  7. int result = table.getItemHeight() * rows + table.getHeaderHeight();
  8. if (table.getLinesVisible())
  9. {
  10. result += table.getGridLineWidth() * (rows - 1);
  11. }
  12. return result;
  13. }

相关文章

Table类方法