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


Java UIUtils.loadImageIcon方法代码示例

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


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

示例1: addIcon

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
protected void addIcon(final ModelessDialog dlg) {
    String iconName = getIcon();
    if (iconName == null) {
        //setIcon(dlg, IconUtils.esaPlanetIcon);
    } else if (iconName.equals("esaIcon")) {
        setIcon(dlg, esaPlanetIcon);
    } else if (iconName.equals("rstbIcon")) {
        setIcon(dlg, rstbIcon);
    } else if (iconName.equals("geoAusIcon")) {
        setIcon(dlg, geoAusIcon);
    } else {
        final ImageIcon icon = UIUtils.loadImageIcon(iconName, OperatorAction.class);
        if (icon != null)
            setIcon(dlg, icon);
    }
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:17,代码来源:OperatorAction.java

示例2: loadIcons

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
private static void loadIcons() {
    updateIcon = UIUtils.loadImageIcon("/org/esa/snap/productlibrary/icons/refresh24.png", ProductLibraryToolView.class);
    searchIcon = UIUtils.loadImageIcon("/org/esa/snap/productlibrary/icons/search24.png", ProductLibraryToolView.class);
    stopIcon = UIUtils.loadImageIcon("icons/Stop24.gif");
    addButtonIcon = UIUtils.loadImageIcon("icons/Plus24.gif");
    removeButtonIcon = UIUtils.loadImageIcon("icons/Minus24.gif");
    helpIcon = UIUtils.loadImageIcon("icons/Help24.gif");
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:9,代码来源:ProductLibraryToolView.java

示例3: loadIcons

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
private static void loadIcons() {
    processIcon = UIUtils.loadImageIcon("icons/Play24.png");
    processRolloverIcon = ToolButtonFactory.createRolloverIcon(processIcon);
    stopIcon = UIUtils.loadImageIcon("icons/Stop24.gif");
    stopRolloverIcon = ToolButtonFactory.createRolloverIcon(stopIcon);
    monitorStartIcon = UIUtils.loadImageIcon("/org/esa/snap/productlibrary/icons/run24.png", AOIMonitoringToolView.class);
    monitorStartRolloverIcon = ToolButtonFactory.createRolloverIcon(monitorStartIcon);
    monitorStopIcon = UIUtils.loadImageIcon("/org/esa/snap/productlibrary/icons/run-red24.png", AOIMonitoringToolView.class);
    monitorStopRolloverIcon = ToolButtonFactory.createRolloverIcon(monitorStopIcon);
    clearIcon = TangoIcons.actions_edit_clear(TangoIcons.Res.R22);
    helpIcon = TangoIcons.apps_help_browser(TangoIcons.Res.R22);
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:13,代码来源:AOIMonitoringToolView.java

示例4: VisibilityHR

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
VisibilityHR() {
    ImageIcon icon = UIUtils.loadImageIcon("icons/EyeIcon10.gif");
    this.setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    this.setText(null);
    this.setIcon(icon);
    this.setHorizontalAlignment(SwingConstants.CENTER);
    this.setPreferredSize(this.getPreferredSize());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:9,代码来源:MaskTable.java

示例5: loadIcon

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
private ImageIcon loadIcon(String iconPath) {
    final ImageIcon icon;
    URL resource = MaskManagerForm.class.getResource(iconPath);
    if (resource != null) {
        icon = new ImageIcon(resource);
    } else {
        icon = UIUtils.loadImageIcon(iconPath);
    }
    return icon;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:11,代码来源:MaskAction.java

示例6: createPagePanel

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
@Override
protected PagePanel createPagePanel() {
    final Icon largeIcon = UIUtils.loadImageIcon("icons/ScatterPlot24.gif");
    final String chartTitle = ScatterPlotPanel.CHART_TITLE;
    final ScatterPlotPanel scatterPlotPanel = new ScatterPlotPanel(this, Bundle.CTL_ScatterPlotTopComponent_HelpId());
    final TableViewPagePanel tableViewPanel = new TableViewPagePanel(this, Bundle.CTL_ScatterPlotTopComponent_HelpId(), chartTitle, largeIcon);
    scatterPlotPanel.setAlternativeView(tableViewPanel);
    tableViewPanel.setAlternativeView(scatterPlotPanel);
    return scatterPlotPanel;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:11,代码来源:ScatterPlotTopComponent.java

示例7: createPagePanel

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
@Override
protected PagePanel createPagePanel() {
    final String helpId = Bundle.CTL_ProfilePlotTopComponent_HelpId();
    final String chartTitle = ProfilePlotPanel.CHART_TITLE;
    final Icon largeIcon = UIUtils.loadImageIcon("icons/ProfilePlot24.gif");
    ProfilePlotPanel profilePlotPanel = new ProfilePlotPanel(this, helpId);
    final TableViewPagePanel tableViewPagePanel = new TableViewPagePanel(this, tableHelpID, chartTitle, largeIcon);
    profilePlotPanel.setAlternativeView(tableViewPagePanel);
    tableViewPagePanel.setAlternativeView(profilePlotPanel);
    return profilePlotPanel;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:12,代码来源:ProfilePlotTopComponent.java

示例8: createToolBarSeparator

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
public static JComponent createToolBarSeparator() {
    if (_separatorIcon == null) {
        _separatorIcon = UIUtils.loadImageIcon("icons/Separator24.gif");
    }
    return new JLabel(_separatorIcon);
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:7,代码来源:ToolButtonFactory.java

示例9: MoreOptionsPane

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
MoreOptionsPane(ColorManipulationForm colorManipulationForm, boolean collapsed) {
    this.colorManipulationForm = colorManipulationForm;

    if (icons == null) {
        icons = new ImageIcon[]{
                UIUtils.loadImageIcon("icons/PanelUp12.png"),
                UIUtils.loadImageIcon("icons/PanelDown12.png"),
        };
        rolloverIcons = new ImageIcon[]{
                ToolButtonFactory.createRolloverIcon(icons[0]),
                ToolButtonFactory.createRolloverIcon(icons[1]),
        };
    }

    // printDefaults(UIManager.getLookAndFeelDefaults(), "UIManager.getLookAndFeelDefaults()");

    headerLabels = new JLabel[]{
            new JLabel("More Options"),
            new JLabel("Less Options"),
    };
    Color headerLabelColor = UIManager.getLookAndFeelDefaults().getColor("TitledBorder.titleColor");
    if (headerLabelColor != null) {
        headerLabels[0].setForeground(headerLabelColor);
        headerLabels[1].setForeground(headerLabelColor);
    }

    this.component = new JLabel(); // dummy
    this.collapsed = collapsed;

    headerButton = ToolButtonFactory.createButton(icons[0], false);
    headerButton.setName("MoreOptionsPane.headerButton");
    headerButton.addActionListener(e -> setCollapsed(!isCollapsed()));

    final JPanel titleBar = new JPanel(new BorderLayout(2, 2));
    titleBar.add(headerButton, BorderLayout.WEST);
    headerSeparator = new TitledSeparator(headerLabels[0], TitledSeparator.TYPE_PARTIAL_ETCHED, SwingConstants.LEFT);
    headerSeparator.setName("MoreOptionsPane.headerSeparator");
    titleBar.add(headerSeparator, BorderLayout.CENTER);

    contentPanel = new JPanel(new BorderLayout(2, 2));
    contentPanel.add(titleBar, BorderLayout.NORTH);
    contentPanel.setName("MoreOptionsPane.contentPanel");
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:44,代码来源:MoreOptionsPane.java

示例10: MoveLayerRightAction

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
MoveLayerRightAction() {
    super("Move Layer Right", UIUtils.loadImageIcon("icons/Right24.gif"));
    putValue(Action.ACTION_COMMAND_KEY, getClass().getName());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:MoveLayerRightAction.java

示例11: RemoveLayerAction

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
RemoveLayerAction() {
    super("Remove Layer", UIUtils.loadImageIcon("icons/Minus24.gif"));
    putValue(Action.ACTION_COMMAND_KEY, RemoveLayerAction.class.getName());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:RemoveLayerAction.java

示例12: ZoomToLayerAction

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
ZoomToLayerAction() {
    super("Zoom to Layer", UIUtils.loadImageIcon("icons/ZoomTo24.gif"));
    putValue(Action.ACTION_COMMAND_KEY, getClass().getName());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:ZoomToLayerAction.java

示例13: MoveLayerDownAction

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
MoveLayerDownAction() {
    super("Move Layer Down", UIUtils.loadImageIcon("icons/Down24.gif"));
    putValue(Action.ACTION_COMMAND_KEY, getClass().getName());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:MoveLayerDownAction.java

示例14: OpenLayerEditorAction

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
OpenLayerEditorAction() {
    super("Open Layer Editor", UIUtils.loadImageIcon("icons/LayerEditor24.png"));
    putValue(Action.ACTION_COMMAND_KEY, getClass().getName());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:OpenLayerEditorAction.java

示例15: MoveLayerLeftAction

import org.esa.snap.ui.UIUtils; //导入方法依赖的package包/类
MoveLayerLeftAction() {
    super("Move Layer Left", UIUtils.loadImageIcon("icons/Left24.gif"));
    putValue(Action.ACTION_COMMAND_KEY, getClass().getName());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:5,代码来源:MoveLayerLeftAction.java


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