org.jfree.chart.axis.ColorBar Java Examples

The following examples show how to use org.jfree.chart.axis.ColorBar. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContourPlot.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,
                   ValueAxis domainAxis, ValueAxis rangeAxis, 
                   ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }
    
    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addChangeListener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addChangeListener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addChangeListener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
 
Example #2
Source File: ContourPlot.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example #3
Source File: DefaultColorBarEditor.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
 
Example #4
Source File: ContourPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,
                   ValueAxis domainAxis, ValueAxis rangeAxis,
                   ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addChangeListener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addChangeListener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addChangeListener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
 
Example #5
Source File: ContourPlot.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,
                   ValueAxis domainAxis, ValueAxis rangeAxis,
                   ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addChangeListener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addChangeListener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addChangeListener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
 
Example #6
Source File: DefaultColorBarEditor.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
 
Example #7
Source File: DefaultColorBarEditor.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
 
Example #8
Source File: DefaultColorBarEditor.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
 
Example #9
Source File: ContourPlot.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example #10
Source File: DefaultColorBarEditor.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
 
Example #11
Source File: DefaultColorBarEditor.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
 
Example #12
Source File: ContourPlot.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,
                   ValueAxis domainAxis, ValueAxis rangeAxis,
                   ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addChangeListener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addChangeListener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addChangeListener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
 
Example #13
Source File: ContourPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example #14
Source File: DefaultColorBarEditor.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
 
Example #15
Source File: DefaultColorBarEditor.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
 
Example #16
Source File: ContourPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example #17
Source File: ContourPlot.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example #18
Source File: ContourPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,
                   ValueAxis domainAxis, ValueAxis rangeAxis,
                   ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addChangeListener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addChangeListener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addChangeListener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
 
Example #19
Source File: DefaultColorBarEditor.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
 
Example #20
Source File: DefaultColorBarEditor.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
 
Example #21
Source File: DefaultColorBarEditor.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
 
Example #22
Source File: ContourPlot.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,
                   ValueAxis domainAxis, ValueAxis rangeAxis,
                   ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addChangeListener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addChangeListener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addChangeListener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
 
Example #23
Source File: DefaultColorBarEditor.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the properties of the specified axis to match the properties 
 * defined on this panel.
 * 
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
 
Example #24
Source File: ContourPlot.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example #25
Source File: ContourPlot.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example #26
Source File: DefaultColorBarEditor.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param colorBar  the color bar.
 */
public void setAxisProperties(ColorBar colorBar) {
    super.setAxisProperties(colorBar.getAxis());
    colorBar.setColorPalette(this.currentPalette.getPalette());
    colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
    colorBar.getColorPalette().setStepped(this.stepPalette); //dmo added
}
 
Example #27
Source File: DefaultColorBarEditor.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A static method that returns a panel that is appropriate for the axis
 * type.
 *
 * @param colorBar  the color bar.
 *
 * @return A panel or <code>null</code< if axis is <code>null</code>.
 */
public static DefaultColorBarEditor getInstance(ColorBar colorBar) {

    if (colorBar != null) {
        return new DefaultColorBarEditor(colorBar);
    }
    else {
        return null;
    }

}
 
Example #28
Source File: ContourPlot.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a contour plot with the specified axes (other attributes take
 * default values).
 *
 * @param dataset  The dataset.
 * @param domainAxis  The domain axis.
 * @param rangeAxis  The range axis.
 * @param colorBar  The z-axis axis.
*/
public ContourPlot(ContourDataset dataset,
                   ValueAxis domainAxis, ValueAxis rangeAxis,
                   ColorBar colorBar) {

    super();

    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }

    this.domainAxis = domainAxis;
    if (domainAxis != null) {
        domainAxis.setPlot(this);
        domainAxis.addChangeListener(this);
    }

    this.rangeAxis = rangeAxis;
    if (rangeAxis != null) {
        rangeAxis.setPlot(this);
        rangeAxis.addChangeListener(this);
    }

    this.colorBar = colorBar;
    if (colorBar != null) {
        colorBar.getAxis().setPlot(this);
        colorBar.getAxis().addChangeListener(this);
        colorBar.configure(this);
    }
    this.colorBarLocation = RectangleEdge.LEFT;

    this.toolTipGenerator = new StandardContourToolTipGenerator();

}
 
