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();
}
});