org.eclipse.swt.graphics.GC.setLineJoin()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(118)

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

GC.setLineJoin介绍

[英]Sets the receiver's line join style to the argument, which must be one of the constants SWT.JOIN_MITER, SWT.JOIN_ROUND, or SWT.JOIN_BEVEL.
[中]将接收方的行联接样式设置为参数,该参数必须是常量SWT.JOIN_MITERSWT.JOIN_ROUNDSWT.JOIN_BEVEL之一。

代码示例

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

/**
 * Sets the receiver's line attributes.
 * <p>
 * This operation requires the operating system's advanced
 * graphics subsystem which may not be available on some
 * platforms.
 * </p>
 * @param attributes the line attributes
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the attributes is null</li>
 *    <li>ERROR_INVALID_ARGUMENT - if any of the line attributes is not valid</li>
 * </ul>
 * @exception SWTException <ul>
 *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_NO_GRAPHICS_LIBRARY - if advanced graphics are not available</li>
 * </ul>
 *
 * @see LineAttributes
 */
public void setLineAttributes( LineAttributes attributes ) {
 checkDisposed();
 if( attributes == null ) {
  SWT.error( SWT.ERROR_NULL_ARGUMENT );
 }
 setLineWidth( ( int )attributes.width );
 setLineCap( attributes.cap );
 setLineJoin( attributes.join );
 advanced = true;
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.xhtmlrenderer/core-renderer

_gc.setLineWidth(1);
  _gc.setLineCap(SWT.CAP_SQUARE);
  _gc.setLineJoin(SWT.JOIN_MITER);
  _gc.setLineDash(null);
  return;
  gcJoin = SWT.JOIN_ROUND;
_gc.setLineJoin(gcJoin);

代码示例来源:origin: org.jfree/swtgraphics2d

BasicStroke bs = (BasicStroke) stroke;
this.gc.setLineWidth((int) bs.getLineWidth());
this.gc.setLineJoin(toSwtLineJoin(bs.getLineJoin()));
this.gc.setLineCap(toSwtLineCap(bs.getEndCap()));

代码示例来源:origin: stefanhaustein/flowgrid

gc.setLineJoin(SWT.JOIN_ROUND);
gc.setLineCap(SWT.CAP_ROUND);

代码示例来源:origin: com.miglayout/miglayout-swt

@Override
public final void paintDebugOutline(boolean useVisaualPadding)
{
  if (c.isDisposed())
    return;
  GC gc = new GC(c);
  gc.setLineJoin(SWT.JOIN_MITER);
  gc.setLineCap(SWT.CAP_SQUARE);
  gc.setLineStyle(SWT.LINE_DOT);
  gc.setForeground(DB_COMP_OUTLINE);
  gc.drawRectangle(0, 0, getWidth() - 1, getHeight() - 1);
  gc.dispose();
}

代码示例来源:origin: org.xworker/xworker_swt

gc.setLineJoin(SWT.JOIN_ROUND);
gc.setLineWidth(2);
gc.setForeground(tickColor);

代码示例来源:origin: org.xworker/xworker_swt

gc.setLineJoin(SWT.JOIN_ROUND);
gc.setLineWidth(2);
gc.setForeground(tickColor);

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

gc.setLineJoin(joinValues[joinCb.getSelectionIndex()]);

相关文章

GC类方法