Package javax.swing

Examples of javax.swing.ToolTipManager$insideTimerAction


        this.defaultDirectoryForSaveAs = null;
        this.enforceFileExtensions = true;

        // initialize ChartPanel-specific tool tip delays with
        // values the from ToolTipManager.sharedInstance()
        ToolTipManager ttm = ToolTipManager.sharedInstance();
        this.toolTipInitialDelay = ttm.getInitialDelay();
        this.toolTipDismissDelay = ttm.getDismissDelay();
        this.toolTipReshowDelay = ttm.getReshowDelay();

        this.zoomAroundAnchor = false;
        this.zoomOutlinePaint = Color.BLUE;
        this.zoomFillPaint = new Color(0, 0, 255, 63);
View Full Code Here


     * @param e  the mouse event.
     */
    @Override
    public void mouseEntered(MouseEvent e) {
        if (!this.toolTipSettingsActive) {
            ToolTipManager ttm = ToolTipManager.sharedInstance();
            this.originalToolTipInitialDelay = ttm.getInitialDelay();
            ttm.setInitialDelay(this.toolTipInitialDelay);
            this.originalToolTipDismissDelay = ttm.getDismissDelay();
            ttm.setDismissDelay(this.toolTipDismissDelay);
            this.originalToolTipReshowDelay = ttm.getReshowDelay();
            ttm.setReshowDelay(this.toolTipReshowDelay);
            this.toolTipSettingsActive = true;
        }

        if (this.liveMouseHandler != null) {
             this.liveMouseHandler.mouseEntered(e);
View Full Code Here

     */
    @Override
    public void mouseExited(MouseEvent e) {
        if (this.toolTipSettingsActive) {
            // restore original tooltip dealys
            ToolTipManager ttm = ToolTipManager.sharedInstance();
            ttm.setInitialDelay(this.originalToolTipInitialDelay);
            ttm.setDismissDelay(this.originalToolTipDismissDelay);
            ttm.setReshowDelay(this.originalToolTipReshowDelay);
            this.toolTipSettingsActive = false;
        }

        if (this.liveMouseHandler != null) {
            this.liveMouseHandler.mouseExited(e);
View Full Code Here

        this.enforceFileExtensions = true;

        // initialize ChartPanel-specific tool tip delays with
        // values the from ToolTipManager.sharedInstance()
        ToolTipManager ttm = ToolTipManager.sharedInstance();      
        this.ownToolTipInitialDelay = ttm.getInitialDelay();
        this.ownToolTipDismissDelay = ttm.getDismissDelay();
        this.ownToolTipReshowDelay = ttm.getReshowDelay();

    }
View Full Code Here

     *
     * @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;
        }
    }
View Full Code Here

     * @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;
        }
    }
View Full Code Here

  }
 
  public static void showToolTipNow( JComponent component )
  {
    // HACKHACK: trick the tooltip manager into showing the tooltip right now
    ToolTipManager manager = ToolTipManager.sharedInstance();
    int oldDelay = manager.getInitialDelay();
    manager.setInitialDelay( 0 );
    manager.mouseMoved( new MouseEvent(
      component,
      MouseEvent.MOUSE_MOVED,
      System.currentTimeMillis(),
      0, 0, 0, 0, false
    ) );
    manager.setInitialDelay( oldDelay );
  }
View Full Code Here

TOP

Related Classes of javax.swing.ToolTipManager$insideTimerAction

Copyright © 2018 www.massapicom. 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.