Package javax.swing

Examples of javax.swing.JToggleButton


   *  
   * @return javax.swing.JToggleButton 
   */
  private JToggleButton getMouseTransformEditFocusPointButton() {
    if (mouseTransformEditFocusPointButton == null) {
      mouseTransformEditFocusPointButton = new JToggleButton();
      mouseTransformEditFocusPointButton.setPreferredSize(new Dimension(42, 24));
      mouseTransformEditFocusPointButton.setToolTipText("Edit focus point");
      mouseTransformEditFocusPointButton.setIcon(new ImageIcon(getClass().getResource("/org/jwildfire/swing/icons/new/games-config-background.png")));
      mouseTransformEditFocusPointButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
View Full Code Here


      randomizeBtn.setPreferredSize(new Dimension(42, 24));
      randomizeBtn.setBounds(new Rectangle(434, 4, 72, 24));
      randomizeBtn.setBounds(1, 4, 72, 24);
      centerNorthPanel.add(randomizeBtn);

      toggleDrawGridButton = new JToggleButton();
      toggleDrawGridButton.addMouseListener(new MouseAdapter() {
        @Override
        public void mousePressed(MouseEvent e) {
          if (e.getClickCount() == 2) {
            tinaController.resetGridToDefaults();
          }
        }
      });
      toggleDrawGridButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          tinaController.toggleDrawGridButton_clicked();
        }
      });
      toggleDrawGridButton.setToolTipText("Turn grid on/off, double-click to rest grid-size and -position");
      toggleDrawGridButton.setSize(new Dimension(95, 24));
      toggleDrawGridButton.setSelected(false);
      toggleDrawGridButton.setPreferredSize(new Dimension(42, 24));
      toggleDrawGridButton.setLocation(new Point(4, 4));
      toggleDrawGridButton.setBounds(471, 4, 42, 24);
      toggleDrawGridButton.setIcon(new ImageIcon(getClass().getResource("/org/jwildfire/swing/icons/new/grid.png")));
      centerNorthPanel.add(toggleDrawGridButton);
      centerNorthPanel.add(getAffineEditPostTransformSmallButton());

      mouseTransformEditGradientButton = new JToggleButton();
      mouseTransformEditGradientButton.setIconTextGap(0);
      mouseTransformEditGradientButton.setFont(new Font("Dialog", Font.BOLD, 9));
      mouseTransformEditGradientButton.setText("Grdnt");
      mouseTransformEditGradientButton.setBounds(160, 4, 72, 24);
      centerNorthPanel.add(mouseTransformEditGradientButton);
      mouseTransformEditGradientButton.setIcon(new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/applications-graphics-2.png")));

      mouseTransformEditGradientButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          expandGradientEditorFncPnl(mouseTransformEditGradientButton.isSelected());
          tinaController.mouseTransformEditGradientButton_clicked();
        }
      });
      mouseTransformEditGradientButton.setToolTipText("Edit gradient (use cursor-left and -right to control marker 1 and cursor-up and -down to control marker 2, press the 1 or 2 key for color choosers)");
      mouseTransformEditGradientButton.setPreferredSize(new Dimension(72, 24));

      toggleTriangleWithColorsButton = new JToggleButton();
      toggleTriangleWithColorsButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          tinaController.toggleTriangleWithColorsButton_clicked();
        }
      });
      toggleTriangleWithColorsButton.setIcon(new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/atomic.png")));
      toggleTriangleWithColorsButton.setToolTipText("Toggle monochrome/colored controls");
      toggleTriangleWithColorsButton.setPreferredSize(new Dimension(42, 24));
      toggleTriangleWithColorsButton.setMnemonic(KeyEvent.VK_P);
      toggleTriangleWithColorsButton.setFont(new Font("Dialog", Font.BOLD, 10));
      toggleTriangleWithColorsButton.setBounds(625, 4, 42, 24);
      centerNorthPanel.add(toggleTriangleWithColorsButton);

      triangleStyleCmb = new JComboBox();
      triangleStyleCmb.setPreferredSize(new Dimension(125, 24));
      triangleStyleCmb.setMinimumSize(new Dimension(100, 24));
      triangleStyleCmb.setMaximumSize(new Dimension(32767, 24));
      triangleStyleCmb.setMaximumRowCount(32);
      triangleStyleCmb.setFont(new Font("Dialog", Font.BOLD, 10));
      triangleStyleCmb.setBounds(557, 4, 68, 24);
      triangleStyleCmb.addItemListener(new ItemListener() {
        public void itemStateChanged(ItemEvent e) {
          if (tinaController != null) {
            tinaController.triangleStyleCmb_changed();
          }
        }
      });

      centerNorthPanel.add(triangleStyleCmb);

      toggleDrawGuidesButton = new JToggleButton();
      toggleDrawGuidesButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          tinaController.toggleDrawGuidesButton_clicked();
        }
      });
