protected void drawRect( Rectangle rect ) { if ( rect == null ) { return; } gc.setLineStyle( ELineStyle.DASHDOT ); gc.setLineWidth( linewidth ); gc.setForeground( EColor.GRAY ); // PDI-2619: SWT on Windows doesn't cater for negative rect.width/height so handle here. Point s = real2screen( rect.x, rect.y ); if ( rect.width < 0 ) { s.x = s.x + rect.width; } if ( rect.height < 0 ) { s.y = s.y + rect.height; } gc.drawRectangle( s.x, s.y, Math.abs( rect.width ), Math.abs( rect.height ) ); gc.setLineStyle( ELineStyle.SOLID ); }
gc.setLineWidth( activeLinewidth ); gc.setLineWidth( linewidth );
int[] line = getLine( jobHop.getFromEntry(), jobHop.getToEntry() ); gc.setLineWidth( linewidth ); EColor col; gc.setLineWidth( linewidth + 2 ); gc.setLineWidth( linewidth );
protected void drawNote( NotePadMeta notePadMeta ) { if ( notePadMeta.isSelected() ) { gc.setLineWidth( 2 ); } else { gc.setLineWidth( 1 ); gc.setLineWidth( 1 ); } else { gc.setLineWidth( 2 );
gc.setLineWidth( 3 ); } else { gc.setLineWidth( 1 ); gc.setLineWidth( 1 ); gc.setLineWidth( 1 ); gc.fillRoundRectangle( areaX, areaY, totalWidth, totalHeight, BasePainter.CORNER_RADIUS_5, BasePainter.CORNER_RADIUS_5 );
gc.setLineWidth( 1 ); gc.setForeground( EColor.GRAY ); gc.setBackground( EColor.BACKGROUND ); gc.setLineWidth( 1 ); gc.setForeground( EColor.GRAY ); gc.setBackground( EColor.BACKGROUND ); gc.setLineWidth( 1 ); gc.setForeground( EColor.RED ); gc.setBackground( EColor.BACKGROUND ); gc.setLineWidth( linewidth + 2 ); } else { gc.setLineWidth( linewidth ); gc.setLineWidth( 1 ); gc.fillRoundRectangle( areaX, areaY, totalWidth, totalHeight, BasePainter.CORNER_RADIUS_5, BasePainter.CORNER_RADIUS_5 );
gc.setLineWidth( linewidth + 1 ); if ( System.currentTimeMillis() % 2000 > 1000 ) { gc.setForeground( EColor.BACKGROUND );
gc.setLineWidth( 1 ); gc.fillRoundRectangle( popupX, popupY, popupWidth, popupHeight, 7, 7 );
gc.setLineWidth( 2 ); gc.setForeground( EColor.RED ); Point n = noInputEntry.getLocation();
gc.setLineWidth( 2 ); gc.setForeground( EColor.RED ); Point n = noInputStep.getLocation();