maxdrawn = size_not.union( size_up ); maxdrawn = maxdrawn.union( size_left ); maxdrawn = maxdrawn.union( size_fn ); maxdrawn = maxdrawn.union( size_rightval ); maxdrawn = maxdrawn.union( size_rightex ); maxdrawn.width += 100; } else { for ( int i = 0; i < size_cond.length; i++ ) { if ( size_cond[i] != null ) { maxdrawn = maxdrawn.union( size_cond[i] ); for ( int i = 0; i < size_oper.length; i++ ) { if ( size_oper[i] != null ) { maxdrawn = maxdrawn.union( size_oper[i] );
bounds = bounds.union( b );
/** * Something has changed, requiring redraw. Redraw the decoration and update * the hover text if appropriate. */ protected void update() { if (control == null || control.isDisposed()) { return; } Rectangle rect = getDecorationRectangle(control.getShell()); // If this update is happening due to an image reset, we need to make // sure we clear the area from the old image. // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=212501 if (previousDecorationRectangle != null) { rect = rect.union(previousDecorationRectangle); } // Redraw this rectangle in all children control.getShell() .redraw(rect.x, rect.y, rect.width, rect.height, true); control.getShell().update(); if (hover != null && getDescriptionText() != null) { hover.setText(getDescriptionText(), getDecorationRectangle(control .getParent()), control); } previousDecorationRectangle = null; }
/** * Something has changed, requiring redraw. Redraw the decoration and update * the hover text if appropriate. */ protected void update() { if (control == null || control.isDisposed()) { return; } Rectangle rect = getDecorationRectangle(control.getShell()); // If this update is happening due to an image reset, we need to make // sure we clear the area from the old image. // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=212501 if (previousDecorationRectangle != null) { rect = rect.union(previousDecorationRectangle); } // Redraw this rectangle in all children control.getShell() .redraw(rect.x, rect.y, rect.width, rect.height, true); control.getShell().update(); if (hover != null && getDescriptionText() != null) { hover.setText(getDescriptionText(), getDecorationRectangle(control .getParent()), control); } previousDecorationRectangle = null; }
Rectangle rect1 = items[end].getBounds(columnOrder[0]); Rectangle rect2 = items[end].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else { Rectangle rect1 = items[start].getBounds(columnOrder[0]); Rectangle rect2 = items[start].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else {
Rectangle rect1 = items[end].getBounds(columnOrder[0]); Rectangle rect2 = items[end].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else { Rectangle rect1 = items[start].getBounds(columnOrder[0]); Rectangle rect2 = items[start].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else {
Rectangle rect1 = items[end].getBounds(columnOrder[0]); Rectangle rect2 = items[end].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else { Rectangle rect1 = items[start].getBounds(columnOrder[0]); Rectangle rect2 = items[start].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else {
Rectangle rect1 = items[end].getBounds(columnOrder[0]); Rectangle rect2 = items[end].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else { Rectangle rect1 = items[start].getBounds(columnOrder[0]); Rectangle rect2 = items[start].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else {
Rectangle rect1 = items[end].getBounds(columnOrder[0]); Rectangle rect2 = items[end].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else { Rectangle rect1 = items[start].getBounds(columnOrder[0]); Rectangle rect2 = items[start].getBounds(columnOrder[columnOrder.length - 1]); bounds = rect1.union(rect2); bounds.height += tree.getLinesVisible() ? tree.getGridLineWidth() : 0; } else {
Rectangle bounds = DPIUtil.autoScaleUp(selection[0].getBounds(0)); for (int i = 1; i < count; i++) { bounds = bounds.union(DPIUtil.autoScaleUp(selection[i].getBounds(0)));
Rectangle bounds = DPIUtil.autoScaleUp(selection[0].getBounds(0)); for (int i = 1; i < count; i++) { bounds = bounds.union(DPIUtil.autoScaleUp(selection[i].getBounds(0)));
GC gc = GC.cocoa_new (this, data); gc.setClipping ((int)(contentRect.x - offsetX), (int)(contentRect.y - offsetY), (int)contentRect.width, (int)contentRect.height); Rectangle itemRect = insertItem.getImageBounds(0).union(insertItem.getBounds()); Rectangle clientRect = getClientArea(); int x = clientRect.x + clientRect.width;