@@ -0,0 +1,2517 @@
+package org.helioviewer.jhv.plugins.eveplugin.lines.gui;%0A%0Aimport java.awt.Color;%0Aimport java.awt.GridBagConstraints;%0Aimport java.awt.GridBagLayout;%0Aimport java.awt.Insets;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JColorChooser;%0Aimport javax.swing.JPanel;%0A%0Aimport org.helioviewer.jhv.gui.ImageViewerGui;%0Aimport org.helioviewer.jhv.plugins.eveplugin.lines.data.Band;%0Aimport org.helioviewer.jhv.plugins.eveplugin.lines.model.EVEDrawController;%0A%0A//Class will not be serialized so we suppress the warnings%0A@SuppressWarnings(%7B %22serial%22 %7D)%0Apublic class LineOptionPanel extends JPanel %7B%0A%0A    private final Band band;%0A%0A    public LineOptionPanel(Band band) %7B%0A        this.band = band;%0A        initVisualComponents();%0A    %7D%0A%0A    private void initVisualComponents() %7B%0A        // setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));%0A        setLayout(new GridBagLayout());%0A        GridBagConstraints c = new GridBagConstraints();%0A        c.anchor = GridBagConstraints.WEST;%0A        c.gridx = 0;%0A        c.gridy = 0;%0A        c.weightx = 1;%0A        c.weighty = 1;%0A        c.fill = GridBagConstraints.NONE;%0A        JButton pickColor = new JButton(%22Line color%22);%0A        pickColor.setMargin(new Insets(0, 0, 0, 0));%0A        pickColor.setToolTipText(%22Change the color of the current line%22);%0A        pickColor.addActionListener(new ActionListener() %7B%0A%0A            @Override%0A            public void actionPerformed(ActionEvent e) %7B%0A                Color newColor = JColorChooser.showDialog(ImageViewerGui.getMainFrame(), %22Choose Line Color%22, band.getGraphColor());%0A                if (newColor != null) %7B%0A                    band.setGraphColor(newColor);%0A                %7D%0A            %7D%0A        %7D);%0A        add(pickColor, c);%0A%0A        JButton changeAxis = new JButton(%22Change axis%22);%0A        changeAxis.setMargin(new Insets(0, 0, 0, 0));%0A        changeAxis.setToolTipText(%22Change the color of the current line%22);%0A        changeAxis.addActionListener(new ActionListener() %7B%0A%0A            @Override%0A            public void actionPerformed(ActionEvent e) %7B%0A                EVEDrawController.getSingletonInstance().changeAxis(band);%0A            %7D%0A        %7D);%0A        changeAxis.setEnabled(EVEDrawController.getSingletonInstance().canChangeAxis(band));%0A%0A        c.anchor = GridBagConstraints.EAST;%0A        c.gridx = 1;%0A        c.gridy = 0;%0A        c.weightx = 1;%0A        c.weighty = 1;%0A        c.fill = GridBagConstraints.NONE;%0A        add(changeAxis, c);%0A    %7D%0A%0A%7D%0A

Add LineOptionPanel