View Full Code Here

    return centerNorthPanel;
  }

  private JToggleButton getToggleVariationsButton() {
    if (toggleVariationsButton == null) {
      toggleVariationsButton = new JToggleButton();
      toggleVariationsButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          tinaController.toggleVariationsButton_clicked();
        }
      });
View Full Code Here

      centerWestPanel.add(getSnapShotButton());
      centerWestPanel.add(getLabel_8());
      centerWestPanel.add(getEditFlameTitleBtn());
      centerWestPanel.add(getBokehBtn());

      motionCurveEditModeButton = new JToggleButton();
      centerWestPanel.add(motionCurveEditModeButton);
      motionCurveEditModeButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          tinaController.getAnimationController().toggleMotionCurveEditing();
        }
View Full Code Here

   *  
   * @return javax.swing.JToggleButton 
   */
  private JToggleButton getAffineEditPostTransformButton() {
    if (affineEditPostTransformButton == null) {
      affineEditPostTransformButton = new JToggleButton();
      affineEditPostTransformButton.setPreferredSize(new Dimension(136, 24));
      affineEditPostTransformButton.setSize(new Dimension(104, 24));
      affineEditPostTransformButton.setText("Post TF");
      affineEditPostTransformButton.setFont(new Font("Dialog", Font.BOLD, 10));
      affineEditPostTransformButton.setLocation(new Point(0, 155));
View Full Code Here

   *  
   * @return javax.swing.JToggleButton 
   */
  private JToggleButton getAffineEditPostTransformSmallButton() {
    if (affineEditPostTransformSmallButton == null) {
      affineEditPostTransformSmallButton = new JToggleButton();
      affineEditPostTransformSmallButton.setBounds(667, 4, 42, 24);
      affineEditPostTransformSmallButton.setIcon(new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/edit_triangle_post.png")));
      affineEditPostTransformSmallButton.setFont(new Font("Dialog", Font.BOLD, 10));
      affineEditPostTransformSmallButton.setToolTipText("Toggle post transform mode");
      affineEditPostTransformSmallButton.setMnemonic(KeyEvent.VK_P);
View Full Code Here

   *  
   * @return javax.swing.JToggleButton 
   */
  private JToggleButton getMouseTransformSlowButton() {
    if (mouseTransformSlowButton == null) {
      mouseTransformSlowButton = new JToggleButton();
      mouseTransformSlowButton.setFont(new Font("Dialog", Font.BOLD, 9));
      mouseTransformSlowButton.setIcon(new ImageIcon(getClass().getResource("/org/jwildfire/swing/icons/new/click.png")));
      mouseTransformSlowButton.setSelected(false);
      mouseTransformSlowButton.setText("Fine");
      mouseTransformSlowButton.setSize(new Dimension(68, 24));
View Full Code Here

   *  
   * @return javax.swing.JToggleButton 
   */
  private JToggleButton getAffineScaleXButton() {
    if (affineScaleXButton == null) {
      affineScaleXButton = new JToggleButton();
      affineScaleXButton.setPreferredSize(new Dimension(26, 24));
      affineScaleXButton.setToolTipText("Allow scaling in x-direction");
      affineScaleXButton.setMnemonic(KeyEvent.VK_P);
      affineScaleXButton.setText("");
      affineScaleXButton.setLocation(new Point(92, 127));
View Full Code Here

   *  
   * @return javax.swing.JToggleButton 
   */
  private JToggleButton getAffineScaleYButton() {
    if (affineScaleYButton == null) {
      affineScaleYButton = new JToggleButton();
      affineScaleYButton.setPreferredSize(new Dimension(26, 24));
      affineScaleYButton.setToolTipText("Allow scaling in y-direction");
      affineScaleYButton.setMnemonic(KeyEvent.VK_P);
      affineScaleYButton.setSelected(true);
      affineScaleYButton.setText("");
View Full Code Here

      panel_28.setBorder(new EmptyBorder(0, 6, 0, 6));
      panel_28.setMaximumSize(new Dimension(250, 32767));
      panel_28.setMinimumSize(new Dimension(200, 10));
      panel_28.setLayout(new BoxLayout(panel_28, BoxLayout.Y_AXIS));

      interactiveHalfSizeButton = new JToggleButton();
      panel_28.add(interactiveHalfSizeButton);
      interactiveHalfSizeButton.setMinimumSize(new Dimension(125, 24));
      interactiveHalfSizeButton.setMaximumSize(new Dimension(32000, 24));
      interactiveHalfSizeButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
View Full Code Here

TOP

Related Classes of javax.swing.JToggleButton

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.