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

x33g5p2x  于2022-01-30 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(158)

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

Scale.setLayoutData介绍

暂无

代码示例

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

protected void doFillIntoGrid(Composite parent, int numColumns) {
  Control control = getLabelControl(parent);
  GridData gd = new GridData();
  control.setLayoutData(gd);
  scale = getScaleControl(parent);
  gd = new GridData(GridData.FILL_HORIZONTAL);
  gd.verticalAlignment = GridData.FILL;
  gd.horizontalSpan = numColumns - 1;
  gd.grabExcessHorizontalSpace = true;
  scale.setLayoutData(gd);
  updateScale();
}

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

@Override
protected void doFillIntoGrid(Composite parent, int numColumns) {
  Control control = getLabelControl(parent);
  GridData gd = new GridData();
  control.setLayoutData(gd);
  scale = getScaleControl(parent);
  gd = new GridData(GridData.FILL_HORIZONTAL);
  gd.verticalAlignment = GridData.FILL;
  gd.horizontalSpan = numColumns - 1;
  gd.grabExcessHorizontalSpace = true;
  scale.setLayoutData(gd);
  updateScale();
}

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

@Override
protected void doFillIntoGrid(Composite parent, int numColumns) {
  Control control = getLabelControl(parent);
  GridData gd = new GridData();
  control.setLayoutData(gd);
  scale = getScaleControl(parent);
  gd = new GridData(GridData.FILL_HORIZONTAL);
  gd.verticalAlignment = GridData.FILL;
  gd.horizontalSpan = numColumns - 1;
  gd.grabExcessHorizontalSpace = true;
  scale.setLayoutData(gd);
  updateScale();
}

代码示例来源:origin: stackoverflow.com

scale.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
scale.setMaximum (4);
scale.setPageIncrement (1);

代码示例来源:origin: inspectIT/inspectIT

slider.setIncrement(1);
slider.setSize(200, 10);
slider.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
slider.addSelectionListener(new SelectionAdapter() {

代码示例来源:origin: atdl4j/atdl4j

GridData sliderData = new GridData( SWT.FILL, SWT.FILL, true, false );
sliderData.horizontalSpan = numColumns;
slider.setLayoutData( sliderData );
slider.setMaximum( numColumns > 1 ? numColumns - 1 : 1 );

代码示例来源:origin: Nodeclipse/EditBox

gd.horizontalSpan = 1;
gd.widthHint = 80;
scale.setLayoutData(gd);
scale.setMinimum(0);
scale.setMinimum(255);

代码示例来源:origin: BiglySoftware/BiglyBT

privacy_scale.setLayoutData(gd);

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

airbrushRadiusScale.setMaximum(50);
airbrushRadiusScale.setSelection(toolSettings.airbrushRadius);
airbrushRadiusScale.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL));
airbrushRadiusScale.addSelectionListener(widgetSelectedAdapter(e -> {
  toolSettings.airbrushRadius = airbrushRadiusScale.getSelection();
airbrushIntensityScale.setMaximum(100);
airbrushIntensityScale.setSelection(toolSettings.airbrushIntensity);
airbrushIntensityScale.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL));
airbrushIntensityScale.addSelectionListener(widgetSelectedAdapter(e -> {
  toolSettings.airbrushIntensity = airbrushIntensityScale.getSelection();

代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui

layoutData1.heightHint=scaleR.height;
layoutData1.widthHint=scaleR.width+1;
clientScale_.setLayoutData(layoutData1);

相关文章