@Override
    public void itemStateChanged(ItemEvent e) {
        if (e.getSource().getClass() == JCheckBox.class) {
            JCheckBox sender = (JCheckBox) e.getSource();
            if (sender == showGrid) {
                if (e.getStateChange() == ItemEvent.SELECTED) {
                    plotterPanel.setShowGrid(true);
                } else {
                    plotterPanel.setShowGrid(false);
                }
            } else if (sender == showFxGraph) {
                if (e.getStateChange() == ItemEvent.SELECTED) {
                    plotterPanel.setShowFxGraph(true);
                } else {
                    plotterPanel.setShowFxGraph(false);
                }
            } else if (sender == showGxGraph) {
                if (e.getStateChange() == ItemEvent.SELECTED) {
                    plotterPanel.setShowGxGraph(true);
                } else {
                    plotterPanel.setShowGxGraph(false);
                }
            }
        }
    }