Commit eb90488f authored by Marija Kirandjiska's avatar Marija Kirandjiska

Aligned code

parent ba10bc03
......@@ -83,85 +83,85 @@ public class ConstraintsSelectionDialog extends JInternalFrame {
private static final long serialVersionUID = 1L;
/** data related fields */
private RawImage image = null;
private int width = -1;
private double minDistance = 0;
private double maxDistance = 100;
private Data data = null;
private RawImage image = null;
private int width = -1;
private double minDistance = 0;
private double maxDistance = 100;
private Data data = null;
private BufferedImage imagePoints = null;
private BufferedImage imageSource = null;
private BufferedImage imagePoints = null;
private BufferedImage imageSource = null;
private JLabel labelImage;
private JLabel labelImage;
public JPanel mainPanel;
public JPanel mainPanel;
protected int labelClassesCount = 1;
protected int labelClassesCount = 1;
/** inner panel of task groups per constraint types */
private JPanel mustLinkContainer = new JPanel();
private JPanel cannotLinkContainer = new JPanel();
private JPanel labelContainer = new JPanel();
private JPanel mustLinkContainer = new JPanel();
private JPanel cannotLinkContainer = new JPanel();
private JPanel labelContainer = new JPanel();
/** zoom level */
private float mZoomRate = 1.0f;
private float mZoomRate = 1.0f;
/** zoom step */
private float mZoomStep = 0.1f;
private float mZoomStep = 0.1f;
private JPanel panelImage = new JPanel(new BorderLayout());
private JPanel panelImage = new JPanel(new BorderLayout());
/** set of created constraints */
private Vector<Constraint> constraints = new Vector<Constraint>();
private Vector<Constraint> constraints = new Vector<Constraint>();
/** panels linked to each constraints */
private Vector<JPanel> constraintsPanels = new Vector<JPanel>();
private Vector<JPanel> constraintsPanels = new Vector<JPanel>();
/** other components that must be disable or enabled */
private Vector<Component> otherComponentList = new Vector<Component>();
private Vector<Component> otherComponentList = new Vector<Component>();
/** Cluster related components */
private JCheckBox nbClusterCheckBox;
private JTextField nbClusterMaxTextField;
private JTextField nbClusterMinTextField;
private JCheckBox nbClusterCheckBox;
private JTextField nbClusterMaxTextField;
private JTextField nbClusterMinTextField;
private JCheckBox clusterDiameterCheckBox;
private JTextField diameterTextField;
private JCheckBox clusterDiameterCheckBox;
private JTextField diameterTextField;
/** Record steps of constraint construction */
private int currentStep = 0;
private int currentStep = 0;
static final private int MustLink_step1 = 1;
static final private int MustLink_step2 = 2;
static final private int CannotLink_step1 = 3;
static final private int CannotLink_step2 = 4;
static final private int Label_step1 = 5;
static final private int MustLink_step1 = 1;
static final private int MustLink_step2 = 2;
static final private int CannotLink_step1 = 3;
static final private int CannotLink_step2 = 4;
static final private int Label_step1 = 5;
private int previousIndex = -1;
private int previousIndex = -1;
/**
* Colors and buttons linked to Must Link, Cannot Link and Label constraints
**/
/** Dialog for choosing colors for constraints*/
JDialog jd_colorsChooser;
/** Dialog for choosing colors for the constraints*/
JDialog jd_colorsChooser;
/** temporary constraints colors */
private Color mustLinkColorTemp;
private Color cannotLinkColorTemp;
private Vector<Color> labelConstraintColorTemp = new Vector<Color>();
private Color mustLinkColorTemp;
private Color cannotLinkColorTemp;
private Vector<Color> labelConstraintColorTemp = new Vector<Color>();
/** constraints colors */
private Color mustLinkColor = new Color(124, 252, 0);
private Color cannotLinkColor = new Color(255, 0, 255);
private Vector<Color> labelConstraintColor = new Vector<Color>();
private Color mustLinkColor = new Color(124, 252, 0);
private Color cannotLinkColor = new Color(255, 0, 255);
private Vector<Color> labelConstraintColor = new Vector<Color>();
/** constraints buttons */
private JButton jb_mustLinkChooseColor = new JButton();
private JButton jb_cannotLinkChooseColor = new JButton();
private Vector<JButton> jb_labelConstraintClassChooseColor = new Vector<JButton>();
private JButton jb_mustLinkChooseColor = new JButton();
private JButton jb_cannotLinkChooseColor = new JButton();
private Vector<JButton> jb_labelConstraintClassChooseColor = new Vector<JButton>();
/** dynamic JPanel Colors of Label Constraints Classes*/
JPanel labelColorConstraintPanel = new JPanel(new GridLayout(0,1));
JPanel labelColorConstraintPanel = new JPanel(new GridLayout(0,1));
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment