當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。