Package at.bestsolution.drawswf.actions

Examples of at.bestsolution.drawswf.actions.SetDrawing2GradientAction


  //  ----------------------------------------------------------------------------
  private JRadioButton createGradientRadioButton(String description, int drawing_mode, int buttonIndex)
  {
    GradientJRadioButton button = new GradientJRadioButton( IconProvider.getInstance(), "fill_gradient" );
    button.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
    button.addActionListener( new SetDrawing2GradientAction(MainWindow.getDrawingPanel(),drawing_mode,MainWindow.MAIN_WINDOW,buttonIndex,true) );
    button.addChangeListener( MainWindow.getDrawingPanel() );
   
//    SetDrawingModeAction draw_action = new SetDrawingModeAction(description, MainWindow.getDrawingPanel(), drawing_mode, MainWindow.MAIN_WINDOW, buttonIndex);
//    MultipleGradientPaint gradient = new LinearGradientPaint(JGradientChooser.START_,JGradientChooser.CENTER_,JGradientChooser.fractions_,JGradientChooser.colors,MultipleGradientPaint.NO_CYCLE,MultipleGradientPaint.SRGB);
//    button = new JRadioButton( new GradientIcon(gradient) );
View Full Code Here


  //  ----------------------------------------------------------------------------
  private JRadioButtonMenuItem createGradientRadioButton(String displayedText, String description, int drawing_mode, int mnemonicKey, KeyStroke accelerator, int buttonIndex)
  {
    GradientJRadioButtonMenuItem button = new GradientJRadioButtonMenuItem( IconProvider.getInstance(), "fill_gradient" );
    button.addActionListener(new SetDrawing2GradientAction(MainWindow.getDrawingPanel(), drawing_mode, MainWindow.MAIN_WINDOW, buttonIndex, true));
    // NOT NEEDED BECAUSE CHANGE LISTENER ALREADY REGISTERED
    // WITHIN TOOLBAR
    // button.addChangeListener(MainWindow.getDrawingPanel());

    return button;
View Full Code Here

TOP

Related Classes of at.bestsolution.drawswf.actions.SetDrawing2GradientAction

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.