本文整理了Java中org.eclipse.swt.widgets.Table.getDrawing()
方法的一些代码示例,展示了Table.getDrawing()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getDrawing()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:getDrawing
暂无
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void createItem (TableItem item, int index) {
if (!(0 <= index && index <= itemCount)) error (SWT.ERROR_INVALID_RANGE);
if (itemCount == items.length) {
/* Grow the array faster when redraw is off */
int length = getDrawing () ? items.length + 4 : Math.max (4, items.length * 3 / 2);
TableItem [] newItems = new TableItem [length];
System.arraycopy (items, 0, newItems, 0, items.length);
items = newItems;
}
System.arraycopy (items, index, items, index + 1, itemCount++ - index);
items [index] = item;
updateRowCount();
if (index != itemCount) fixSelection (index, true);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
boolean small = getDrawing () && OS.IsWindowVisible (handle);
int length = small ? items.length + 4 : Math.max (4, items.length * 3 / 2);
TableItem [] newItems = new TableItem [length];
boolean small = getDrawing () && OS.IsWindowVisible (handle);
int length = small ? count + 4 : Math.max (4, count * 3 / 2);
TableItem [] newItems = new TableItem [length];
boolean small = getDrawing () && OS.IsWindowVisible (handle);
int length = small ? keys.length + 4 : Math.max (4, keys.length * 3 / 2);
int [] newKeys = new int [length];
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
void redraw () {
if (parent.currentItem == this || !parent.getDrawing ()) return;
int /*long*/ hwnd = parent.handle;
if (!OS.IsWindowVisible (hwnd)) return;
int index = parent.indexOf (this);
if (index == -1) return;
OS.SendMessage (hwnd, OS.LVM_REDRAWITEMS, index, index);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
void redraw (int column, boolean drawText, boolean drawImage) {
if (parent.currentItem == this || !parent.getDrawing ()) return;
int /*long*/ hwnd = parent.handle;
if (!OS.IsWindowVisible (hwnd)) return;
int index = parent.indexOf (this);
if (index == -1) return;
RECT rect = getBounds (index, column, drawText, drawImage, true);
OS.InvalidateRect (hwnd, rect, true);
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
boolean setScrollWidth (TableItem [] items, boolean set) {
if (items == null) return false;
if (columnCount != 0) return false;
if (!getDrawing()) return false;
if (currentItem != null) {
fixScrollWidth = true;
return false;
}
GC gc = new GC (this);
int newWidth = 0;
for (int i = 0; i < items.length; i++) {
TableItem item = items [i];
if (item != null) {
newWidth = Math.max (newWidth, item.calculateWidth (0, gc, isSelected(indexOf(item))));
}
}
gc.dispose ();
if (!set) {
int oldWidth = (int)firstColumn.width ();
if (oldWidth >= newWidth) return false;
}
firstColumn.setWidth (newWidth);
if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false);
return true;
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
boolean setScrollWidth (TableItem item) {
if (columnCount != 0) return false;
if (!getDrawing()) return false;
if (currentItem != null) {
if (currentItem != item) fixScrollWidth = true;
return false;
}
GC gc = new GC (this);
int newWidth = item.calculateWidth (0, gc, isSelected(indexOf(item)));
gc.dispose ();
int oldWidth = (int)firstColumn.width ();
if (oldWidth < newWidth) {
firstColumn.setWidth (newWidth);
if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false);
return true;
}
return false;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
redraw = getDrawing () && OS.IsWindowVisible (handle);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
return false;
if (!force && (!getDrawing () || !OS.IsWindowVisible (handle))) {
fixScrollWidth = true;
return false;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (currentItem == null && getDrawing () && OS.IsWindowVisible (handle)) {
OS.SendMessage (handle, OS.LVM_REDRAWITEMS, 0, count - 1);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
item.cached = false;
if (currentItem == null && getDrawing () && OS.IsWindowVisible (handle)) {
OS.SendMessage (handle, OS.LVM_REDRAWITEMS, index, index);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
item.cached = false;
if (currentItem == null && getDrawing () && OS.IsWindowVisible (handle)) {
OS.SendMessage (handle, OS.LVM_REDRAWITEMS, index, index);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (currentItem == null && getDrawing () && OS.IsWindowVisible (handle)) {
OS.SendMessage (handle, OS.LVM_REDRAWITEMS, start, end);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
boolean redraw = getDrawing () && OS.IsWindowVisible (handle);
if (redraw) OS.SendMessage (handle, OS.WM_SETREDRAW, 0, 0);
int index = itemCount - 1;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (columnCount > H_SCROLL_LIMIT) {
int rowCount = (int)/*64*/OS.SendMessage (handle, OS.LVM_GETCOUNTPERPAGE, 0, 0);
if (rowCount > V_SCROLL_LIMIT) fixScroll = getDrawing () && OS.IsWindowVisible (handle);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (columnCount > H_SCROLL_LIMIT) {
int rowCount = (int)/*64*/OS.SendMessage (handle, OS.LVM_GETCOUNTPERPAGE, 0, 0);
if (rowCount > V_SCROLL_LIMIT) fixScroll = getDrawing () && OS.IsWindowVisible (handle);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
redraw = findImageControl () != null && getDrawing () && OS.IsWindowVisible (handle);
if (redraw) {
内容来源于网络,如有侵权,请联系作者删除!