Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Region.dispose()


            gc.setClipping(reg);
           
            getGroup().drawBackground(gc, 0, 0, getGroup().getSize().x,getGroup().getSize().y);
           
            gc.setClipping((Region)null);
            reg.dispose();
        }
       
       
       
View Full Code Here


        }

        if ((getGroup().getStyle() & SWT.SMOOTH) != 0)
        {
            gc.setClipping((Region)null);
            reg.dispose();
        }

        // Paint Image

        if (image != null)
View Full Code Here

                GraphicUtils.drawRoundRectangle(gc, 0, titleHeight, getGroup().getSize().x - 1,
                                                getGroup().getSize().y - titleHeight, null, false,
                                                true);

                reg.dispose();
                gc.setClipping((Region)null);
            }
            else
            {
                gc.setForeground(_borderColor);
View Full Code Here

            Color originalBackgroundColor = gc.getBackground();
            gc.setBackground(incompleteRegionColor);
            gc.fillRectangle(incompleteRegion.getBounds());
            gc.setBackground(originalBackgroundColor);

            incompleteRegion.dispose();
        }

        super.paintCell(cell, gc, rectangle, configRegistry);
    }
View Full Code Here

      gc.setBackground(colorGB2.getBgColor1());
      gc.fillPolygon(polygon2);
    }

    region1.dispose();
    region2.dispose();
  }
}
View Full Code Here

          }
          // Setup clipping and the FDC
          Region clipRegion = new Region();
          event.gc.getClipping(clipRegion);
          paintFDC.gc.setClipping(clipRegion);
          clipRegion.dispose();

          paintFDC.xOffset = displayFDC.xOffset;
          paintFDC.yOffset = displayFDC.yOffset;
          paintFDC.xScale = displayFDC.xScale;
          paintFDC.yScale = displayFDC.yScale;
View Full Code Here

    if (!isRubberbandHidden()) {
      Region region = new Region();
      rubberband.addDamagedRegion(displayFDC, region);
      Rectangle r = region.getBounds();
      paintCanvas.redraw(r.x, r.y, r.width, r.height, true);
      region.dispose();
    }
    rubberband.clear();

  }
View Full Code Here

    if (rubberbandHiddenNestingCount++ <= 0) {
      Region region = new Region();
      rubberband.addDamagedRegion(displayFDC, region);
      Rectangle r = region.getBounds();
      paintCanvas.redraw(r.x, r.y, r.width, r.height, true);
      region.dispose();
    }
  }

  /**
   * Determines if the rubberband is hidden.
View Full Code Here

      if (width > 0) {
        Region region = new Region();
        gc.getClipping(region);
        region.add(event.x, event.y, width, event.height);
        gc.setClipping(region);
        region.dispose();
      }
    }
  }

  /**
 
View Full Code Here

            if ( width > 0 ) {
              Region region = new Region();
              gc.getClipping( region );
              region.add( event.x, event.y, width, event.height );
              gc.setClipping( region );
              region.dispose();
            }
          }
          gc.setAdvanced( true );
          if ( gc.getAdvanced() )
            gc.setAlpha( 127 );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.