public class JTabbedPaneSmartIconManager
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
As JTabbedPanes cannot use any JComponents as tab selectors (the access if protected and we just have a label, an icon and a tooltip), we have to rely on tricks to bypass them.
This class is used (with a mouse listener) to forward events into the smart icon. which is responsible for faking an enhanced tab selector (including label and optional buttons).
Constructor and Description |
---|
JTabbedPaneSmartIconManager(javax.swing.JTabbedPane tabbedPane)
Constructs a new tabbedPane manager for a given JTabbedPane
|
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
MouseListener implementation, not used.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
MouseMotionListener implementation, not used.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
MouseListener implementation, not used.
|
void |
mouseExited(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds
and forward them to the appropriate smart icon.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds
and forward them to the appropriate smart icon.
|
void |
mousePressed(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds
and forward them to the appropriate smart icon.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds
and forward them to the appropriate smart icon.
|
public JTabbedPaneSmartIconManager(javax.swing.JTabbedPane tabbedPane)
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.