Package org.eclipse.swt.graphics

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


      if (displayImage != null)
        displayImage.dispose();
      if (printerGC != null)
        printerGC.dispose();
      if (printerTransform != null)
        printerTransform.dispose();
    }
  }

  private static final int PAPER_MARGIN = 10;
  private static final int PAPER_BORDER_WIDTH = 1;
View Full Code Here


            gc.setForeground(fore);
            gc.drawFocus(-1, -1, 12, 12);
        }

        gc.setTransform(null);
        transform.dispose();
    }

    public Point computeSize(GC gc, int wHint, int hHint, Object value)
    {
        // TODO Auto-generated method stub
View Full Code Here

            gc.drawRectangle(4, 3, 9, 9);
            gc.drawLine(4, 5, 13, 5);
        }

        gc.setTransform(null);
        transform.dispose();

    }

    public Point computeSize(GC gc, int wHint, int hHint, Object value)
    {
View Full Code Here

            gc.setForeground(fore);
            gc.drawFocus(2, 2, 13, 12);
        }

        gc.setTransform(null);
        transform.dispose();

    }

    public Point computeSize(GC gc, int wHint, int hHint, Object value)
    {
View Full Code Here

            gc.setForeground(fore);
            gc.drawFocus(-1, -1, 11, 11);
        }

        gc.setTransform(null);
        transform.dispose();
    }

    public Point computeSize(GC gc, int wHint, int hHint, Object value)
    {
        // TODO Auto-generated method stub
View Full Code Here

    gc.setTransform(transform);
   
    gc.drawImage(image, imageBounds.x, imageBounds.y);
   
    gc.setTransform(null);
    transform.dispose();
  }

  private void paintText(GC gc, StripItem item) {
    if (!hasText(item)) {
      return;
View Full Code Here

   
    Image image = stripItem.getImage();
    gc.drawImage(image, imageBounds.x, imageBounds.y);
   
    gc.setTransform(null);
    transform.dispose();
  }

  private void paintStripItemText(GC gc, StripItem stripItem) {
    if (!stripItem.hasText()) {
      return;
View Full Code Here

    gc.setTransform(transform);
   
    gc.drawText(text, textBounds.x, textBounds.y, true);
   
    gc.setTransform(null);
    transform.dispose();
  }

  private void paintCloseButton(GC gc, StripItem item) {
    Display display = getDisplay();
    Image closeButtonImage = getCloseButtonImage(false);
View Full Code Here

    gc.setTransform(transform);
   
    gc.drawImage(closeButtonImage, closeButtonBounds.x, closeButtonBounds.y);
   
    gc.setTransform(null);
    transform.dispose();
  }

  private void paintBorder(GC gc, StripItem item) {
    Display display = Display.getDefault();
    Color oldFore = gc.getForeground();
View Full Code Here

            tr.translate((int) (-((double) bounds.width / 2 + x)),
                (int) (-((double) bounds.height / 2 + y)));
            gc.setTransform(tr);
            gc.drawImage(robot.getImage(), x, y);

            tr.dispose();
          }
        }
        gc.dispose();
      }
    });
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.