Search in sources :

Example 6 with RichTooltip

use of org.gephi.ui.components.richtooltip.RichTooltip in project gephi by gephi.

the class DynamicSettingsPanel method buildTooltip.

private RichTooltip buildTooltip() {
    String name = NbBundle.getMessage(DynamicSettingsPanel.class, "DynamicSettingsPanel.infoLabel.name");
    String description = NbBundle.getMessage(DynamicSettingsPanel.class, "DynamicSettingsPanel.infoLabel.description");
    RichTooltip richTooltip = new RichTooltip(name, description);
    Image image = ImageUtilities.loadImage("org/gephi/desktop/statistics/resources/infolabel_details.png");
    richTooltip.setMainImage(image);
    return richTooltip;
}
Also used : RichTooltip(org.gephi.ui.components.richtooltip.RichTooltip) Image(java.awt.Image)

Aggregations

RichTooltip (org.gephi.ui.components.richtooltip.RichTooltip)6 MouseAdapter (java.awt.event.MouseAdapter)2 MouseEvent (java.awt.event.MouseEvent)2 Image (java.awt.Image)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 ItemEvent (java.awt.event.ItemEvent)1 ItemListener (java.awt.event.ItemListener)1 NumberFormat (java.text.NumberFormat)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 JMenuItem (javax.swing.JMenuItem)1 JPopupMenu (javax.swing.JPopupMenu)1 JSeparator (javax.swing.JSeparator)1 Preset (org.gephi.desktop.layout.LayoutPresetPersistence.Preset)1 LayoutBuilder (org.gephi.layout.spi.LayoutBuilder)1 LayoutUI (org.gephi.layout.spi.LayoutUI)1 NotifyDescriptor (org.openide.NotifyDescriptor)1