当前位置: 首页>>代码示例>>Java>>正文


Java ToolTipManager.setReshowDelay方法代码示例

本文整理汇总了Java中javax.swing.ToolTipManager.setReshowDelay方法的典型用法代码示例。如果您正苦于以下问题:Java ToolTipManager.setReshowDelay方法的具体用法?Java ToolTipManager.setReshowDelay怎么用?Java ToolTipManager.setReshowDelay使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.ToolTipManager的用法示例。


在下文中一共展示了ToolTipManager.setReshowDelay方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: mouseEntered

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse entered' event. This method changes the tooltip delays of
 * ToolTipManager.sharedInstance() to the possibly different values set for this chart panel.
 * 
 * @param e
 *            the mouse event.
 */

@Override
public void mouseEntered(MouseEvent e) {
	if (!this.ownToolTipDelaysActive) {
		ToolTipManager ttm = ToolTipManager.sharedInstance();

		this.originalToolTipInitialDelay = ttm.getInitialDelay();
		ttm.setInitialDelay(this.ownToolTipInitialDelay);

		this.originalToolTipReshowDelay = ttm.getReshowDelay();
		ttm.setReshowDelay(this.ownToolTipReshowDelay);

		this.originalToolTipDismissDelay = ttm.getDismissDelay();
		ttm.setDismissDelay(this.ownToolTipDismissDelay);

		this.ownToolTipDelaysActive = true;
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:26,代码来源:AbstractChartPanel.java

示例2: mouseEntered

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse entered' event. This method changes the tooltip delays of
 * ToolTipManager.sharedInstance() to the possibly
 * different values set for this chart panel. 
 *
 * @param e  the mouse event.
 */
public void mouseEntered(MouseEvent e) {
    if (!this.ownToolTipDelaysActive) {
        ToolTipManager ttm = ToolTipManager.sharedInstance();
        
        this.originalToolTipInitialDelay = ttm.getInitialDelay();
        ttm.setInitialDelay(this.ownToolTipInitialDelay);

        this.originalToolTipReshowDelay = ttm.getReshowDelay();
        ttm.setReshowDelay(this.ownToolTipReshowDelay);
        
        this.originalToolTipDismissDelay = ttm.getDismissDelay();
        ttm.setDismissDelay(this.ownToolTipDismissDelay);

        this.ownToolTipDelaysActive = true;
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:ChartPanel.java

示例3: mouseEntered

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse entered' event. This method changes the tooltip delays
 * of ToolTipManager.sharedInstance() to the possibly different values set 
 * for this chart panel. 
 *
 * @param e  the mouse event.
 */
public void mouseEntered(MouseEvent e) {
    if (!this.ownToolTipDelaysActive) {
        ToolTipManager ttm = ToolTipManager.sharedInstance();
        
        this.originalToolTipInitialDelay = ttm.getInitialDelay();
        ttm.setInitialDelay(this.ownToolTipInitialDelay);

        this.originalToolTipReshowDelay = ttm.getReshowDelay();
        ttm.setReshowDelay(this.ownToolTipReshowDelay);
        
        this.originalToolTipDismissDelay = ttm.getDismissDelay();
        ttm.setDismissDelay(this.ownToolTipDismissDelay);

        this.ownToolTipDelaysActive = true;
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:ChartPanel.java

示例4: main

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
public static void main(String[] args) throws InterruptedException {
    ToolTipManager manager = ToolTipManager.sharedInstance();
    if (DISMISS != manager.getDismissDelay()) {
        throw new Error("unexpected dismiss delay");
    }
    if (INITIAL != manager.getInitialDelay()) {
        throw new Error("unexpected initial delay");
    }
    if (RESHOW != manager.getReshowDelay()) {
        throw new Error("unexpected reshow delay");
    }
    manager.setDismissDelay(DISMISS + 1);
    manager.setInitialDelay(INITIAL + 1);
    manager.setReshowDelay(RESHOW + 1);

    ThreadGroup group = new ThreadGroup("$$$");
    Thread thread = new Thread(group, new Test6657026());
    thread.start();
    thread.join();
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:21,代码来源:Test6657026.java

示例5: mouseEntered

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse entered' event. This method changes the tooltip delays
 * of ToolTipManager.sharedInstance() to the possibly different values set
 * for this chart panel.
 *
 * @param e  the mouse event.
 */
@Override
public void mouseEntered(MouseEvent e) {
    if (!this.ownToolTipDelaysActive) {
        ToolTipManager ttm = ToolTipManager.sharedInstance();

        this.originalToolTipInitialDelay = ttm.getInitialDelay();
        ttm.setInitialDelay(this.ownToolTipInitialDelay);

        this.originalToolTipReshowDelay = ttm.getReshowDelay();
        ttm.setReshowDelay(this.ownToolTipReshowDelay);

        this.originalToolTipDismissDelay = ttm.getDismissDelay();
        ttm.setDismissDelay(this.ownToolTipDismissDelay);

        this.ownToolTipDelaysActive = true;
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:25,代码来源:ChartPanel.java

示例6: mouseEntered

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse entered' event. This method changes the tooltip delays
 * of ToolTipManager.sharedInstance() to the possibly different values set
 * for this chart panel.
 *
 * @param e  the mouse event.
 */
public void mouseEntered(MouseEvent e) {
    if (!this.ownToolTipDelaysActive) {
        ToolTipManager ttm = ToolTipManager.sharedInstance();

        this.originalToolTipInitialDelay = ttm.getInitialDelay();
        ttm.setInitialDelay(this.ownToolTipInitialDelay);

        this.originalToolTipReshowDelay = ttm.getReshowDelay();
        ttm.setReshowDelay(this.ownToolTipReshowDelay);

        this.originalToolTipDismissDelay = ttm.getDismissDelay();
        ttm.setDismissDelay(this.ownToolTipDismissDelay);

        this.ownToolTipDelaysActive = true;
    }
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:24,代码来源:ChartPanel.java

示例7: MapPanel

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
public MapPanel() {
	MPAdapter ad = new MPAdapter();
	addComponentListener(ad);

	poly = new ArrayList<MapPoly>();
	// map = new BufferedImage(1600, 800, BufferedImage.TYPE_INT_RGB);
	// grat = new BufferedImage(1600, 800, BufferedImage.TYPE_4BYTE_ABGR);

	// setOrtho();
	setWinkel();

	setToolTipText("Hover for tile info");
	ToolTipManager tm = ToolTipManager.sharedInstance();
	tm.setDismissDelay(999999);
	tm.setInitialDelay(0);
	tm.setReshowDelay(0);
}
 
开发者ID:open744,项目名称:terramaster,代码行数:18,代码来源:MapPanel.java

示例8: mouseExited

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse exited' event. This method resets the tooltip delays of
 * ToolTipManager.sharedInstance() to their original values in effect before mouseEntered()
 * 
 * @param e
 *            the mouse event.
 */

@Override
public void mouseExited(MouseEvent e) {
	if (this.ownToolTipDelaysActive) {
		// restore original tooltip dealys
		ToolTipManager ttm = ToolTipManager.sharedInstance();
		ttm.setInitialDelay(this.originalToolTipInitialDelay);
		ttm.setReshowDelay(this.originalToolTipReshowDelay);
		ttm.setDismissDelay(this.originalToolTipDismissDelay);
		this.ownToolTipDelaysActive = false;
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:20,代码来源:AbstractChartPanel.java

示例9: mouseExited

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse exited' event. This method resets the tooltip delays of
 * ToolTipManager.sharedInstance() to their
 * original values in effect before mouseEntered()
 *
 * @param e  the mouse event.
 */
public void mouseExited(MouseEvent e) {
    if (this.ownToolTipDelaysActive) {
        // restore original tooltip dealys 
        ToolTipManager ttm = ToolTipManager.sharedInstance();       
        ttm.setInitialDelay(this.originalToolTipInitialDelay);
        ttm.setReshowDelay(this.originalToolTipReshowDelay);
        ttm.setDismissDelay(this.originalToolTipDismissDelay);
        this.ownToolTipDelaysActive = false;
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:ChartPanel.java

示例10: mouseExited

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse exited' event. This method resets the tooltip delays of
 * ToolTipManager.sharedInstance() to their
 * original values in effect before mouseEntered()
 *
 * @param e  the mouse event.
 */
@Override
public void mouseExited(MouseEvent e) {
    if (this.ownToolTipDelaysActive) {
        // restore original tooltip dealys
        ToolTipManager ttm = ToolTipManager.sharedInstance();
        ttm.setInitialDelay(this.originalToolTipInitialDelay);
        ttm.setReshowDelay(this.originalToolTipReshowDelay);
        ttm.setDismissDelay(this.originalToolTipDismissDelay);
        this.ownToolTipDelaysActive = false;
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:19,代码来源:ChartPanel.java

示例11: setupToolTipManager

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
private void setupToolTipManager() {
	// setup tool tip text manager
	ToolTipManager manager = ToolTipManager.sharedInstance();
	manager.setDismissDelay(25000); // original: 4000
	manager.setInitialDelay(1500);   // original: 750
	manager.setReshowDelay(50);    // original: 500
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:8,代码来源:RapidMinerGUI.java

示例12: initializeTooltipDelay

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Sets up the application-wide tooltip delay.
 */
private static void initializeTooltipDelay() {
  final ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
  toolTipManager.setDismissDelay(60000);
  toolTipManager.setInitialDelay(1000);
  toolTipManager.setReshowDelay(1000);
}
 
开发者ID:google,项目名称:binnavi,代码行数:10,代码来源:GuiInitializer.java

示例13: mouseExited

import javax.swing.ToolTipManager; //导入方法依赖的package包/类
/**
 * Handles a 'mouse exited' event. This method resets the tooltip delays of
 * ToolTipManager.sharedInstance() to their
 * original values in effect before mouseEntered()
 *
 * @param e  the mouse event.
 */
public void mouseExited(MouseEvent e) {
    if (this.ownToolTipDelaysActive) {
        // restore original tooltip dealys
        ToolTipManager ttm = ToolTipManager.sharedInstance();
        ttm.setInitialDelay(this.originalToolTipInitialDelay);
        ttm.setReshowDelay(this.originalToolTipReshowDelay);
        ttm.setDismissDelay(this.originalToolTipDismissDelay);
        this.ownToolTipDelaysActive = false;
    }
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:18,代码来源:ChartPanel.java


注:本文中的javax.swing.ToolTipManager.setReshowDelay方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。