当前位置: 首页>>代码示例>>Java>>正文


Java SWT.NO_REDRAW_RESIZE属性代码示例

本文整理汇总了Java中org.eclipse.swt.SWT.NO_REDRAW_RESIZE属性的典型用法代码示例。如果您正苦于以下问题:Java SWT.NO_REDRAW_RESIZE属性的具体用法?Java SWT.NO_REDRAW_RESIZE怎么用?Java SWT.NO_REDRAW_RESIZE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.swt.SWT的用法示例。


在下文中一共展示了SWT.NO_REDRAW_RESIZE属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createCanvas

protected FigureCanvas createCanvas ()
{
    final FigureCanvas canvas = new FigureCanvas ( this, SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_REDRAW_RESIZE );

    addControlListener ( new ControlAdapter () {
        @Override
        public void controlResized ( final ControlEvent e )
        {
            handleResize ( getBounds () );
        }
    } );

    return canvas;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:14,代码来源:VisualInterfaceViewer.java

示例2: ImageCanvas

/**
 * Constructor for ImageCanvas.
 */
public ImageCanvas(Composite parent, int style, Image image, Object layoutData) {
	super(parent, style | SWT.SHELL_TRIM | SWT.NO_BACKGROUND | SWT.NO_REDRAW_RESIZE);
	this.image = image;
	setLayoutData(layoutData);
	setSize(image.getImageData().width, image.getImageData().height);
	addPaintListener(this);
}
 
开发者ID:AppleCommander,项目名称:AppleCommander,代码行数:10,代码来源:ImageCanvas.java

示例3: KTable

/**
 * Creates a new KTable.
 * 
 * possible styles: SWT.V_SCROLL - show vertical scrollbar and allow
 * vertical scrolling by arrow keys SWT.H_SCROLL - show horizontal scrollbar
 * and allow horizontal scrolling by arrow keys SWT.FLAT - no border
 * drawing.
 * 
 * After creation a table model should be added using setModel().
 */
public KTable(Composite parent, int style) {
  // Oberklasse initialisieren
  super(parent, SWT.NO_BACKGROUND | SWT.NO_REDRAW_RESIZE | style);

  // inits
  m_GC = new GC(this);
  m_Display = Display.getCurrent();
  m_Selection = new HashMap<Object, Object>();
  m_CellEditor = null;

  flatStyleSpecified = ((style | SWT.FLAT) == style);

  m_RowSelectionMode = false;
  m_MultiSelectMode = false;
  m_TopRow = 0;
  m_LeftColumn = 0;
  m_FocusRow = 0;
  m_FocusCol = 0;
  m_RowsVisible = 0;
  m_RowsFullyVisible = 0;
  m_ColumnsVisible = 0;
  m_ColumnsFullyVisible = 0;
  m_ResizeColumnIndex = -1;
  m_ResizeRowIndex = -1;
  m_ResizeRowTop = -1;
  m_NewRowSize = -1;
  m_ResizeColumnLeft = -1;
  m_Capture = false;
  m_ClickColumnIndex = -1;
  m_ClickRowIndex = -1;

  m_LineRestore = null;
  m_LineX = 0;
  m_LineY = 0;

  cellSelectionListeners = new ArrayList<KTableCellSelectionListener>(10);
  cellResizeListeners = new ArrayList<KTableCellResizeListener>(10);

  // Listener
  createListeners();

}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:52,代码来源:KTable.java


注:本文中的org.eclipse.swt.SWT.NO_REDRAW_RESIZE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。