本文整理了Java中org.eclipse.swt.graphics.GC.getLineStyle()
方法的一些代码示例,展示了GC.getLineStyle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GC.getLineStyle()
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.GC
类名称:GC
方法名:getLineStyle
[英]Returns the receiver's line style, which will be one of the constants SWT.LINE_SOLID
, SWT.LINE_DASH
, SWT.LINE_DOT
, SWT.LINE_DASHDOT
or SWT.LINE_DASHDOTDOT
.
[中]返回接收器的线条样式,它将是常量SWT.LINE_SOLID
、SWT.LINE_DASH
、SWT.LINE_DOT
、SWT.LINE_DASHDOT
或SWT.LINE_DASHDOTDOT
之一。
代码示例来源:origin: org.eclipse.mylyn.commons/screenshots
Color backBackground = workImageGC.getBackground();
Color backForeground = workImageGC.getForeground();
int backLineStyle = workImageGC.getLineStyle();
int backLineWidth = workImageGC.getLineWidth();
int[] history;
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.css.swt
final int oldLineStyle = gc.getLineStyle();
final int oldAlpha = gc.getAlpha();
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
imageGC.setForeground(figureCanvasGC.getForeground());
imageGC.setFont(figureCanvasGC.getFont());
imageGC.setLineStyle(figureCanvasGC.getLineStyle());
imageGC.setLineWidth(figureCanvasGC.getLineWidth());
imageGC.setXORMode(figureCanvasGC.getXORMode());
代码示例来源:origin: org.xworker/xworker_swt
int alpha = gc.getAlpha();
try{
int linesTyle = gc.getLineStyle();
gc.setLineStyle(SWT.LINE_DOT);
gc.drawRectangle(x, y, width, height);
内容来源于网络,如有侵权,请联系作者删除!