org.eclipse.swt.widgets.Canvas.addMouseTrackListener()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中org.eclipse.swt.widgets.Canvas.addMouseTrackListener()方法的一些代码示例,展示了Canvas.addMouseTrackListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.addMouseTrackListener()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:addMouseTrackListener

Canvas.addMouseTrackListener介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

canvas.addMouseTrackListener( this );
canvas.addMouseWheelListener( this );

代码示例来源:origin: pentaho/pentaho-kettle

canvas.addMouseTrackListener( this );
canvas.addMouseWheelListener( this );
canvas.addKeyListener( this );

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void addMouseTrackListener(MouseTrackListener listener) {
  super.addMouseTrackListener(listener);
  addListener(MouseTrackListener.class, listener);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void addMouseTrackListener(MouseTrackListener listener) {
  super.addMouseTrackListener(listener);
  addListener(MouseTrackListener.class, listener);
}

代码示例来源:origin: BiglySoftware/BiglyBT

super.initialize(canvas);
canvas.addMouseTrackListener(new MouseTrackListener() {
   @Override
   public void mouseHover(MouseEvent e) {

代码示例来源:origin: BiglySoftware/BiglyBT

fileInfoCanvas.addMouseTrackListener(
  new MouseTrackAdapter()

代码示例来源:origin: BiglySoftware/BiglyBT

canvas.addMouseTrackListener(new MouseTrackListener() {
  @Override
  public void mouseHover(MouseEvent e) {

代码示例来源:origin: BiglySoftware/BiglyBT

canvas.addMouseTrackListener(new MouseTrackAdapter() {
  @Override
  public void mouseHover(MouseEvent e) {
 canvas.addMouseTrackListener(new MouseTrackListener() {
    @Override
    public void mouseHover(MouseEvent e) {

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

protected void adjustItemNumber() {
  if (fComposite == null)
    return;
  Control[] children= fComposite.getChildren();
  int oldSize= children.length;
  int newSize= fInput == null ? 0 : fInput.fAnnotations.length;
  Display display= fShell.getDisplay();
  // add missing items
  for (int i= oldSize; i < newSize; i++) {
    Canvas canvas= new Canvas(fComposite, SWT.NONE);
    Object gridData= fLayouter.getLayoutData();
    canvas.setLayoutData(gridData);
    canvas.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
    canvas.addPaintListener(fPaintListener);
    canvas.addMouseTrackListener(fMouseTrackListener);
    canvas.addMouseListener(fMouseListener);
    canvas.addListener(SWT.MenuDetect, fMenuDetectListener);
    canvas.addDisposeListener(fDisposeListener);
  }
  // dispose of exceeding resources
  for (int i= oldSize; i > newSize; i--) {
    Item item= (Item) children[i - 1].getData();
    item.deselect();
    children[i - 1].dispose();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

pieceInfoCanvas.addMouseTrackListener(
  new MouseTrackAdapter()

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

protected void adjustItemNumber() {
  if (fComposite == null)
    return;
  Control[] children= fComposite.getChildren();
  int oldSize= children.length;
  int newSize= fInput == null ? 0 : fInput.fAnnotations.length;
  Display display= fShell.getDisplay();
  // add missing items
  for (int i= oldSize; i < newSize; i++) {
    Canvas canvas= new Canvas(fComposite, SWT.NONE);
    Object gridData= fLayouter.getLayoutData();
    canvas.setLayoutData(gridData);
    canvas.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
    canvas.addPaintListener(fPaintListener);
    canvas.addMouseTrackListener(fMouseTrackListener);
    canvas.addMouseListener(fMouseListener);
    canvas.addListener(SWT.MenuDetect, fMenuDetectListener);
    canvas.addDisposeListener(fDisposeListener);
  }
  // dispose of exceeding resources
  for (int i= oldSize; i > newSize; i--) {
    Item item= (Item) children[i - 1].getData();
    item.deselect();
    children[i - 1].dispose();
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

protected void adjustItemNumber() {
  if (fComposite == null)
    return;
  Control[] children= fComposite.getChildren();
  int oldSize= children.length;
  int newSize= fInput == null ? 0 : fInput.fAnnotations.length;
  Display display= fShell.getDisplay();
  // add missing items
  for (int i= oldSize; i < newSize; i++) {
    Canvas canvas= new Canvas(fComposite, SWT.NONE);
    Object gridData= fLayouter.getLayoutData();
    canvas.setLayoutData(gridData);
    canvas.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
    canvas.addPaintListener(fPaintListener);
    canvas.addMouseTrackListener(fMouseTrackListener);
    canvas.addMouseListener(fMouseListener);
    canvas.addListener(SWT.MenuDetect, fMenuDetectListener);
    canvas.addDisposeListener(fDisposeListener);
  }
  // dispose of exceeding resources
  for (int i= oldSize; i > newSize; i--) {
    Item item= (Item) children[i - 1].getData();
    item.deselect();
    children[i - 1].dispose();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

canvas.addMouseTrackListener(new MouseTrackListener() {
  @Override
  public void mouseHover(MouseEvent e) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

fHeader.addMouseTrackListener(new MouseTrackAdapter() {

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

fHeader.addMouseTrackListener(new MouseTrackAdapter() {

相关文章

Canvas类方法