Package at.bestsolution.ext.swing.icon

Examples of at.bestsolution.ext.swing.icon.SolidColoredIcon


    public AlphaColorJMenuItem(Color color, int width, int height, int border_x, int border_y)
    {
        super();

        fill_icon_ = new SolidColoredIcon(color, width, height, border_x, border_y);
        fill_icon_.addChangeListener(this);
        setIcon(fill_icon_);
        addActionListener(this);
    }
View Full Code Here


    public AlphaColorJButton(Color color, int width, int height, int border_x, int border_y)
    {
        super();

        fill_icon_ = new SolidColoredIcon(color, width, height, border_x, border_y);
        fill_icon_.addChangeListener(this);
        setIcon(fill_icon_);
        addActionListener(this);
    }
View Full Code Here

  private static HashMap gradient_icons_map_ = new HashMap();
  private static IconProvider instance_ = null;

  private IconProvider()
  {
    solid_icons_map_.put("pen_color", new SolidColoredIcon(Color.BLACK, 20, 20, 2, 7));
    solid_icons_map_.put("fill_color", new SolidColoredIcon(Color.BLACK, 20, 20, 2, 2));
    solid_icons_map_.put("text_color", new SolidColoredIcon(Color.BLACK, 20, 20, 2, 2));

    gradient_icons_map_.put(
      "fill_gradient",
      new GradientIcon(new LinearGradientPaint(
    JGradientChooser.START_,
View Full Code Here

            for (int i = 0; i < pen_color_buttons_.length; i++)
            {
                if (pen_color_buttons_[i] != null)
                {
                    SolidColoredIcon icon = (SolidColoredIcon) pen_color_buttons_[i].getIcon();
                    icon.setFillColor(new_color);
                    pen_color_buttons_[i].repaint();
                }
            }

        }
        else
        {
            drawing_panel_.setFillColor(new_color);

            for (int i = 0; i < fill_color_buttons_.length; i++)
            {
                if (fill_color_buttons_[i] != null)
                {
                    SolidColoredIcon icon = (SolidColoredIcon) fill_color_buttons_[i].getIcon();
                    icon.setFillColor(new_color);
                    fill_color_buttons_[i].repaint();
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of at.bestsolution.ext.swing.icon.SolidColoredIcon

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.