Package org.jfree.ui

Examples of org.jfree.ui.InsetsChooserPanel


     * Presents insets chooser panel allowing user to modify tick label's
     * individual insets values. Updates the current insets text field if edit
     * is accepted.
     */
    private void editTickLabelInsets() {
        InsetsChooserPanel panel = new InsetsChooserPanel(this.tickLabelInsets);
        int result =  JOptionPane.showConfirmDialog(this, panel,
                                                    localizationResources.getString("Edit_Insets"),
                                                    JOptionPane.PLAIN_MESSAGE);

        if (result == JOptionPane.OK_OPTION) {
            this.tickLabelInsets = panel.getInsets();
            this.tickLabelInsetsTextField.setInsets(this.tickLabelInsets);
        }
    }
View Full Code Here


     * Presents insets chooser panel allowing user to modify label's
     * individual insets values. Updates the current insets text field if edit
     * is accepted.
     */
    private void editLabelInsets() {
        InsetsChooserPanel panel = new InsetsChooserPanel(this.labelInsets);
        int result = JOptionPane.showConfirmDialog(this, panel,
                                                   localizationResources.getString("Edit_Insets"),
                                                   JOptionPane.PLAIN_MESSAGE);

        if (result == JOptionPane.OK_OPTION) {
            this.labelInsets = panel.getInsets();
            this.labelInsetsTextField.setInsets(this.labelInsets);
        }
    }
View Full Code Here

    /**
     * Allow the user to edit the individual insets' values.
     */
    private void editInsets() {
        InsetsChooserPanel panel = new InsetsChooserPanel(this.plotInsets);
        int result = JOptionPane.showConfirmDialog(this, panel,
                                                   localizationResources.getString("Edit_Insets"),
                                                   JOptionPane.OK_CANCEL_OPTION,
                                                   JOptionPane.PLAIN_MESSAGE);

        if (result == JOptionPane.OK_OPTION) {
            this.plotInsets = panel.getInsets();
            this.insetsTextField.setInsets(this.plotInsets);
        }

    }
View Full Code Here

TOP

Related Classes of org.jfree.ui.InsetsChooserPanel

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.