Package org.pushingpixels.flamingo.api.common.icon

Examples of org.pushingpixels.flamingo.api.common.icon.FilteredResizableIcon


  }

  protected JCommandButton createActionButton(CommandButtonDisplayState state) {
    JCommandButton mainButton = new JCommandButton(resourceBundle
        .getString("Paste.text"), new edit_paste());
    mainButton.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    mainButton.setExtraText(resourceBundle.getString("Paste.textExtra"));
    mainButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
View Full Code Here


public class TestCommandButtonsNoText extends TestCommandButtons {
  @Override
  protected JCommandButton createActionButton(CommandButtonDisplayState state) {
    JCommandButton result = new JCommandButton(new edit_paste());
    result.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    result.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println(stamp() + ": Main paste");
View Full Code Here

    ResizableIcon icon = this.commandButton.getIcon();
    if ((currDisabledIcon == null)
        || (currDisabledIcon instanceof UIResource)) {
      if (icon != null) {
        this.commandButton.setDisabledIcon(new ResizableIconUIResource(
            new FilteredResizableIcon(icon, new ColorConvertOp(
                ColorSpace.getInstance(ColorSpace.CS_GRAY),
                null))));
      } else {
        this.commandButton.setDisabledIcon(null);
      }
View Full Code Here

  @Override
  protected JCommandToggleButton createToggleButton(
      CommandButtonDisplayState state, String title) {
    JCommandToggleButton mainButton = new JCommandToggleButton(
        new edit_paste());
    mainButton.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    mainButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println(stamp() + ": Main selection");
View Full Code Here

  protected JCommandToggleButton createToggleButton(
      CommandButtonDisplayState state, String title) {
    final JCommandToggleButton mainButton = new JCommandToggleButton(title,
        new edit_paste());
    mainButton.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    mainButton
        .setExtraText(resourceBundle.getString("SelectAll.textExtra"));
    mainButton.addActionListener(new ActionListener() {
View Full Code Here

      CommandButtonKind commandButtonKind, int fontSize) {
    ResizableIcon mainPasteIcon = SvgBatikResizableIcon.getSvgIcon(
        TestCommandButtons.class.getClassLoader().getResource(
            "test/svg/edit-paste.svg"), new Dimension(32, 32));
    JCommandButton mainButton = new JCommandButton(text, mainPasteIcon);
    mainButton.setDisabledIcon(new FilteredResizableIcon(mainPasteIcon,
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    // mainButton.setMnemonic('P');
    mainButton.setExtraText("Extra for " + text.toLowerCase());
    mainButton.addActionListener(new ActionListener() {
View Full Code Here

    ResizableIcon icon = this.commandButton.getIcon();
    if ((currDisabledIcon == null)
        || (currDisabledIcon instanceof UIResource)) {
      if (icon != null) {
        this.commandButton.setDisabledIcon(new ResizableIconUIResource(
            new FilteredResizableIcon(icon, new ColorConvertOp(
                ColorSpace.getInstance(ColorSpace.CS_GRAY),
                null))));
      } else {
        this.commandButton.setDisabledIcon(null);
      }
View Full Code Here

    ResizableIcon icon = this.commandButton.getIcon();
    if ((currDisabledIcon == null)
        || (currDisabledIcon instanceof UIResource)) {
      if (icon != null) {
        this.commandButton.setDisabledIcon(new ResizableIconUIResource(
            new FilteredResizableIcon(icon, new ColorConvertOp(
                ColorSpace.getInstance(ColorSpace.CS_GRAY),
                null))));
      } else {
        this.commandButton.setDisabledIcon(null);
      }
View Full Code Here

  protected int getLayoutGap() {
    return 4;
  }

  protected ResizableIcon createDisabledIcon() {
    return new FilteredResizableIcon(this.ribbonComponent.getIcon(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null));
  }
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.api.common.icon.FilteredResizableIcon

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.