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

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

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

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_SOLIDSWT.LINE_DASHSWT.LINE_DOTSWT.LINE_DASHDOTSWT.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);

相关文章

GC类方法