本文整理汇总了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;
}
示例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);
}
示例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();
}