Example #29
Source File: DefaultPlotEditor.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
protected JTabbedPane createPlotTabs(Plot plot)
    {
        JTabbedPane tabs = new JTabbedPane();
        tabs.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));

        Axis domainAxis = null;
        if (plot instanceof CategoryPlot) {
            domainAxis = ((CategoryPlot) plot).getDomainAxis();
        }
        else if (plot instanceof XYPlot) {
            domainAxis = ((XYPlot) plot).getDomainAxis();
        }
        this.domainAxisPropertyPanel = DefaultAxisEditor.getInstance(
                domainAxis);
        if (this.domainAxisPropertyPanel != null) {
            this.domainAxisPropertyPanel.setBorder(
                    BorderFactory.createEmptyBorder(2, 2, 2, 2));
            tabs.add(localizationResources.getString("Domain_Axis"),
                    this.domainAxisPropertyPanel);
        }

        Axis rangeAxis = null;
        if (plot instanceof CategoryPlot) {
            rangeAxis = ((CategoryPlot) plot).getRangeAxis();
        }
        else if (plot instanceof XYPlot) {
            rangeAxis = ((XYPlot) plot).getRangeAxis();
        }
        else if (plot instanceof PolarPlot) {
            rangeAxis = ((PolarPlot) plot).getAxis();
        }

        this.rangeAxisPropertyPanel = DefaultAxisEditor.getInstance(rangeAxis);
        if (this.rangeAxisPropertyPanel != null) {
            this.rangeAxisPropertyPanel.setBorder(
                    BorderFactory.createEmptyBorder(2, 2, 2, 2));
            tabs.add(localizationResources.getString("Range_Axis"),
                    this.rangeAxisPropertyPanel);
        }

//dmo: added this panel for colorbar control. (start dmo additions)
        ColorBar colorBar = null;
        if (plot instanceof ContourPlot) {
            colorBar = ((ContourPlot) plot).getColorBar();
        }

        this.colorBarAxisPropertyPanel = DefaultColorBarEditor.getInstance(
                colorBar);
        if (this.colorBarAxisPropertyPanel != null) {
            this.colorBarAxisPropertyPanel.setBorder(
                    BorderFactory.createEmptyBorder(2, 2, 2, 2));
            tabs.add(localizationResources.getString("Color_Bar"),
                    this.colorBarAxisPropertyPanel);
        }
//dmo: (end dmo additions)

        return tabs;
    }
 
Example #30
Source File: DefaultColorBarEditor.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Creates a new edit panel for a color bar.
 *
 * @param colorBar  the color bar.
 */
public DefaultColorBarEditor(ColorBar colorBar) {
    super((NumberAxis) colorBar.getAxis());
    this.invertPalette = colorBar.getColorPalette().isInverse();
    this.stepPalette = colorBar.getColorPalette().isStepped();
    this.currentPalette = new PaletteSample(colorBar.getColorPalette());
    this.availablePaletteSamples = new PaletteSample[2];
    this.availablePaletteSamples[0]
        = new PaletteSample(new RainbowPalette());
    this.availablePaletteSamples[1]
        = new PaletteSample(new GreyPalette());

    JTabbedPane other = getOtherTabs();

    JPanel palettePanel = new JPanel(new LCBLayout(4));
    palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    palettePanel.add(new JPanel());
    this.invertPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Invert_Palette"),
        this.invertPalette
    );
    this.invertPaletteCheckBox.setActionCommand("invertPalette");
    this.invertPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.invertPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(new JPanel());
    this.stepPaletteCheckBox = new JCheckBox(
        localizationResources.getString("Step_Palette"),
        this.stepPalette
    );
    this.stepPaletteCheckBox.setActionCommand("stepPalette");
    this.stepPaletteCheckBox.addActionListener(this);
    palettePanel.add(this.stepPaletteCheckBox);
    palettePanel.add(new JPanel());

    palettePanel.add(
        new JLabel(localizationResources.getString("Palette"))
    );
    JButton button
        = new JButton(localizationResources.getString("Set_palette..."));
    button.setActionCommand("PaletteChoice");
    button.addActionListener(this);
    palettePanel.add(this.currentPalette);
    palettePanel.add(button);

    other.add(localizationResources.getString("Palette"), palettePanel);

}