• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java JideToggleButton类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.jidesoft.swing.JideToggleButton的典型用法代码示例。如果您正苦于以下问题:Java JideToggleButton类的具体用法?Java JideToggleButton怎么用?Java JideToggleButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

JideToggleButton类属于com.jidesoft.swing包,在下文中一共展示了JideToggleButton类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: LUTPanel

点赞 3

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
public LUTPanel(ImageLayer layer) {
    lutCombo = new LUTComboBox();
    JideToggleButton invertButton = new JideToggleButton(Buttons.invert, layer.getGLImage().getInvertLUT());
    invertButton.setToolTipText("Invert color table");

    ActionListener listener = e -> {
        layer.getGLImage().setLUT(lutCombo.getLUT(), invertButton.isSelected());
        Displayer.display();
    };
    lutCombo.addActionListener(listener);
    invertButton.addActionListener(listener);

    JideToggleButton enhanceButton = new JideToggleButton(Buttons.corona, layer.getGLImage().getEnhanced());
    enhanceButton.setToolTipText("Enhance off-disk corona");
    enhanceButton.addActionListener(e -> {
        layer.getGLImage().setEnhanced(enhanceButton.isSelected());
        Displayer.display();
    });

    buttonPanel = new JPanel();
    buttonPanel.add(invertButton);
    buttonPanel.add(enhanceButton);
}
 

开发者ID:Helioviewer-Project,
项目名称:JHelioviewer-SWHV,
代码行数:24,
代码来源:LUTPanel.java

示例2: DrawControllerOptionsPanel

点赞 2

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
DrawControllerOptionsPanel() {
    setLayout(new BorderLayout());

    ZoomItem[] items = {
        new ZoomItem(ZOOM.CUSTOM, 0),
        new ZoomItem(ZOOM.All, 0),
        new ZoomItem(ZOOM.Movie, 0),
        new ZoomItem(ZOOM.Year, 1),
        new ZoomItem(ZOOM.Month, 6),
        new ZoomItem(ZOOM.Month, 3),
        new ZoomItem(ZOOM.Carrington, 1),
        new ZoomItem(ZOOM.Day, 7),
        new ZoomItem(ZOOM.Day, 3),
        new ZoomItem(ZOOM.Hour, 12),
        new ZoomItem(ZOOM.Hour, 6),
        new ZoomItem(ZOOM.Hour, 1)
    };
    zoomCombo = new JComboBox<>(items);
    zoomCombo.addActionListener(e -> {
        ZoomItem item = (ZoomItem) Objects.requireNonNull(zoomCombo.getSelectedItem());
        zoomTo(item.zoom, item.number);
    });

    lockButton = new JideToggleButton(Buttons.unlock);
    lockButton.setToolTipText("Synchronize time series with movie");
    lockButton.addActionListener(e -> {
        DrawController.setLocked(lockButton.isSelected());
        lockButton.setText(lockButton.isSelected() ? Buttons.lock : Buttons.unlock);
    });

    add(lockButton, BorderLayout.CENTER);
    add(zoomCombo, BorderLayout.EAST);

    ComponentUtils.smallVariant(this);
}
 

开发者ID:Helioviewer-Project,
项目名称:JHelioviewer-SWHV,
代码行数:36,
代码来源:DrawControllerOptionsPanel.java

示例3: toolToggleButton

点赞 2

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
private static JideToggleButton toolToggleButton(ButtonText text) {
    JideToggleButton b = new JideToggleButton(text.toString());
    b.setToolTipText(text.tip);
    return b;
}
 

开发者ID:Helioviewer-Project,
项目名称:JHelioviewer-SWHV,
代码行数:6,
代码来源:TopToolBar.java

示例4: getShowCoronaButton

点赞 2

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
public JideToggleButton getShowCoronaButton() {
    return coronaButton;
}
 

开发者ID:Helioviewer-Project,
项目名称:JHelioviewer-SWHV,
代码行数:4,
代码来源:TopToolBar.java

示例5: getTrackingButton

点赞 2

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
public JideToggleButton getTrackingButton() {
    return trackingButton;
}
 

开发者ID:Helioviewer-Project,
项目名称:JHelioviewer-SWHV,
代码行数:4,
代码来源:TopToolBar.java

示例6: createToggleButton

点赞 2

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
public AbstractButton createToggleButton() {
	JideToggleButton button = new JideToggleButton();
	return button;
}
 

开发者ID:shevek,
项目名称:spring-rich-client,
代码行数:5,
代码来源:JideButtonFactory.java

示例7: getSortBtn

点赞 1

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
/**
 * Gets the sort button.
 *
 * @return the sort button
 */
public JideToggleButton getSortBtn() {
    return sortBtn;
}
 

开发者ID:richard-strauss-werke,
项目名称:glyphpicker,
代码行数:9,
代码来源:ControlPanel.java

示例8: SortAction

点赞 1

import com.jidesoft.swing.JideToggleButton; //导入依赖的package包/类
/**
 * Instantiates a new SortAction.
 *
 * @param panel  The container tab panel
 * @param button the toggle button from which the toggle state is read
 */
public SortAction(TabPanel panel, JideToggleButton button) {
    super(CLASS_NAME, "/images/oxygen/Sort16.png", "ctrl O");
    this.button = button;
    bindAcceleratorToComponent(this, panel);
}
 

开发者ID:richard-strauss-werke,
项目名称:glyphpicker,
代码行数:12,
代码来源:SortAction.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)