0001: /*
0002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
0003: * http://www.jaspersoft.com.
0004: *
0005: * Unless you have purchased a commercial license agreement from JasperSoft,
0006: * the following license terms apply:
0007: *
0008: * This program is free software; you can redistribute it and/or modify
0009: * it under the terms of the GNU General Public License version 2 as published by
0010: * the Free Software Foundation.
0011: *
0012: * This program is distributed WITHOUT ANY WARRANTY; and without the
0013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0014: * See the GNU General Public License for more details.
0015: *
0016: * You should have received a copy of the GNU General Public License
0017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
0018: * or write to:
0019: *
0020: * Free Software Foundation, Inc.,
0021: * 59 Temple Place - Suite 330,
0022: * Boston, MA USA 02111-1307
0023: *
0024: *
0025: *
0026: *
0027: * ToolbarFormatPanel.java
0028: *
0029: * Created on 7 mei 2005, 13:27
0030: *
0031: */
0032:
0033: package it.businesslogic.ireport.gui;
0034:
0035: import javax.swing.JToolBar;
0036: import it.businesslogic.ireport.OperationType;
0037: import it.businesslogic.ireport.gui.actions.ActionShrinkSelected;
0038: import it.businesslogic.ireport.gui.command.FormatCommand;
0039: import javax.swing.Action;
0040: import javax.swing.KeyStroke;
0041: import it.businesslogic.ireport.util.I18n;
0042: import it.businesslogic.ireport.util.LanguageChangedEvent;
0043: import it.businesslogic.ireport.util.LanguageChangedListener;
0044:
0045: /**
0046: *
0047: * @author Robert Lamping
0048: */
0049: public class ToolbarFormatPanel extends javax.swing.JPanel implements
0050: LanguageChangedListener {
0051:
0052: private MainFrame mainFrame; // MainFrame.getMainInstance();;
0053:
0054: /** Creates new form ToolbarFormatPanel */
0055: public ToolbarFormatPanel(MainFrame mainFrame) {
0056: setMainFrame(mainFrame);
0057: initComponents();
0058:
0059: }
0060:
0061: public JToolBar getToolBar() {
0062: // Make toolbar available to e.g. MainFrame
0063: return jToolBarFormat;
0064: }
0065:
0066: /**
0067: * enable/disable tools that can't be used in a crosstab...
0068: */
0069: public void setCrosstabMode(boolean bMode) {
0070: jButtonFormatAlignToBandBottom.setEnabled(bMode);
0071: jButtonFormatAlignToBandTop.setEnabled(bMode);
0072: //jButtonFormatCenterHRight.setEnabled(bMode);
0073: //jButtonFormatCenterInBand.setEnabled(bMode);
0074: //jButtonFormatCenterInBandH.setEnabled(bMode);
0075: //jButtonFormatCenterInBandV.setEnabled(bMode);
0076: jButtonFormatAlignToLeftMargin.setEnabled(bMode);
0077: jButtonFormatAlignToRightMargin.setEnabled(bMode);
0078: //jButtonFormatCenterVRight.setEnabled(bMode);
0079: jButtonFormatOrganize.setEnabled(bMode);
0080: jButtonFormatShrink.setEnabled(bMode);
0081: }
0082:
0083: /** This method is called from within the constructor to
0084: * initialize the form.
0085: * WARNING: Do NOT modify this code. The content of this method is
0086: * always regenerated by the Form Editor.
0087: */
0088: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
0089: private void initComponents() {
0090: jToolBarFormat = new javax.swing.JToolBar();
0091: jButtonFormatAlignTop = new javax.swing.JButton();
0092: jButtonFormatAlignBottom = new javax.swing.JButton();
0093: jButtonFormatAlignLeft = new javax.swing.JButton();
0094: jButtonFormatAlignRight = new javax.swing.JButton();
0095: jButtonFormatCenterHRight = new javax.swing.JButton();
0096: jButtonFormatCenterVRight = new javax.swing.JButton();
0097: Filler = new javax.swing.JButton();
0098: jButtonFormatAlignToBandTop = new javax.swing.JButton();
0099: jButtonFormatAlignToBandBottom = new javax.swing.JButton();
0100: jButtonFormatAlignToLeftMargin = new javax.swing.JButton();
0101: jButtonFormatAlignToRightMargin = new javax.swing.JButton();
0102: Filler1 = new javax.swing.JButton();
0103: jButtonFormatOrganize = new javax.swing.JButton();
0104: jButtonFormatJoinLeft = new javax.swing.JButton();
0105: jButtonFormatJoinRight = new javax.swing.JButton();
0106: Filler4 = new javax.swing.JButton();
0107: jButtonFormatEqualsSpaceH = new javax.swing.JButton();
0108: jButtonFormatIncreaseSpaceH = new javax.swing.JButton();
0109: jButtonFormatDecreaseSpaceH = new javax.swing.JButton();
0110: jButtonFormatRemoveSpaceH = new javax.swing.JButton();
0111: Filler5 = new javax.swing.JButton();
0112: jButtonFormatEqualsSpaceV = new javax.swing.JButton();
0113: jButtonFormatIncreaseSpaceV = new javax.swing.JButton();
0114: jButtonFormatDecreaseSpaceV = new javax.swing.JButton();
0115: jButtonFormatDecreaseSpaceV1 = new javax.swing.JButton();
0116: Filler6 = new javax.swing.JButton();
0117: jButtonFormatSameWidth = new javax.swing.JButton();
0118: jButtonFormatSameWidthMax = new javax.swing.JButton();
0119: jButtonFormatSameWidthMin = new javax.swing.JButton();
0120: Filler2 = new javax.swing.JButton();
0121: jButtonFormatSameHeight = new javax.swing.JButton();
0122: jButtonFormatSameHeightMin = new javax.swing.JButton();
0123: jButtonFormatSameHeightMax = new javax.swing.JButton();
0124: Filler3 = new javax.swing.JButton();
0125: jButtonFormatSameSize = new javax.swing.JButton();
0126: Filler9 = new javax.swing.JButton();
0127: jButtonFormatElementMaximizeH = new javax.swing.JButton();
0128: jButtonFormatElementMaximizeV = new javax.swing.JButton();
0129: jButtonFormatElementMaximize = new javax.swing.JButton();
0130: Filler7 = new javax.swing.JButton();
0131: jButtonFormatCenterInBandH = new javax.swing.JButton();
0132: jButtonFormatCenterInBandV = new javax.swing.JButton();
0133: jButtonFormatCenterInBand = new javax.swing.JButton();
0134: Filler8 = new javax.swing.JButton();
0135: jButtonFormatShrink = new javax.swing.JButton();
0136: jButtonFormatShrink.putClientProperty("hideActionText",
0137: Boolean.TRUE);
0138:
0139: jToggleButton1 = new javax.swing.JToggleButton();
0140:
0141: setLayout(new java.awt.BorderLayout());
0142:
0143: setAutoscrolls(true);
0144: setName("ToolbarFormatPanel");
0145: getAccessibleContext().setAccessibleName("ToolbarFormatPanel");
0146: jToolBarFormat.setAutoscrolls(true);
0147: jToolBarFormat.setMaximumSize(new java.awt.Dimension(934, 48));
0148: jToolBarFormat.setMinimumSize(new java.awt.Dimension(814, 27));
0149: jToolBarFormat
0150: .setPreferredSize(new java.awt.Dimension(814, 27));
0151: jButtonFormatAlignTop
0152: .setIcon(new javax.swing.ImageIcon(
0153: getClass()
0154: .getResource(
0155: "/it/businesslogic/ireport/icons/toolbars/format/align_top.png")));
0156: jButtonFormatAlignTop.setToolTipText("Align Top");
0157: jButtonFormatAlignTop.setBorder(null);
0158: jButtonFormatAlignTop.setBorderPainted(false);
0159: jButtonFormatAlignTop.setEnabled(false);
0160: jButtonFormatAlignTop.setFocusPainted(false);
0161: jButtonFormatAlignTop
0162: .setMargin(new java.awt.Insets(0, 0, 0, 0));
0163: jButtonFormatAlignTop.setMaximumSize(new java.awt.Dimension(24,
0164: 23));
0165: jButtonFormatAlignTop.setMinimumSize(new java.awt.Dimension(22,
0166: 22));
0167: jButtonFormatAlignTop.setPreferredSize(new java.awt.Dimension(
0168: 22, 22));
0169: jButtonFormatAlignTop
0170: .addActionListener(new java.awt.event.ActionListener() {
0171: public void actionPerformed(
0172: java.awt.event.ActionEvent evt) {
0173: jButtonFormatAlignTopActionPerformed(evt);
0174: }
0175: });
0176:
0177: jToolBarFormat.add(jButtonFormatAlignTop);
0178:
0179: jButtonFormatAlignBottom
0180: .setIcon(new javax.swing.ImageIcon(
0181: getClass()
0182: .getResource(
0183: "/it/businesslogic/ireport/icons/toolbars/format/align_bottom.png")));
0184: jButtonFormatAlignBottom.setToolTipText("Align bottom");
0185: jButtonFormatAlignBottom.setBorder(null);
0186: jButtonFormatAlignBottom.setBorderPainted(false);
0187: jButtonFormatAlignBottom.setEnabled(false);
0188: jButtonFormatAlignBottom.setFocusPainted(false);
0189: jButtonFormatAlignBottom.setMargin(new java.awt.Insets(0, 0, 0,
0190: 0));
0191: jButtonFormatAlignBottom.setMaximumSize(new java.awt.Dimension(
0192: 24, 23));
0193: jButtonFormatAlignBottom.setMinimumSize(new java.awt.Dimension(
0194: 22, 22));
0195: jButtonFormatAlignBottom
0196: .setPreferredSize(new java.awt.Dimension(22, 22));
0197: jButtonFormatAlignBottom
0198: .addActionListener(new java.awt.event.ActionListener() {
0199: public void actionPerformed(
0200: java.awt.event.ActionEvent evt) {
0201: jButtonFormatAlignBottomActionPerformed(evt);
0202: }
0203: });
0204:
0205: jToolBarFormat.add(jButtonFormatAlignBottom);
0206:
0207: jButtonFormatAlignLeft
0208: .setIcon(new javax.swing.ImageIcon(
0209: getClass()
0210: .getResource(
0211: "/it/businesslogic/ireport/icons/toolbars/format/align_left.png")));
0212: jButtonFormatAlignLeft.setToolTipText("Align left");
0213: jButtonFormatAlignLeft.setBorder(null);
0214: jButtonFormatAlignLeft.setBorderPainted(false);
0215: jButtonFormatAlignLeft.setEnabled(false);
0216: jButtonFormatAlignLeft.setFocusPainted(false);
0217: jButtonFormatAlignLeft
0218: .setMargin(new java.awt.Insets(0, 0, 0, 0));
0219: jButtonFormatAlignLeft.setMaximumSize(new java.awt.Dimension(
0220: 24, 23));
0221: jButtonFormatAlignLeft.setMinimumSize(new java.awt.Dimension(
0222: 22, 22));
0223: jButtonFormatAlignLeft.setPreferredSize(new java.awt.Dimension(
0224: 22, 22));
0225: jButtonFormatAlignLeft
0226: .addActionListener(new java.awt.event.ActionListener() {
0227: public void actionPerformed(
0228: java.awt.event.ActionEvent evt) {
0229: jButtonFormatAlignLeftActionPerformed(evt);
0230: }
0231: });
0232:
0233: jToolBarFormat.add(jButtonFormatAlignLeft);
0234:
0235: jButtonFormatAlignRight
0236: .setIcon(new javax.swing.ImageIcon(
0237: getClass()
0238: .getResource(
0239: "/it/businesslogic/ireport/icons/toolbars/format/align_right.png")));
0240: jButtonFormatAlignRight.setToolTipText("Align right");
0241: jButtonFormatAlignRight.setBorder(null);
0242: jButtonFormatAlignRight.setBorderPainted(false);
0243: jButtonFormatAlignRight.setEnabled(false);
0244: jButtonFormatAlignRight.setFocusPainted(false);
0245: jButtonFormatAlignRight.setMargin(new java.awt.Insets(0, 0, 0,
0246: 0));
0247: jButtonFormatAlignRight.setMaximumSize(new java.awt.Dimension(
0248: 24, 23));
0249: jButtonFormatAlignRight.setMinimumSize(new java.awt.Dimension(
0250: 22, 22));
0251: jButtonFormatAlignRight
0252: .setPreferredSize(new java.awt.Dimension(22, 22));
0253: jButtonFormatAlignRight
0254: .addActionListener(new java.awt.event.ActionListener() {
0255: public void actionPerformed(
0256: java.awt.event.ActionEvent evt) {
0257: jButtonFormatAlignRightActionPerformed(evt);
0258: }
0259: });
0260:
0261: jToolBarFormat.add(jButtonFormatAlignRight);
0262:
0263: jButtonFormatCenterHRight
0264: .setIcon(new javax.swing.ImageIcon(
0265: getClass()
0266: .getResource(
0267: "/it/businesslogic/ireport/icons/toolbars/format/center_h.png")));
0268: jButtonFormatCenterHRight
0269: .setToolTipText("Align horizontal axis");
0270: jButtonFormatCenterHRight.setBorder(null);
0271: jButtonFormatCenterHRight.setBorderPainted(false);
0272: jButtonFormatCenterHRight.setEnabled(false);
0273: jButtonFormatCenterHRight.setFocusPainted(false);
0274: jButtonFormatCenterHRight.setMargin(new java.awt.Insets(0, 0,
0275: 0, 0));
0276: jButtonFormatCenterHRight
0277: .setMaximumSize(new java.awt.Dimension(24, 23));
0278: jButtonFormatCenterHRight
0279: .setMinimumSize(new java.awt.Dimension(22, 22));
0280: jButtonFormatCenterHRight
0281: .setPreferredSize(new java.awt.Dimension(22, 22));
0282: jButtonFormatCenterHRight
0283: .addActionListener(new java.awt.event.ActionListener() {
0284: public void actionPerformed(
0285: java.awt.event.ActionEvent evt) {
0286: jButtonFormatCenterHRightActionPerformed(evt);
0287: }
0288: });
0289:
0290: jToolBarFormat.add(jButtonFormatCenterHRight);
0291:
0292: jButtonFormatCenterVRight
0293: .setIcon(new javax.swing.ImageIcon(
0294: getClass()
0295: .getResource(
0296: "/it/businesslogic/ireport/icons/toolbars/format/center_v.png")));
0297: jButtonFormatCenterVRight.setToolTipText("Align vertical axis");
0298: jButtonFormatCenterVRight.setBorder(null);
0299: jButtonFormatCenterVRight.setBorderPainted(false);
0300: jButtonFormatCenterVRight.setEnabled(false);
0301: jButtonFormatCenterVRight.setFocusPainted(false);
0302: jButtonFormatCenterVRight.setMargin(new java.awt.Insets(0, 0,
0303: 0, 0));
0304: jButtonFormatCenterVRight
0305: .setMaximumSize(new java.awt.Dimension(24, 23));
0306: jButtonFormatCenterVRight
0307: .setMinimumSize(new java.awt.Dimension(22, 22));
0308: jButtonFormatCenterVRight
0309: .setPreferredSize(new java.awt.Dimension(22, 22));
0310: jButtonFormatCenterVRight
0311: .addActionListener(new java.awt.event.ActionListener() {
0312: public void actionPerformed(
0313: java.awt.event.ActionEvent evt) {
0314: jButtonFormatCenterVRightActionPerformed(evt);
0315: }
0316: });
0317:
0318: jToolBarFormat.add(jButtonFormatCenterVRight);
0319:
0320: Filler.setBackground(new java.awt.Color(255, 255, 255));
0321: Filler
0322: .setIcon(new javax.swing.ImageIcon(
0323: getClass()
0324: .getResource(
0325: "/it/businesslogic/ireport/icons/menu/null.gif")));
0326: Filler.setBorderPainted(false);
0327: Filler.setContentAreaFilled(false);
0328: Filler.setEnabled(false);
0329: Filler.setFocusPainted(false);
0330: Filler.setFocusable(false);
0331: Filler.setMargin(new java.awt.Insets(0, 0, 0, 0));
0332: Filler.setMaximumSize(new java.awt.Dimension(4, 22));
0333: Filler.setMinimumSize(new java.awt.Dimension(4, 22));
0334: Filler.setPreferredSize(new java.awt.Dimension(4, 22));
0335: jToolBarFormat.add(Filler);
0336:
0337: jButtonFormatAlignToBandTop
0338: .setIcon(new javax.swing.ImageIcon(
0339: getClass()
0340: .getResource(
0341: "/it/businesslogic/ireport/icons/toolbars/format/align_top_band.png")));
0342: jButtonFormatAlignToBandTop.setToolTipText("Align to band top");
0343: jButtonFormatAlignToBandTop.setBorder(null);
0344: jButtonFormatAlignToBandTop.setBorderPainted(false);
0345: jButtonFormatAlignToBandTop.setEnabled(false);
0346: jButtonFormatAlignToBandTop.setFocusPainted(false);
0347: jButtonFormatAlignToBandTop.setMargin(new java.awt.Insets(0, 0,
0348: 0, 0));
0349: jButtonFormatAlignToBandTop
0350: .setMaximumSize(new java.awt.Dimension(24, 23));
0351: jButtonFormatAlignToBandTop
0352: .addActionListener(new java.awt.event.ActionListener() {
0353: public void actionPerformed(
0354: java.awt.event.ActionEvent evt) {
0355: jButtonFormatAlignToBandTopActionPerformed(evt);
0356: }
0357: });
0358:
0359: jToolBarFormat.add(jButtonFormatAlignToBandTop);
0360:
0361: jButtonFormatAlignToBandBottom
0362: .setIcon(new javax.swing.ImageIcon(
0363: getClass()
0364: .getResource(
0365: "/it/businesslogic/ireport/icons/toolbars/format/align_bottom_band.png")));
0366: jButtonFormatAlignToBandBottom
0367: .setToolTipText("Align to band bottom");
0368: jButtonFormatAlignToBandBottom.setBorder(null);
0369: jButtonFormatAlignToBandBottom.setBorderPainted(false);
0370: jButtonFormatAlignToBandBottom.setEnabled(false);
0371: jButtonFormatAlignToBandBottom.setFocusPainted(false);
0372: jButtonFormatAlignToBandBottom.setMargin(new java.awt.Insets(0,
0373: 0, 0, 0));
0374: jButtonFormatAlignToBandBottom
0375: .setMaximumSize(new java.awt.Dimension(24, 23));
0376: jButtonFormatAlignToBandBottom
0377: .addActionListener(new java.awt.event.ActionListener() {
0378: public void actionPerformed(
0379: java.awt.event.ActionEvent evt) {
0380: jButtonFormatAlignToBandBottomActionPerformed(evt);
0381: }
0382: });
0383:
0384: jToolBarFormat.add(jButtonFormatAlignToBandBottom);
0385:
0386: jButtonFormatAlignToLeftMargin
0387: .setIcon(new javax.swing.ImageIcon(
0388: getClass()
0389: .getResource(
0390: "/it/businesslogic/ireport/icons/toolbars/format/align_margin_left.png")));
0391: jButtonFormatAlignToLeftMargin
0392: .setToolTipText("Align to left margin");
0393: jButtonFormatAlignToLeftMargin.setBorder(null);
0394: jButtonFormatAlignToLeftMargin.setBorderPainted(false);
0395: jButtonFormatAlignToLeftMargin.setEnabled(false);
0396: jButtonFormatAlignToLeftMargin.setFocusPainted(false);
0397: jButtonFormatAlignToLeftMargin.setMargin(new java.awt.Insets(0,
0398: 0, 0, 0));
0399: jButtonFormatAlignToLeftMargin
0400: .setMaximumSize(new java.awt.Dimension(24, 23));
0401: jButtonFormatAlignToLeftMargin
0402: .addActionListener(new java.awt.event.ActionListener() {
0403: public void actionPerformed(
0404: java.awt.event.ActionEvent evt) {
0405: jButtonFormatAlignToLeftMarginActionPerformed(evt);
0406: }
0407: });
0408:
0409: jToolBarFormat.add(jButtonFormatAlignToLeftMargin);
0410:
0411: jButtonFormatAlignToRightMargin
0412: .setIcon(new javax.swing.ImageIcon(
0413: getClass()
0414: .getResource(
0415: "/it/businesslogic/ireport/icons/toolbars/format/align_margin_right.png")));
0416: jButtonFormatAlignToRightMargin
0417: .setToolTipText("Align to right margin");
0418: jButtonFormatAlignToRightMargin.setBorder(null);
0419: jButtonFormatAlignToRightMargin.setBorderPainted(false);
0420: jButtonFormatAlignToRightMargin.setEnabled(false);
0421: jButtonFormatAlignToRightMargin.setFocusPainted(false);
0422: jButtonFormatAlignToRightMargin.setMargin(new java.awt.Insets(
0423: 0, 0, 0, 0));
0424: jButtonFormatAlignToRightMargin
0425: .setMaximumSize(new java.awt.Dimension(24, 23));
0426: jButtonFormatAlignToRightMargin
0427: .addActionListener(new java.awt.event.ActionListener() {
0428: public void actionPerformed(
0429: java.awt.event.ActionEvent evt) {
0430: jButtonFormatAlignToRightMarginActionPerformed(evt);
0431: }
0432: });
0433:
0434: jToolBarFormat.add(jButtonFormatAlignToRightMargin);
0435:
0436: Filler1.setBackground(new java.awt.Color(255, 255, 255));
0437: Filler1
0438: .setIcon(new javax.swing.ImageIcon(
0439: getClass()
0440: .getResource(
0441: "/it/businesslogic/ireport/icons/menu/null.gif")));
0442: Filler1.setBorderPainted(false);
0443: Filler1.setContentAreaFilled(false);
0444: Filler1.setEnabled(false);
0445: Filler1.setFocusPainted(false);
0446: Filler1.setFocusable(false);
0447: Filler1.setMargin(new java.awt.Insets(0, 0, 0, 0));
0448: Filler1.setMaximumSize(new java.awt.Dimension(4, 22));
0449: Filler1.setMinimumSize(new java.awt.Dimension(4, 22));
0450: Filler1.setPreferredSize(new java.awt.Dimension(4, 22));
0451: jToolBarFormat.add(Filler1);
0452:
0453: jButtonFormatOrganize
0454: .setIcon(new javax.swing.ImageIcon(
0455: getClass()
0456: .getResource(
0457: "/it/businesslogic/ireport/icons/menu/organize.png")));
0458: jButtonFormatOrganize
0459: .setToolTipText("Organize as a table: [CTRL+SHIFT+O]");
0460: jButtonFormatOrganize.setBorder(null);
0461: jButtonFormatOrganize.setBorderPainted(false);
0462: jButtonFormatOrganize.setEnabled(false);
0463: jButtonFormatOrganize.setFocusPainted(false);
0464: jButtonFormatOrganize
0465: .setMargin(new java.awt.Insets(0, 0, 0, 0));
0466: jButtonFormatOrganize.setMaximumSize(new java.awt.Dimension(24,
0467: 23));
0468: jButtonFormatOrganize.setMinimumSize(new java.awt.Dimension(22,
0469: 22));
0470: jButtonFormatOrganize.setPreferredSize(new java.awt.Dimension(
0471: 22, 22));
0472: jButtonFormatOrganize
0473: .addActionListener(new java.awt.event.ActionListener() {
0474: public void actionPerformed(
0475: java.awt.event.ActionEvent evt) {
0476: jButtonFormatOrganizeActionPerformed(evt);
0477: }
0478: });
0479:
0480: jToolBarFormat.add(jButtonFormatOrganize);
0481:
0482: jButtonFormatJoinLeft
0483: .setIcon(new javax.swing.ImageIcon(
0484: getClass()
0485: .getResource(
0486: "/it/businesslogic/ireport/icons/toolbars/format/joinleft.png")));
0487: jButtonFormatJoinLeft
0488: .setToolTipText("Join sides Left: [CTRL+SHIFT+L]");
0489: jButtonFormatJoinLeft.setBorder(null);
0490: jButtonFormatJoinLeft.setBorderPainted(false);
0491: jButtonFormatJoinLeft.setEnabled(false);
0492: jButtonFormatJoinLeft.setFocusPainted(false);
0493: jButtonFormatJoinLeft
0494: .setMargin(new java.awt.Insets(0, 0, 0, 0));
0495: jButtonFormatJoinLeft.setMaximumSize(new java.awt.Dimension(24,
0496: 23));
0497: jButtonFormatJoinLeft.setMinimumSize(new java.awt.Dimension(22,
0498: 22));
0499: jButtonFormatJoinLeft.setPreferredSize(new java.awt.Dimension(
0500: 22, 22));
0501: jButtonFormatJoinLeft
0502: .addActionListener(new java.awt.event.ActionListener() {
0503: public void actionPerformed(
0504: java.awt.event.ActionEvent evt) {
0505: jButtonFormatJoinLeftActionPerformed(evt);
0506: }
0507: });
0508:
0509: jToolBarFormat.add(jButtonFormatJoinLeft);
0510:
0511: jButtonFormatJoinRight
0512: .setIcon(new javax.swing.ImageIcon(
0513: getClass()
0514: .getResource(
0515: "/it/businesslogic/ireport/icons/toolbars/format/joinright.png")));
0516: jButtonFormatJoinRight
0517: .setToolTipText("Join sides right: [CTRL+SHIFT+R]");
0518: jButtonFormatJoinRight.setBorder(null);
0519: jButtonFormatJoinRight.setBorderPainted(false);
0520: jButtonFormatJoinRight.setEnabled(false);
0521: jButtonFormatJoinRight.setFocusPainted(false);
0522: jButtonFormatJoinRight
0523: .setMargin(new java.awt.Insets(0, 0, 0, 0));
0524: jButtonFormatJoinRight.setMaximumSize(new java.awt.Dimension(
0525: 24, 23));
0526: jButtonFormatJoinRight.setMinimumSize(new java.awt.Dimension(
0527: 22, 22));
0528: jButtonFormatJoinRight.setPreferredSize(new java.awt.Dimension(
0529: 22, 22));
0530: jButtonFormatJoinRight
0531: .addActionListener(new java.awt.event.ActionListener() {
0532: public void actionPerformed(
0533: java.awt.event.ActionEvent evt) {
0534: jButtonFormatJoinRightActionPerformed(evt);
0535: }
0536: });
0537:
0538: jToolBarFormat.add(jButtonFormatJoinRight);
0539:
0540: Filler4.setBackground(new java.awt.Color(255, 255, 255));
0541: Filler4
0542: .setIcon(new javax.swing.ImageIcon(
0543: getClass()
0544: .getResource(
0545: "/it/businesslogic/ireport/icons/menu/null.gif")));
0546: Filler4.setBorderPainted(false);
0547: Filler4.setContentAreaFilled(false);
0548: Filler4.setEnabled(false);
0549: Filler4.setFocusPainted(false);
0550: Filler4.setFocusable(false);
0551: Filler4.setMargin(new java.awt.Insets(0, 0, 0, 0));
0552: Filler4.setMaximumSize(new java.awt.Dimension(4, 22));
0553: Filler4.setMinimumSize(new java.awt.Dimension(4, 22));
0554: Filler4.setPreferredSize(new java.awt.Dimension(4, 22));
0555: jToolBarFormat.add(Filler4);
0556:
0557: jButtonFormatEqualsSpaceH
0558: .setIcon(new javax.swing.ImageIcon(
0559: getClass()
0560: .getResource(
0561: "/it/businesslogic/ireport/icons/menu/elem_add_hspace.png")));
0562: jButtonFormatEqualsSpaceH
0563: .setToolTipText("Horizontal space: Make equal");
0564: jButtonFormatEqualsSpaceH.setBorder(null);
0565: jButtonFormatEqualsSpaceH.setBorderPainted(false);
0566: jButtonFormatEqualsSpaceH.setEnabled(false);
0567: jButtonFormatEqualsSpaceH.setFocusPainted(false);
0568: jButtonFormatEqualsSpaceH.setMargin(new java.awt.Insets(0, 0,
0569: 0, 0));
0570: jButtonFormatEqualsSpaceH
0571: .setMaximumSize(new java.awt.Dimension(24, 23));
0572: jButtonFormatEqualsSpaceH
0573: .addActionListener(new java.awt.event.ActionListener() {
0574: public void actionPerformed(
0575: java.awt.event.ActionEvent evt) {
0576: jButtonFormatEqualsSpaceHActionPerformed(evt);
0577: }
0578: });
0579:
0580: jToolBarFormat.add(jButtonFormatEqualsSpaceH);
0581:
0582: jButtonFormatIncreaseSpaceH
0583: .setIcon(new javax.swing.ImageIcon(
0584: getClass()
0585: .getResource(
0586: "/it/businesslogic/ireport/icons/menu/elem_add_hspace_plus.png")));
0587: jButtonFormatIncreaseSpaceH
0588: .setToolTipText("Horizontal space: Increase");
0589: jButtonFormatIncreaseSpaceH.setBorder(null);
0590: jButtonFormatIncreaseSpaceH.setBorderPainted(false);
0591: jButtonFormatIncreaseSpaceH.setEnabled(false);
0592: jButtonFormatIncreaseSpaceH.setFocusPainted(false);
0593: jButtonFormatIncreaseSpaceH.setMargin(new java.awt.Insets(0, 0,
0594: 0, 0));
0595: jButtonFormatIncreaseSpaceH
0596: .setMaximumSize(new java.awt.Dimension(24, 23));
0597: jButtonFormatIncreaseSpaceH
0598: .addActionListener(new java.awt.event.ActionListener() {
0599: public void actionPerformed(
0600: java.awt.event.ActionEvent evt) {
0601: jButtonFormatIncreaseSpaceHActionPerformed(evt);
0602: }
0603: });
0604:
0605: jToolBarFormat.add(jButtonFormatIncreaseSpaceH);
0606:
0607: jButtonFormatDecreaseSpaceH
0608: .setIcon(new javax.swing.ImageIcon(
0609: getClass()
0610: .getResource(
0611: "/it/businesslogic/ireport/icons/menu/elem_add_hspace_min.png")));
0612: jButtonFormatDecreaseSpaceH
0613: .setToolTipText("Horizontal space: Decrease");
0614: jButtonFormatDecreaseSpaceH.setBorder(null);
0615: jButtonFormatDecreaseSpaceH.setBorderPainted(false);
0616: jButtonFormatDecreaseSpaceH.setEnabled(false);
0617: jButtonFormatDecreaseSpaceH.setFocusPainted(false);
0618: jButtonFormatDecreaseSpaceH.setMargin(new java.awt.Insets(0, 0,
0619: 0, 0));
0620: jButtonFormatDecreaseSpaceH
0621: .setMaximumSize(new java.awt.Dimension(24, 23));
0622: jButtonFormatDecreaseSpaceH
0623: .addActionListener(new java.awt.event.ActionListener() {
0624: public void actionPerformed(
0625: java.awt.event.ActionEvent evt) {
0626: jButtonFormatDecreaseSpaceHActionPerformed(evt);
0627: }
0628: });
0629:
0630: jToolBarFormat.add(jButtonFormatDecreaseSpaceH);
0631:
0632: jButtonFormatRemoveSpaceH
0633: .setIcon(new javax.swing.ImageIcon(
0634: getClass()
0635: .getResource(
0636: "/it/businesslogic/ireport/icons/menu/elem_add_hspace_zero.png")));
0637: jButtonFormatRemoveSpaceH
0638: .setToolTipText("Horizontal space: Remove");
0639: jButtonFormatRemoveSpaceH.setBorder(null);
0640: jButtonFormatRemoveSpaceH.setBorderPainted(false);
0641: jButtonFormatRemoveSpaceH.setEnabled(false);
0642: jButtonFormatRemoveSpaceH.setFocusPainted(false);
0643: jButtonFormatRemoveSpaceH.setMargin(new java.awt.Insets(0, 0,
0644: 0, 0));
0645: jButtonFormatRemoveSpaceH
0646: .setMaximumSize(new java.awt.Dimension(24, 23));
0647: jButtonFormatRemoveSpaceH
0648: .setMinimumSize(new java.awt.Dimension(22, 22));
0649: jButtonFormatRemoveSpaceH
0650: .setPreferredSize(new java.awt.Dimension(22, 22));
0651: jButtonFormatRemoveSpaceH
0652: .addActionListener(new java.awt.event.ActionListener() {
0653: public void actionPerformed(
0654: java.awt.event.ActionEvent evt) {
0655: jButtonFormatRemoveSpaceHActionPerformed(evt);
0656: }
0657: });
0658:
0659: jToolBarFormat.add(jButtonFormatRemoveSpaceH);
0660:
0661: Filler5.setBackground(new java.awt.Color(255, 255, 255));
0662: Filler5
0663: .setIcon(new javax.swing.ImageIcon(
0664: getClass()
0665: .getResource(
0666: "/it/businesslogic/ireport/icons/menu/null.gif")));
0667: Filler5.setBorderPainted(false);
0668: Filler5.setContentAreaFilled(false);
0669: Filler5.setEnabled(false);
0670: Filler5.setFocusPainted(false);
0671: Filler5.setFocusable(false);
0672: Filler5.setMargin(new java.awt.Insets(0, 0, 0, 0));
0673: Filler5.setMaximumSize(new java.awt.Dimension(4, 22));
0674: Filler5.setMinimumSize(new java.awt.Dimension(4, 22));
0675: Filler5.setPreferredSize(new java.awt.Dimension(4, 22));
0676: jToolBarFormat.add(Filler5);
0677:
0678: jButtonFormatEqualsSpaceV
0679: .setIcon(new javax.swing.ImageIcon(
0680: getClass()
0681: .getResource(
0682: "/it/businesslogic/ireport/icons/menu/elem_add_vspace.png")));
0683: jButtonFormatEqualsSpaceV
0684: .setToolTipText("Vertical space: Make equal");
0685: jButtonFormatEqualsSpaceV.setBorder(null);
0686: jButtonFormatEqualsSpaceV.setBorderPainted(false);
0687: jButtonFormatEqualsSpaceV.setEnabled(false);
0688: jButtonFormatEqualsSpaceV.setFocusPainted(false);
0689: jButtonFormatEqualsSpaceV.setMargin(new java.awt.Insets(0, 0,
0690: 0, 0));
0691: jButtonFormatEqualsSpaceV
0692: .setMaximumSize(new java.awt.Dimension(24, 23));
0693: jButtonFormatEqualsSpaceV
0694: .addActionListener(new java.awt.event.ActionListener() {
0695: public void actionPerformed(
0696: java.awt.event.ActionEvent evt) {
0697: jButtonFormatEqualsSpaceVActionPerformed(evt);
0698: }
0699: });
0700:
0701: jToolBarFormat.add(jButtonFormatEqualsSpaceV);
0702:
0703: jButtonFormatIncreaseSpaceV
0704: .setIcon(new javax.swing.ImageIcon(
0705: getClass()
0706: .getResource(
0707: "/it/businesslogic/ireport/icons/menu/elem_add_vspace_plus.png")));
0708: jButtonFormatIncreaseSpaceV
0709: .setToolTipText("Vertical space: Increase");
0710: jButtonFormatIncreaseSpaceV.setBorder(null);
0711: jButtonFormatIncreaseSpaceV.setBorderPainted(false);
0712: jButtonFormatIncreaseSpaceV.setEnabled(false);
0713: jButtonFormatIncreaseSpaceV.setFocusPainted(false);
0714: jButtonFormatIncreaseSpaceV.setMargin(new java.awt.Insets(0, 0,
0715: 0, 0));
0716: jButtonFormatIncreaseSpaceV
0717: .setMaximumSize(new java.awt.Dimension(24, 23));
0718: jButtonFormatIncreaseSpaceV
0719: .addActionListener(new java.awt.event.ActionListener() {
0720: public void actionPerformed(
0721: java.awt.event.ActionEvent evt) {
0722: jButtonFormatIncreaseSpaceVActionPerformed(evt);
0723: }
0724: });
0725:
0726: jToolBarFormat.add(jButtonFormatIncreaseSpaceV);
0727:
0728: jButtonFormatDecreaseSpaceV
0729: .setIcon(new javax.swing.ImageIcon(
0730: getClass()
0731: .getResource(
0732: "/it/businesslogic/ireport/icons/menu/elem_add_vspace_min.png")));
0733: jButtonFormatDecreaseSpaceV
0734: .setToolTipText("Vertical space: Decrease");
0735: jButtonFormatDecreaseSpaceV.setBorder(null);
0736: jButtonFormatDecreaseSpaceV.setBorderPainted(false);
0737: jButtonFormatDecreaseSpaceV.setEnabled(false);
0738: jButtonFormatDecreaseSpaceV.setFocusPainted(false);
0739: jButtonFormatDecreaseSpaceV.setMargin(new java.awt.Insets(0, 0,
0740: 0, 0));
0741: jButtonFormatDecreaseSpaceV
0742: .setMaximumSize(new java.awt.Dimension(24, 23));
0743: jButtonFormatDecreaseSpaceV
0744: .addActionListener(new java.awt.event.ActionListener() {
0745: public void actionPerformed(
0746: java.awt.event.ActionEvent evt) {
0747: jButtonFormatDecreaseSpaceVActionPerformed(evt);
0748: }
0749: });
0750:
0751: jToolBarFormat.add(jButtonFormatDecreaseSpaceV);
0752:
0753: jButtonFormatDecreaseSpaceV1
0754: .setIcon(new javax.swing.ImageIcon(
0755: getClass()
0756: .getResource(
0757: "/it/businesslogic/ireport/icons/menu/elem_add_vspace_zero.png")));
0758: jButtonFormatDecreaseSpaceV1
0759: .setToolTipText("Vertical space: remove");
0760: jButtonFormatDecreaseSpaceV1.setBorder(null);
0761: jButtonFormatDecreaseSpaceV1.setBorderPainted(false);
0762: jButtonFormatDecreaseSpaceV1.setEnabled(false);
0763: jButtonFormatDecreaseSpaceV1.setFocusPainted(false);
0764: jButtonFormatDecreaseSpaceV1.setMargin(new java.awt.Insets(0,
0765: 0, 0, 0));
0766: jButtonFormatDecreaseSpaceV1
0767: .setMaximumSize(new java.awt.Dimension(24, 23));
0768: jButtonFormatDecreaseSpaceV1
0769: .addActionListener(new java.awt.event.ActionListener() {
0770: public void actionPerformed(
0771: java.awt.event.ActionEvent evt) {
0772: jButtonFormatDecreaseSpaceV1ActionPerformed(evt);
0773: }
0774: });
0775:
0776: jToolBarFormat.add(jButtonFormatDecreaseSpaceV1);
0777:
0778: Filler6.setBackground(new java.awt.Color(255, 255, 255));
0779: Filler6
0780: .setIcon(new javax.swing.ImageIcon(
0781: getClass()
0782: .getResource(
0783: "/it/businesslogic/ireport/icons/menu/null.gif")));
0784: Filler6.setBorderPainted(false);
0785: Filler6.setContentAreaFilled(false);
0786: Filler6.setEnabled(false);
0787: Filler6.setFocusPainted(false);
0788: Filler6.setFocusable(false);
0789: Filler6.setMargin(new java.awt.Insets(0, 0, 0, 0));
0790: Filler6.setMaximumSize(new java.awt.Dimension(4, 22));
0791: Filler6.setMinimumSize(new java.awt.Dimension(4, 22));
0792: Filler6.setPreferredSize(new java.awt.Dimension(4, 22));
0793: jToolBarFormat.add(Filler6);
0794:
0795: jButtonFormatSameWidth
0796: .setIcon(new javax.swing.ImageIcon(
0797: getClass()
0798: .getResource(
0799: "/it/businesslogic/ireport/icons/menu/elem_same_hsize.png")));
0800: jButtonFormatSameWidth.setToolTipText("Same width");
0801: jButtonFormatSameWidth.setBorder(null);
0802: jButtonFormatSameWidth.setBorderPainted(false);
0803: jButtonFormatSameWidth.setEnabled(false);
0804: jButtonFormatSameWidth.setFocusPainted(false);
0805: jButtonFormatSameWidth
0806: .setMargin(new java.awt.Insets(0, 0, 0, 0));
0807: jButtonFormatSameWidth.setMaximumSize(new java.awt.Dimension(
0808: 24, 23));
0809: jButtonFormatSameWidth
0810: .addActionListener(new java.awt.event.ActionListener() {
0811: public void actionPerformed(
0812: java.awt.event.ActionEvent evt) {
0813: jButtonFormatSameWidthActionPerformed(evt);
0814: }
0815: });
0816:
0817: jToolBarFormat.add(jButtonFormatSameWidth);
0818:
0819: jButtonFormatSameWidthMax
0820: .setIcon(new javax.swing.ImageIcon(
0821: getClass()
0822: .getResource(
0823: "/it/businesslogic/ireport/icons/menu/elem_same_hsize_plus.png")));
0824: jButtonFormatSameWidthMax.setToolTipText("Same width (max)");
0825: jButtonFormatSameWidthMax.setBorder(null);
0826: jButtonFormatSameWidthMax.setBorderPainted(false);
0827: jButtonFormatSameWidthMax.setEnabled(false);
0828: jButtonFormatSameWidthMax.setFocusPainted(false);
0829: jButtonFormatSameWidthMax.setMargin(new java.awt.Insets(0, 0,
0830: 0, 0));
0831: jButtonFormatSameWidthMax
0832: .setMaximumSize(new java.awt.Dimension(24, 23));
0833: jButtonFormatSameWidthMax
0834: .addActionListener(new java.awt.event.ActionListener() {
0835: public void actionPerformed(
0836: java.awt.event.ActionEvent evt) {
0837: jButtonFormatSameWidthMaxActionPerformed(evt);
0838: }
0839: });
0840:
0841: jToolBarFormat.add(jButtonFormatSameWidthMax);
0842:
0843: jButtonFormatSameWidthMin
0844: .setIcon(new javax.swing.ImageIcon(
0845: getClass()
0846: .getResource(
0847: "/it/businesslogic/ireport/icons/menu/elem_same_hsize_min.png")));
0848: jButtonFormatSameWidthMin.setToolTipText("Same width (min)");
0849: jButtonFormatSameWidthMin.setBorder(null);
0850: jButtonFormatSameWidthMin.setBorderPainted(false);
0851: jButtonFormatSameWidthMin.setEnabled(false);
0852: jButtonFormatSameWidthMin.setFocusPainted(false);
0853: jButtonFormatSameWidthMin.setMargin(new java.awt.Insets(0, 0,
0854: 0, 0));
0855: jButtonFormatSameWidthMin
0856: .setMaximumSize(new java.awt.Dimension(24, 23));
0857: jButtonFormatSameWidthMin
0858: .addActionListener(new java.awt.event.ActionListener() {
0859: public void actionPerformed(
0860: java.awt.event.ActionEvent evt) {
0861: jButtonFormatSameWidthMinActionPerformed(evt);
0862: }
0863: });
0864:
0865: jToolBarFormat.add(jButtonFormatSameWidthMin);
0866:
0867: Filler2.setBackground(new java.awt.Color(255, 255, 255));
0868: Filler2
0869: .setIcon(new javax.swing.ImageIcon(
0870: getClass()
0871: .getResource(
0872: "/it/businesslogic/ireport/icons/menu/null.gif")));
0873: Filler2.setBorderPainted(false);
0874: Filler2.setContentAreaFilled(false);
0875: Filler2.setEnabled(false);
0876: Filler2.setFocusPainted(false);
0877: Filler2.setFocusable(false);
0878: Filler2.setMargin(new java.awt.Insets(0, 0, 0, 0));
0879: Filler2.setMaximumSize(new java.awt.Dimension(4, 22));
0880: Filler2.setMinimumSize(new java.awt.Dimension(4, 22));
0881: Filler2.setPreferredSize(new java.awt.Dimension(4, 22));
0882: jToolBarFormat.add(Filler2);
0883:
0884: jButtonFormatSameHeight
0885: .setIcon(new javax.swing.ImageIcon(
0886: getClass()
0887: .getResource(
0888: "/it/businesslogic/ireport/icons/menu/elem_same_vsize.png")));
0889: jButtonFormatSameHeight.setToolTipText("Same height");
0890: jButtonFormatSameHeight.setBorder(null);
0891: jButtonFormatSameHeight.setBorderPainted(false);
0892: jButtonFormatSameHeight.setEnabled(false);
0893: jButtonFormatSameHeight.setFocusPainted(false);
0894: jButtonFormatSameHeight.setMargin(new java.awt.Insets(0, 0, 0,
0895: 0));
0896: jButtonFormatSameHeight.setMaximumSize(new java.awt.Dimension(
0897: 24, 23));
0898: jButtonFormatSameHeight
0899: .addActionListener(new java.awt.event.ActionListener() {
0900: public void actionPerformed(
0901: java.awt.event.ActionEvent evt) {
0902: jButtonFormatSameHeightActionPerformed(evt);
0903: }
0904: });
0905:
0906: jToolBarFormat.add(jButtonFormatSameHeight);
0907:
0908: jButtonFormatSameHeightMin
0909: .setIcon(new javax.swing.ImageIcon(
0910: getClass()
0911: .getResource(
0912: "/it/businesslogic/ireport/icons/menu/elem_same_vsize_min.png")));
0913: jButtonFormatSameHeightMin.setToolTipText("Same height (min)");
0914: jButtonFormatSameHeightMin.setBorder(null);
0915: jButtonFormatSameHeightMin.setBorderPainted(false);
0916: jButtonFormatSameHeightMin.setEnabled(false);
0917: jButtonFormatSameHeightMin.setFocusPainted(false);
0918: jButtonFormatSameHeightMin.setMargin(new java.awt.Insets(0, 0,
0919: 0, 0));
0920: jButtonFormatSameHeightMin
0921: .setMaximumSize(new java.awt.Dimension(24, 23));
0922: jButtonFormatSameHeightMin
0923: .addActionListener(new java.awt.event.ActionListener() {
0924: public void actionPerformed(
0925: java.awt.event.ActionEvent evt) {
0926: jButtonFormatSameHeightMinActionPerformed(evt);
0927: }
0928: });
0929:
0930: jToolBarFormat.add(jButtonFormatSameHeightMin);
0931:
0932: jButtonFormatSameHeightMax
0933: .setIcon(new javax.swing.ImageIcon(
0934: getClass()
0935: .getResource(
0936: "/it/businesslogic/ireport/icons/menu/elem_same_vsize_plus.png")));
0937: jButtonFormatSameHeightMax.setToolTipText("Same heigt (max)");
0938: jButtonFormatSameHeightMax.setBorder(null);
0939: jButtonFormatSameHeightMax.setBorderPainted(false);
0940: jButtonFormatSameHeightMax.setEnabled(false);
0941: jButtonFormatSameHeightMax.setFocusPainted(false);
0942: jButtonFormatSameHeightMax.setMargin(new java.awt.Insets(0, 0,
0943: 0, 0));
0944: jButtonFormatSameHeightMax
0945: .setMaximumSize(new java.awt.Dimension(24, 23));
0946: jButtonFormatSameHeightMax.setOpaque(false);
0947: jButtonFormatSameHeightMax
0948: .addActionListener(new java.awt.event.ActionListener() {
0949: public void actionPerformed(
0950: java.awt.event.ActionEvent evt) {
0951: jButtonFormatSameHeightMaxActionPerformed(evt);
0952: }
0953: });
0954:
0955: jToolBarFormat.add(jButtonFormatSameHeightMax);
0956:
0957: Filler3.setBackground(new java.awt.Color(255, 255, 255));
0958: Filler3
0959: .setIcon(new javax.swing.ImageIcon(
0960: getClass()
0961: .getResource(
0962: "/it/businesslogic/ireport/icons/menu/null.gif")));
0963: Filler3.setBorderPainted(false);
0964: Filler3.setContentAreaFilled(false);
0965: Filler3.setEnabled(false);
0966: Filler3.setFocusPainted(false);
0967: Filler3.setFocusable(false);
0968: Filler3.setMargin(new java.awt.Insets(0, 0, 0, 0));
0969: Filler3.setMaximumSize(new java.awt.Dimension(4, 22));
0970: Filler3.setMinimumSize(new java.awt.Dimension(4, 22));
0971: Filler3.setPreferredSize(new java.awt.Dimension(4, 22));
0972: jToolBarFormat.add(Filler3);
0973:
0974: jButtonFormatSameSize
0975: .setIcon(new javax.swing.ImageIcon(
0976: getClass()
0977: .getResource(
0978: "/it/businesslogic/ireport/icons/menu/elem_same_size.png")));
0979: jButtonFormatSameSize.setToolTipText("Same size");
0980: jButtonFormatSameSize.setBorder(null);
0981: jButtonFormatSameSize.setBorderPainted(false);
0982: jButtonFormatSameSize.setEnabled(false);
0983: jButtonFormatSameSize.setFocusPainted(false);
0984: jButtonFormatSameSize
0985: .setMargin(new java.awt.Insets(0, 0, 0, 0));
0986: jButtonFormatSameSize.setMaximumSize(new java.awt.Dimension(24,
0987: 23));
0988: jButtonFormatSameSize
0989: .addActionListener(new java.awt.event.ActionListener() {
0990: public void actionPerformed(
0991: java.awt.event.ActionEvent evt) {
0992: jButtonFormatSameSizeActionPerformed(evt);
0993: }
0994: });
0995:
0996: jToolBarFormat.add(jButtonFormatSameSize);
0997:
0998: Filler9.setBackground(new java.awt.Color(255, 255, 255));
0999: Filler9
1000: .setIcon(new javax.swing.ImageIcon(
1001: getClass()
1002: .getResource(
1003: "/it/businesslogic/ireport/icons/menu/null.gif")));
1004: Filler9.setBorderPainted(false);
1005: Filler9.setContentAreaFilled(false);
1006: Filler9.setEnabled(false);
1007: Filler9.setFocusPainted(false);
1008: Filler9.setFocusable(false);
1009: Filler9.setMargin(new java.awt.Insets(0, 0, 0, 0));
1010: Filler9.setMaximumSize(new java.awt.Dimension(4, 22));
1011: Filler9.setMinimumSize(new java.awt.Dimension(4, 22));
1012: Filler9.setPreferredSize(new java.awt.Dimension(4, 22));
1013: jToolBarFormat.add(Filler9);
1014:
1015: jButtonFormatElementMaximizeH
1016: .setIcon(new javax.swing.ImageIcon(
1017: getClass()
1018: .getResource(
1019: "/it/businesslogic/ireport/icons/menu/elem_hmaximise.png")));
1020: jButtonFormatElementMaximizeH
1021: .setToolTipText("Enlarge between margins");
1022: jButtonFormatElementMaximizeH.setBorder(null);
1023: jButtonFormatElementMaximizeH.setBorderPainted(false);
1024: jButtonFormatElementMaximizeH.setEnabled(false);
1025: jButtonFormatElementMaximizeH.setFocusPainted(false);
1026: jButtonFormatElementMaximizeH.setMargin(new java.awt.Insets(0,
1027: 0, 0, 0));
1028: jButtonFormatElementMaximizeH
1029: .setMaximumSize(new java.awt.Dimension(24, 23));
1030: jButtonFormatElementMaximizeH
1031: .addActionListener(new java.awt.event.ActionListener() {
1032: public void actionPerformed(
1033: java.awt.event.ActionEvent evt) {
1034: jButtonFormatElementMaximizeHActionPerformed(evt);
1035: }
1036: });
1037:
1038: jToolBarFormat.add(jButtonFormatElementMaximizeH);
1039:
1040: jButtonFormatElementMaximizeV
1041: .setIcon(new javax.swing.ImageIcon(
1042: getClass()
1043: .getResource(
1044: "/it/businesslogic/ireport/icons/menu/elem_vmaximise.png")));
1045: jButtonFormatElementMaximizeV
1046: .setToolTipText("Enlarge to band height");
1047: jButtonFormatElementMaximizeV.setBorder(null);
1048: jButtonFormatElementMaximizeV.setBorderPainted(false);
1049: jButtonFormatElementMaximizeV.setEnabled(false);
1050: jButtonFormatElementMaximizeV.setFocusPainted(false);
1051: jButtonFormatElementMaximizeV.setMargin(new java.awt.Insets(0,
1052: 0, 0, 0));
1053: jButtonFormatElementMaximizeV
1054: .setMaximumSize(new java.awt.Dimension(24, 23));
1055: jButtonFormatElementMaximizeV
1056: .addActionListener(new java.awt.event.ActionListener() {
1057: public void actionPerformed(
1058: java.awt.event.ActionEvent evt) {
1059: jButtonFormatElementMaximizeVActionPerformed(evt);
1060: }
1061: });
1062:
1063: jToolBarFormat.add(jButtonFormatElementMaximizeV);
1064:
1065: jButtonFormatElementMaximize
1066: .setIcon(new javax.swing.ImageIcon(
1067: getClass()
1068: .getResource(
1069: "/it/businesslogic/ireport/icons/menu/elem_maximise.png")));
1070: jButtonFormatElementMaximize
1071: .setToolTipText("Enlarge between margins and to band height");
1072: jButtonFormatElementMaximize.setBorder(null);
1073: jButtonFormatElementMaximize.setBorderPainted(false);
1074: jButtonFormatElementMaximize.setEnabled(false);
1075: jButtonFormatElementMaximize.setFocusPainted(false);
1076: jButtonFormatElementMaximize.setMargin(new java.awt.Insets(0,
1077: 0, 0, 0));
1078: jButtonFormatElementMaximize
1079: .setMaximumSize(new java.awt.Dimension(24, 23));
1080: jButtonFormatElementMaximize
1081: .addActionListener(new java.awt.event.ActionListener() {
1082: public void actionPerformed(
1083: java.awt.event.ActionEvent evt) {
1084: jButtonFormatElementMaximizeActionPerformed(evt);
1085: }
1086: });
1087:
1088: jToolBarFormat.add(jButtonFormatElementMaximize);
1089:
1090: Filler7.setBackground(new java.awt.Color(255, 255, 255));
1091: Filler7
1092: .setIcon(new javax.swing.ImageIcon(
1093: getClass()
1094: .getResource(
1095: "/it/businesslogic/ireport/icons/menu/null.gif")));
1096: Filler7.setBorderPainted(false);
1097: Filler7.setContentAreaFilled(false);
1098: Filler7.setEnabled(false);
1099: Filler7.setFocusPainted(false);
1100: Filler7.setFocusable(false);
1101: Filler7.setMargin(new java.awt.Insets(0, 0, 0, 0));
1102: Filler7.setMaximumSize(new java.awt.Dimension(4, 22));
1103: Filler7.setMinimumSize(new java.awt.Dimension(4, 22));
1104: Filler7.setPreferredSize(new java.awt.Dimension(4, 22));
1105: jToolBarFormat.add(Filler7);
1106:
1107: jButtonFormatCenterInBandH
1108: .setIcon(new javax.swing.ImageIcon(
1109: getClass()
1110: .getResource(
1111: "/it/businesslogic/ireport/icons/menu/elem_hcenter.png")));
1112: jButtonFormatCenterInBandH
1113: .setToolTipText("Center between margins or in the cell");
1114: jButtonFormatCenterInBandH.setBorder(null);
1115: jButtonFormatCenterInBandH.setBorderPainted(false);
1116: jButtonFormatCenterInBandH.setEnabled(false);
1117: jButtonFormatCenterInBandH.setFocusPainted(false);
1118: jButtonFormatCenterInBandH.setMargin(new java.awt.Insets(0, 0,
1119: 0, 0));
1120: jButtonFormatCenterInBandH
1121: .setMaximumSize(new java.awt.Dimension(24, 23));
1122: jButtonFormatCenterInBandH
1123: .addActionListener(new java.awt.event.ActionListener() {
1124: public void actionPerformed(
1125: java.awt.event.ActionEvent evt) {
1126: jButtonFormatCenterInBandHActionPerformed(evt);
1127: }
1128: });
1129:
1130: jToolBarFormat.add(jButtonFormatCenterInBandH);
1131:
1132: jButtonFormatCenterInBandV
1133: .setIcon(new javax.swing.ImageIcon(
1134: getClass()
1135: .getResource(
1136: "/it/businesslogic/ireport/icons/menu/elem_vcenter.png")));
1137: jButtonFormatCenterInBandV
1138: .setToolTipText("Vertically center in band/cell");
1139: jButtonFormatCenterInBandV.setBorder(null);
1140: jButtonFormatCenterInBandV.setBorderPainted(false);
1141: jButtonFormatCenterInBandV.setEnabled(false);
1142: jButtonFormatCenterInBandV.setFocusPainted(false);
1143: jButtonFormatCenterInBandV.setMargin(new java.awt.Insets(0, 0,
1144: 0, 0));
1145: jButtonFormatCenterInBandV
1146: .setMaximumSize(new java.awt.Dimension(24, 23));
1147: jButtonFormatCenterInBandV
1148: .addActionListener(new java.awt.event.ActionListener() {
1149: public void actionPerformed(
1150: java.awt.event.ActionEvent evt) {
1151: jButtonFormatCenterInBandVActionPerformed(evt);
1152: }
1153: });
1154:
1155: jToolBarFormat.add(jButtonFormatCenterInBandV);
1156:
1157: jButtonFormatCenterInBand
1158: .setIcon(new javax.swing.ImageIcon(
1159: getClass()
1160: .getResource(
1161: "/it/businesslogic/ireport/icons/menu/elem_ccenter.png")));
1162: jButtonFormatCenterInBand.setToolTipText("Center in band/cell");
1163: jButtonFormatCenterInBand.setBorder(null);
1164: jButtonFormatCenterInBand.setBorderPainted(false);
1165: jButtonFormatCenterInBand.setEnabled(false);
1166: jButtonFormatCenterInBand.setFocusPainted(false);
1167: jButtonFormatCenterInBand.setMargin(new java.awt.Insets(0, 0,
1168: 0, 0));
1169: jButtonFormatCenterInBand
1170: .setMaximumSize(new java.awt.Dimension(24, 23));
1171: jButtonFormatCenterInBand
1172: .addActionListener(new java.awt.event.ActionListener() {
1173: public void actionPerformed(
1174: java.awt.event.ActionEvent evt) {
1175: jButtonFormatCenterInBandActionPerformed(evt);
1176: }
1177: });
1178:
1179: jToolBarFormat.add(jButtonFormatCenterInBand);
1180:
1181: Filler8.setBackground(new java.awt.Color(255, 255, 255));
1182: Filler8
1183: .setIcon(new javax.swing.ImageIcon(
1184: getClass()
1185: .getResource(
1186: "/it/businesslogic/ireport/icons/menu/null.gif")));
1187: Filler8.setBorderPainted(false);
1188: Filler8.setContentAreaFilled(false);
1189: Filler8.setEnabled(false);
1190: Filler8.setFocusPainted(false);
1191: Filler8.setFocusable(false);
1192: Filler8.setMargin(new java.awt.Insets(0, 0, 0, 0));
1193: Filler8.setMaximumSize(new java.awt.Dimension(4, 22));
1194: Filler8.setMinimumSize(new java.awt.Dimension(4, 22));
1195: Filler8.setPreferredSize(new java.awt.Dimension(4, 22));
1196: jToolBarFormat.add(Filler8);
1197:
1198: jButtonFormatShrink.setAction(new ActionShrinkSelected());
1199: jButtonFormatShrink.setEnabled(false);
1200: jButtonFormatShrink.setFocusPainted(false);
1201: jButtonFormatShrink.setMargin(new java.awt.Insets(0, 0, 0, 0));
1202: jButtonFormatShrink.setMaximumSize(new java.awt.Dimension(24,
1203: 23));
1204: jButtonFormatShrink.setMinimumSize(new java.awt.Dimension(22,
1205: 21));
1206: jButtonFormatShrink.setPreferredSize(new java.awt.Dimension(22,
1207: 21));
1208: jButtonFormatShrink
1209: .addAncestorListener(new javax.swing.event.AncestorListener() {
1210: public void ancestorMoved(
1211: javax.swing.event.AncestorEvent evt) {
1212: }
1213:
1214: public void ancestorAdded(
1215: javax.swing.event.AncestorEvent evt) {
1216: jButtonFormatShrinkAncestorAdded(evt);
1217: }
1218:
1219: public void ancestorRemoved(
1220: javax.swing.event.AncestorEvent evt) {
1221: }
1222: });
1223:
1224: jToolBarFormat.add(jButtonFormatShrink);
1225:
1226: jToggleButton1
1227: .setIcon(new javax.swing.ImageIcon(
1228: getClass()
1229: .getResource(
1230: "/it/businesslogic/ireport/icons/toolbars/format/magnet.png")));
1231: jToggleButton1.setBorder(null);
1232: jToggleButton1.setBorderPainted(false);
1233: jToggleButton1.setEnabled(false);
1234: jToggleButton1.setFocusPainted(false);
1235: jToggleButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
1236: jToggleButton1.setMaximumSize(new java.awt.Dimension(24, 23));
1237: jToggleButton1
1238: .setSelectedIcon(new javax.swing.ImageIcon(
1239: getClass()
1240: .getResource(
1241: "/it/businesslogic/ireport/icons/toolbars/format/magnet2.png")));
1242: jToggleButton1
1243: .addItemListener(new java.awt.event.ItemListener() {
1244: public void itemStateChanged(
1245: java.awt.event.ItemEvent evt) {
1246: jToggleButton1ItemStateChanged(evt);
1247: }
1248: });
1249: jToggleButton1
1250: .addActionListener(new java.awt.event.ActionListener() {
1251: public void actionPerformed(
1252: java.awt.event.ActionEvent evt) {
1253: jToggleButton1ActionPerformed(evt);
1254: }
1255: });
1256:
1257: jToolBarFormat.add(jToggleButton1);
1258:
1259: add(jToolBarFormat, java.awt.BorderLayout.NORTH);
1260:
1261: }// </editor-fold>//GEN-END:initComponents
1262:
1263: private void jToggleButton1ItemStateChanged(
1264: java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jToggleButton1ItemStateChanged
1265: MainFrame.getMainInstance().setMagnetEnabled(
1266: !jToggleButton1.isSelected());
1267: }//GEN-LAST:event_jToggleButton1ItemStateChanged
1268:
1269: private void jToggleButton1ActionPerformed(
1270: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jToggleButton1ActionPerformed
1271:
1272: }//GEN-LAST:event_jToggleButton1ActionPerformed
1273:
1274: private void jButtonFormatShrinkAncestorAdded(
1275: javax.swing.event.AncestorEvent evt)//GEN-FIRST:event_jButtonFormatShrinkAncestorAdded
1276: {//GEN-HEADEREND:event_jButtonFormatShrinkAncestorAdded
1277: // TODO add your handling code here:
1278: }//GEN-LAST:event_jButtonFormatShrinkAncestorAdded
1279:
1280: private void jButtonFormatCenterInBandActionPerformed(
1281: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatCenterInBandActionPerformed
1282: FormatCommand.getCommand(OperationType.CENTER_IN_BAND)
1283: .execute();
1284: }//GEN-LAST:event_jButtonFormatCenterInBandActionPerformed
1285:
1286: private void jButtonFormatCenterInBandVActionPerformed(
1287: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatCenterInBandVActionPerformed
1288: FormatCommand.getCommand(OperationType.CENTER_IN_BAND_V)
1289: .execute();
1290: }//GEN-LAST:event_jButtonFormatCenterInBandVActionPerformed
1291:
1292: private void jButtonFormatCenterInBandHActionPerformed(
1293: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatCenterInBandHActionPerformed
1294: FormatCommand.getCommand(OperationType.CENTER_IN_BAND_H)
1295: .execute();
1296:
1297: }//GEN-LAST:event_jButtonFormatCenterInBandHActionPerformed
1298:
1299: private void jButtonFormatElementMaximizeActionPerformed(
1300: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatElementMaximizeActionPerformed
1301: FormatCommand.getCommand(OperationType.ELEMENT_MAXIMIZE)
1302: .execute();
1303: }//GEN-LAST:event_jButtonFormatElementMaximizeActionPerformed
1304:
1305: private void jButtonFormatElementMaximizeVActionPerformed(
1306: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatElementMaximizeVActionPerformed
1307: FormatCommand.getCommand(OperationType.ELEMENT_MAXIMIZE_V)
1308: .execute();
1309: }//GEN-LAST:event_jButtonFormatElementMaximizeVActionPerformed
1310:
1311: private void jButtonFormatElementMaximizeHActionPerformed(
1312: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatElementMaximizeHActionPerformed
1313: FormatCommand.getCommand(OperationType.ELEMENT_MAXIMIZE_H)
1314: .execute();
1315: }//GEN-LAST:event_jButtonFormatElementMaximizeHActionPerformed
1316:
1317: private void jButtonFormatDecreaseSpaceV1ActionPerformed(
1318: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatDecreaseSpaceV1ActionPerformed
1319: FormatCommand.getCommand(OperationType.REMOVE_SPACE_V)
1320: .execute();
1321: }//GEN-LAST:event_jButtonFormatDecreaseSpaceV1ActionPerformed
1322:
1323: private void jButtonFormatDecreaseSpaceVActionPerformed(
1324: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatDecreaseSpaceVActionPerformed
1325: FormatCommand.getCommand(OperationType.DECREASE_SPACE_V)
1326: .execute();
1327: }//GEN-LAST:event_jButtonFormatDecreaseSpaceVActionPerformed
1328:
1329: private void jButtonFormatIncreaseSpaceVActionPerformed(
1330: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatIncreaseSpaceVActionPerformed
1331: FormatCommand.getCommand(OperationType.INCREASE_SPACE_V)
1332: .execute();
1333: }//GEN-LAST:event_jButtonFormatIncreaseSpaceVActionPerformed
1334:
1335: private void jButtonFormatEqualsSpaceVActionPerformed(
1336: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatEqualsSpaceVActionPerformed
1337: FormatCommand.getCommand(OperationType.EQUALS_SPACE_V)
1338: .execute();
1339: }//GEN-LAST:event_jButtonFormatEqualsSpaceVActionPerformed
1340:
1341: private void jButtonFormatRemoveSpaceHActionPerformed(
1342: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatRemoveSpaceHActionPerformed
1343: FormatCommand.getCommand(OperationType.JOIN_LEFT).execute();
1344: }//GEN-LAST:event_jButtonFormatRemoveSpaceHActionPerformed
1345:
1346: private void jButtonFormatDecreaseSpaceHActionPerformed(
1347: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatDecreaseSpaceHActionPerformed
1348: FormatCommand.getCommand(OperationType.DECREASE_SPACE_H)
1349: .execute();
1350: }//GEN-LAST:event_jButtonFormatDecreaseSpaceHActionPerformed
1351:
1352: private void jButtonFormatIncreaseSpaceHActionPerformed(
1353: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatIncreaseSpaceHActionPerformed
1354: FormatCommand.getCommand(OperationType.INCREASE_SPACE_H)
1355: .execute();
1356: }//GEN-LAST:event_jButtonFormatIncreaseSpaceHActionPerformed
1357:
1358: private void jButtonFormatEqualsSpaceHActionPerformed(
1359: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatEqualsSpaceHActionPerformed
1360: FormatCommand.getCommand(OperationType.EQUALS_SPACE_H)
1361: .execute();
1362: }//GEN-LAST:event_jButtonFormatEqualsSpaceHActionPerformed
1363:
1364: private void jButtonFormatJoinRightActionPerformed(
1365: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatJoinRightActionPerformed
1366: FormatCommand.getCommand(OperationType.JOIN_RIGHT).execute();
1367: }//GEN-LAST:event_jButtonFormatJoinRightActionPerformed
1368:
1369: private void jButtonFormatJoinLeftActionPerformed(
1370: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatJoinLeftActionPerformed
1371: FormatCommand.getCommand(OperationType.JOIN_LEFT).execute();
1372: }//GEN-LAST:event_jButtonFormatJoinLeftActionPerformed
1373:
1374: private void jButtonFormatOrganizeActionPerformed(
1375: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatOrganizeActionPerformed
1376: FormatCommand.getCommand(OperationType.ORGANIZE_AS_A_TABLE)
1377: .execute();
1378: }//GEN-LAST:event_jButtonFormatOrganizeActionPerformed
1379:
1380: private void jButtonFormatSameHeightMaxActionPerformed(
1381: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatSameHeightMaxActionPerformed
1382: FormatCommand.getCommand(OperationType.SAME_HEIGHT_MAX)
1383: .execute();
1384: }//GEN-LAST:event_jButtonFormatSameHeightMaxActionPerformed
1385:
1386: private void jButtonFormatSameHeightMinActionPerformed(
1387: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatSameHeightMinActionPerformed
1388: FormatCommand.getCommand(OperationType.SAME_HEIGHT_MIN)
1389: .execute();
1390: }//GEN-LAST:event_jButtonFormatSameHeightMinActionPerformed
1391:
1392: private void jButtonFormatSameWidthMinActionPerformed(
1393: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatSameWidthMinActionPerformed
1394: FormatCommand.getCommand(OperationType.SAME_WIDTH_MIN)
1395: .execute();
1396: }//GEN-LAST:event_jButtonFormatSameWidthMinActionPerformed
1397:
1398: private void jButtonFormatSameWidthMaxActionPerformed(
1399: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatSameWidthMaxActionPerformed
1400: FormatCommand.getCommand(OperationType.SAME_WIDTH_MAX)
1401: .execute();
1402: }//GEN-LAST:event_jButtonFormatSameWidthMaxActionPerformed
1403:
1404: private void jButtonFormatSameWidthActionPerformed(
1405: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatSameWidthActionPerformed
1406: FormatCommand.getCommand(OperationType.SAME_WIDTH).execute();
1407: }//GEN-LAST:event_jButtonFormatSameWidthActionPerformed
1408:
1409: private void jButtonFormatAlignToLeftMarginActionPerformed(
1410: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatAlignToLeftMarginActionPerformed
1411: FormatCommand.getCommand(OperationType.ALIGN_TO_LEFT_MARGIN)
1412: .execute();
1413: }//GEN-LAST:event_jButtonFormatAlignToLeftMarginActionPerformed
1414:
1415: private void jButtonFormatAlignToBandBottomActionPerformed(
1416: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatAlignToBandBottomActionPerformed
1417: FormatCommand.getCommand(OperationType.ALIGN_BOTTOM_TO_BAND)
1418: .execute();
1419: }//GEN-LAST:event_jButtonFormatAlignToBandBottomActionPerformed
1420:
1421: private void jButtonFormatSameSizeActionPerformed(
1422: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatSameSizeActionPerformed
1423: FormatCommand.getCommand(OperationType.SAME_SIZE).execute();
1424: }//GEN-LAST:event_jButtonFormatSameSizeActionPerformed
1425:
1426: private void jButtonFormatSameHeightActionPerformed(
1427: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatSameHeightActionPerformed
1428: FormatCommand.getCommand(OperationType.SAME_HEIGHT).execute();
1429: }//GEN-LAST:event_jButtonFormatSameHeightActionPerformed
1430:
1431: private void jButtonFormatAlignToRightMarginActionPerformed(
1432: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatAlignToRightMarginActionPerformed
1433: FormatCommand.getCommand(OperationType.ALIGN_TO_RIGHT_MARGIN)
1434: .execute();
1435: }//GEN-LAST:event_jButtonFormatAlignToRightMarginActionPerformed
1436:
1437: private void jButtonFormatAlignToBandTopActionPerformed(
1438: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatAlignToBandTopActionPerformed
1439: FormatCommand.getCommand(OperationType.ALIGN_TOP_TO_BAND)
1440: .execute();
1441: }//GEN-LAST:event_jButtonFormatAlignToBandTopActionPerformed
1442:
1443: private void jButtonFormatCenterVRightActionPerformed(
1444: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatCenterVRightActionPerformed
1445: FormatCommand.getCommand(OperationType.ALIGN_VERTICAL_AXIS)
1446: .execute();
1447: }//GEN-LAST:event_jButtonFormatCenterVRightActionPerformed
1448:
1449: private void jButtonFormatCenterHRightActionPerformed(
1450: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatCenterHRightActionPerformed
1451: FormatCommand.getCommand(OperationType.ALIGN_HORIZONTAL_AXIS)
1452: .execute();
1453: }//GEN-LAST:event_jButtonFormatCenterHRightActionPerformed
1454:
1455: private void jButtonFormatAlignRightActionPerformed(
1456: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatAlignRightActionPerformed
1457: FormatCommand.getCommand(OperationType.ALIGN_RIGHT).execute();
1458: }//GEN-LAST:event_jButtonFormatAlignRightActionPerformed
1459:
1460: private void jButtonFormatAlignLeftActionPerformed(
1461: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatAlignLeftActionPerformed
1462: FormatCommand.getCommand(OperationType.ALIGN_LEFT).execute();
1463: }//GEN-LAST:event_jButtonFormatAlignLeftActionPerformed
1464:
1465: private void jButtonFormatAlignBottomActionPerformed(
1466: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormatAlignBottomActionPerformed
1467: FormatCommand.getCommand(OperationType.ALIGN_BOTTOM).execute();
1468: }//GEN-LAST:event_jButtonFormatAlignBottomActionPerformed
1469:
1470: private void jButtonFormatAlignTopActionPerformed(
1471: java.awt.event.ActionEvent evt)//GEN-FIRST:event_jButtonFormatAlignTopActionPerformed
1472: {//GEN-HEADEREND:event_jButtonFormatAlignTopActionPerformed
1473: FormatCommand.getCommand(OperationType.ALIGN_TOP).execute();
1474: }//GEN-LAST:event_jButtonFormatAlignTopActionPerformed
1475:
1476: // Variables declaration - do not modify//GEN-BEGIN:variables
1477: private javax.swing.JButton Filler;
1478: private javax.swing.JButton Filler1;
1479: private javax.swing.JButton Filler2;
1480: private javax.swing.JButton Filler3;
1481: private javax.swing.JButton Filler4;
1482: private javax.swing.JButton Filler5;
1483: private javax.swing.JButton Filler6;
1484: private javax.swing.JButton Filler7;
1485: private javax.swing.JButton Filler8;
1486: private javax.swing.JButton Filler9;
1487: private javax.swing.JButton jButtonFormatAlignBottom;
1488: private javax.swing.JButton jButtonFormatAlignLeft;
1489: private javax.swing.JButton jButtonFormatAlignRight;
1490: private javax.swing.JButton jButtonFormatAlignToBandBottom;
1491: private javax.swing.JButton jButtonFormatAlignToBandTop;
1492: private javax.swing.JButton jButtonFormatAlignToLeftMargin;
1493: private javax.swing.JButton jButtonFormatAlignToRightMargin;
1494: private javax.swing.JButton jButtonFormatAlignTop;
1495: private javax.swing.JButton jButtonFormatCenterHRight;
1496: private javax.swing.JButton jButtonFormatCenterInBand;
1497: private javax.swing.JButton jButtonFormatCenterInBandH;
1498: private javax.swing.JButton jButtonFormatCenterInBandV;
1499: private javax.swing.JButton jButtonFormatCenterVRight;
1500: private javax.swing.JButton jButtonFormatDecreaseSpaceH;
1501: private javax.swing.JButton jButtonFormatDecreaseSpaceV;
1502: private javax.swing.JButton jButtonFormatDecreaseSpaceV1;
1503: private javax.swing.JButton jButtonFormatElementMaximize;
1504: private javax.swing.JButton jButtonFormatElementMaximizeH;
1505: private javax.swing.JButton jButtonFormatElementMaximizeV;
1506: private javax.swing.JButton jButtonFormatEqualsSpaceH;
1507: private javax.swing.JButton jButtonFormatEqualsSpaceV;
1508: private javax.swing.JButton jButtonFormatIncreaseSpaceH;
1509: private javax.swing.JButton jButtonFormatIncreaseSpaceV;
1510: private javax.swing.JButton jButtonFormatJoinLeft;
1511: private javax.swing.JButton jButtonFormatJoinRight;
1512: private javax.swing.JButton jButtonFormatOrganize;
1513: private javax.swing.JButton jButtonFormatRemoveSpaceH;
1514: private javax.swing.JButton jButtonFormatSameHeight;
1515: private javax.swing.JButton jButtonFormatSameHeightMax;
1516: private javax.swing.JButton jButtonFormatSameHeightMin;
1517: private javax.swing.JButton jButtonFormatSameSize;
1518: private javax.swing.JButton jButtonFormatSameWidth;
1519: private javax.swing.JButton jButtonFormatSameWidthMax;
1520: private javax.swing.JButton jButtonFormatSameWidthMin;
1521: private javax.swing.JButton jButtonFormatShrink;
1522: private javax.swing.JToggleButton jToggleButton1;
1523: private javax.swing.JToolBar jToolBarFormat;
1524:
1525: // End of variables declaration//GEN-END:variables
1526:
1527: /**
1528: * Returns the value of mainFrame.
1529: */
1530: public MainFrame getMainFrame() {
1531: return mainFrame;
1532: }
1533:
1534: /**
1535: * Sets the value of mainFrame.
1536: * @param mainFrame The value to assign mainFrame.
1537: */
1538: public void setMainFrame(MainFrame mainFrame) {
1539: this .mainFrame = mainFrame;
1540: }
1541:
1542: //added by Felix Firgau on Feb 07th 2006
1543: public void applyI18n() {
1544: // Start autogenerated code ----------------------
1545: // End autogenerated code ----------------------
1546:
1547: jButtonFormatAlignTop
1548: .setToolTipText(it.businesslogic.ireport.util.I18n
1549: .getString("alignTop", "Align top"));
1550: jButtonFormatAlignBottom
1551: .setToolTipText(it.businesslogic.ireport.util.I18n
1552: .getString("alignBottom", "Align bottom"));
1553: jButtonFormatAlignLeft
1554: .setToolTipText(it.businesslogic.ireport.util.I18n
1555: .getString("alignLeft", "Align left"));
1556: jButtonFormatAlignRight
1557: .setToolTipText(it.businesslogic.ireport.util.I18n
1558: .getString("alignRight", "Align right"));
1559: jButtonFormatCenterHRight
1560: .setToolTipText(it.businesslogic.ireport.util.I18n
1561: .getString("alignHorizontalAxis",
1562: "Align on horizontal axis"));
1563: jButtonFormatCenterVRight
1564: .setToolTipText(it.businesslogic.ireport.util.I18n
1565: .getString("alignVerticalAxis",
1566: "Align on vertical axis"));
1567: jButtonFormatAlignToBandTop
1568: .setToolTipText(it.businesslogic.ireport.util.I18n
1569: .getString("alignToBandTop",
1570: "Align to band top"));
1571: jButtonFormatAlignToBandBottom
1572: .setToolTipText(it.businesslogic.ireport.util.I18n
1573: .getString("alignToBandBottom",
1574: "Align to band bottom"));
1575: jButtonFormatAlignToLeftMargin
1576: .setToolTipText(it.businesslogic.ireport.util.I18n
1577: .getString("alignToMarginLeft",
1578: "Align to left margin"));
1579: jButtonFormatAlignToRightMargin
1580: .setToolTipText(it.businesslogic.ireport.util.I18n
1581: .getString("alignToMarginRight",
1582: "Align to right margin"));
1583: jButtonFormatOrganize
1584: .setToolTipText(it.businesslogic.ireport.util.I18n
1585: .getString("organizeAsTable",
1586: "Organize as table"));
1587: jButtonFormatJoinLeft
1588: .setToolTipText(it.businesslogic.ireport.util.I18n
1589: .getString("joinSidesLeft", "Join sides left"));
1590: jButtonFormatJoinRight
1591: .setToolTipText(it.businesslogic.ireport.util.I18n
1592: .getString("joinSidesRight", "Join sides right"));
1593: jButtonFormatEqualsSpaceH
1594: .setToolTipText(it.businesslogic.ireport.util.I18n
1595: .getString("horizontalSpaceEqual",
1596: "Equal horizontal space"));
1597: jButtonFormatIncreaseSpaceH
1598: .setToolTipText(it.businesslogic.ireport.util.I18n
1599: .getString("horizontalSpaceIncrease",
1600: "Increase horizontal space"));
1601: jButtonFormatDecreaseSpaceH
1602: .setToolTipText(it.businesslogic.ireport.util.I18n
1603: .getString("horizontalSpaceDecrease",
1604: "Decrease horizontal space"));
1605: jButtonFormatRemoveSpaceH
1606: .setToolTipText(it.businesslogic.ireport.util.I18n
1607: .getString("horizontalSpaceRemove",
1608: "Remove horizontal space"));
1609: jButtonFormatEqualsSpaceV
1610: .setToolTipText(it.businesslogic.ireport.util.I18n
1611: .getString("verticalSpaceEqual",
1612: "Equal vertical space"));
1613: jButtonFormatIncreaseSpaceV
1614: .setToolTipText(it.businesslogic.ireport.util.I18n
1615: .getString("verticalSpaceIncrease",
1616: "Increase vertical space"));
1617: jButtonFormatDecreaseSpaceV
1618: .setToolTipText(it.businesslogic.ireport.util.I18n
1619: .getString("verticalSpaceDecrease",
1620: "Decrease vertical space"));
1621: jButtonFormatDecreaseSpaceV1
1622: .setToolTipText(it.businesslogic.ireport.util.I18n
1623: .getString("verticalSpaceRemove",
1624: "Remove vertical space"));
1625: jButtonFormatSameWidth
1626: .setToolTipText(it.businesslogic.ireport.util.I18n
1627: .getString("sameWidth", "Same width"));
1628: jButtonFormatSameWidthMax
1629: .setToolTipText(it.businesslogic.ireport.util.I18n
1630: .getString("sameWidthMax", "Same width max"));
1631: jButtonFormatSameWidthMin
1632: .setToolTipText(it.businesslogic.ireport.util.I18n
1633: .getString("sameWidthMin", "Same width min"));
1634: jButtonFormatSameHeight
1635: .setToolTipText(it.businesslogic.ireport.util.I18n
1636: .getString("sameHeight", "Same height"));
1637: jButtonFormatSameHeightMin
1638: .setToolTipText(it.businesslogic.ireport.util.I18n
1639: .getString("sameHeightMin", "Same height min"));
1640: jButtonFormatSameHeightMax
1641: .setToolTipText(it.businesslogic.ireport.util.I18n
1642: .getString("sameHeightMax", "Same height max"));
1643: jButtonFormatSameSize
1644: .setToolTipText(it.businesslogic.ireport.util.I18n
1645: .getString("sameSize", "Same size"));
1646: jButtonFormatElementMaximizeH
1647: .setToolTipText(it.businesslogic.ireport.util.I18n
1648: .getString("enlargeBetweenMargin",
1649: "Enlarge between margin"));
1650: jButtonFormatElementMaximizeV
1651: .setToolTipText(it.businesslogic.ireport.util.I18n
1652: .getString("enlargeBetweenBands",
1653: "Enlarge between bands"));
1654: jButtonFormatElementMaximize
1655: .setToolTipText(it.businesslogic.ireport.util.I18n
1656: .getString("elementMaximize",
1657: "Element maximize"));
1658: jButtonFormatCenterInBandH
1659: .setToolTipText(it.businesslogic.ireport.util.I18n
1660: .getString("centerInBandHorizontal",
1661: "Center in band horizontal"));
1662: jButtonFormatCenterInBandV
1663: .setToolTipText(it.businesslogic.ireport.util.I18n
1664: .getString("centerInBandVertical",
1665: "Center in band vertical"));
1666: jButtonFormatCenterInBand
1667: .setToolTipText(it.businesslogic.ireport.util.I18n
1668: .getString("centerInBand", "Center in band"));
1669: }
1670:
1671: //added by Felix Firgau on Feb 07th 2006
1672: public void languageChanged(LanguageChangedEvent evt) {
1673: this .applyI18n();
1674: }
1675: //Modification end
1676:
1677: }
|