當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。