本文整理了Java中org.eclipse.swt.graphics.GC.setLineJoin()
方法的一些代码示例,展示了GC.setLineJoin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GC.setLineJoin()
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.GC
类名称: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_MITER
、SWT.JOIN_ROUND
或SWT.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()]);
内容来源于网络,如有侵权,请联系作者删除!