Coupure prévue mardi 3 Août au matin pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

Commit aacce14b authored by hvernier's avatar hvernier
Browse files

contrainte pour resultPanel

Deplacement des fonction de normalisation et imputation
mise en place filtre
différent mode de lecture pour les csv
parent 53a16e8e
......@@ -67,7 +67,7 @@ public class MultiCube {
@Override
public void run() {
WebLookAndFeel.install(WebSkin.class);
StyleManager.addExtensions(new SkinXML());
//StyleManager.addExtensions(new SkinXML());
RefineryUtilities.centerFrameOnScreen(MainFrame.getInstance());
MainFrame.getInstance().setVisible(true);
......
......@@ -54,7 +54,7 @@ public class ClassificationImage extends ClassificationModel {
if (data instanceof ImageData) {
rpanel = new ImageResultPanel(session, result, this, ((ImageData) data));
} else {
rpanel = new NumericResultPanel(result,this);//new ResultPanel(result, this);
rpanel = new NumericResultPanel(session,result,this);//new ResultPanel(result, this);
}
rpanel.setName(title);
resultPanels.add(rpanel);
......
......@@ -188,7 +188,7 @@ public class DataSession {
//classificationImage.tabbedPane.getTabAt(1).setSelected(true);
}
public void addResultPanel(ImageResultPanel panel) {
public void addResultPanel(ResultPanel panel) {
if (this.resultPanels == null) {
this.resultPanels = new Vector<ResultPanel>();
}
......
......@@ -10,6 +10,7 @@ import java.awt.Insets;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
......@@ -35,6 +36,7 @@ import jcl.data.attribute.AttributeNumerical;
import jcl.data.attribute.AttributeSequence;
import jcl.data.distance.DistanceModel;
import jcl.data.distance.DistanceParameter;
import jcl.data.pretraitement.Normalisation;
import jcl.weights.GlobalWeights;
import jep.Jep;
import jep.JepConfig;
......@@ -99,7 +101,7 @@ public class PythonProcessing {
double result[][] = new double [tab[0].length][tab.length];
for(int i=0 ; i<tab.length ; i++) {
for(int j=0 ; j<tab[0].length ; j++) {
tab[i][j] = result[j][i];
result[j][i] = tab[i][j];
}
}
return result;
......@@ -110,12 +112,33 @@ public class PythonProcessing {
public void initPanelProcessessing(JPanel panel, DataPanel dataPanel) {
JButton excludeJButton = new JButton("Exclude");
JButton switchJButton = new JButton("Imputation");
JButton filterButton = new JButton("Filter");
JButton normalisationJButton = new JButton("Normalization");
panel.setLayout(new GridLayout(1,3));
panel.setLayout(new GridLayout(1,4));
panel.add(excludeJButton);
panel.add(filterButton);
panel.add(switchJButton);
panel.add(normalisationJButton);
filterButton.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
JPanel analyseFilter = new JPanel();
ClarffxDialog viewDataDialog = new ClarffxDialog(analyseFilter
,
ClarffxDialog.CLOSE_BUTTONS);
initPanelAnalyse(analyseFilter,dataPanel,viewDataDialog);
// viewDataDialog.setSize(700, 500);
viewDataDialog.setPreferredSize(new Dimension(250,400));
RefineryUtilities.centerFrameOnScreen(viewDataDialog);
// @todo
viewDataDialog.setTitle("Data Preprocessing");
viewDataDialog.setVisible(true);
}
});
excludeJButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
JPanel panelExclude = new JPanel();
......@@ -166,6 +189,84 @@ public class PythonProcessing {
}
public void initPanelAnalyse(JPanel panel,DataPanel dataPanel,ClarffxDialog dialog) {
Data data = dataPanel.getData();
boolean multiDim = false;
for(int i=0 ; i<data.getOneDataObject().getNbAttributes() ; i++) {
if(data.getOneDataObject().getAttribute(i) instanceof AttributeMultiDimSequence) {
multiDim = true;
break;
}
}
if(multiDim) {
JButton labelPercentage = new JButton("Percentage Ok");
JTextArea percentageOk = new JTextArea("50");
panel.setLayout(new GridLayout(1,2));
panel.add(labelPercentage);
panel.add(percentageOk);
labelPercentage.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
double percentage = Double.parseDouble(percentageOk.getText());
int[] analyse = data.analyseData(percentage);
JPanel info = new JPanel(new BorderLayout());
JPanel buttonPanelInfo = new JPanel(new GridLayout(1,2));
JLabel infoLabel = new JLabel("Date supprimé: "+analyse[0]+" Object supprimé: "+analyse[1]);
info.add(infoLabel,BorderLayout.CENTER);
ClarffxDialog infoAnalyseDialog = new ClarffxDialog(info
,
ClarffxDialog.CLOSE_BUTTONS);
// viewDataDialog.setSize(700, 500);
infoAnalyseDialog.setPreferredSize(new Dimension(250,500));
RefineryUtilities.centerFrameOnScreen(infoAnalyseDialog);
// @todo
infoAnalyseDialog.setTitle("Data Analyse");
infoAnalyseDialog.setVisible(true);
JButton okButton = new JButton("OK");
JButton cancelButton = new JButton("cancel");
buttonPanelInfo.add(okButton);
buttonPanelInfo.add(cancelButton);
info.add(buttonPanelInfo,BorderLayout.SOUTH);
okButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
data.filterData();
infoAnalyseDialog.dispose();
dialog.dispose();
}
});
cancelButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
infoAnalyseDialog.dispose();
}
});
}
});
}else {
int[] analyse = data.analyseData(50);
panel.setLayout(new BorderLayout());
JPanel buttonPanelInfo = new JPanel(new GridLayout(1,2));
JLabel infoLabel = new JLabel("Object supprimé: "+analyse[1]);
panel.add(infoLabel,BorderLayout.CENTER);
JButton okButton = new JButton("OK");
JButton cancelButton = new JButton("cancel");
buttonPanelInfo.add(okButton);
buttonPanelInfo.add(cancelButton);
panel.add(buttonPanelInfo,BorderLayout.SOUTH);
okButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
data.filterData();
dialog.dispose();
}
});
cancelButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
dialog.dispose();
}
});
}
}
public void initOngletVisualisation(JPanel panel,DataPanel dataPanel) {
lectureButton = new JButton("Data");
......@@ -1530,6 +1631,7 @@ public class PythonProcessing {
switchPanel.add(label);
switchPanel.add(switchMean);
switchPanel.add(switchMedian);
switchMedian.setEnabled(false);
switchPanel.add(switchTemporel);
switchPanel.add(panelValCustom);
......@@ -1537,7 +1639,9 @@ public class PythonProcessing {
switchMean.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
Data data = dataPanel.getData();
//dataPanel.getData().filterData();
dataPanel.getData().imputationByMean();
/*Data data = dataPanel.getData();
String tmpName[] = data.getAttributesNames();
String typeAttr[] = {"MultiDim","Sequence","Numerical"};
ArrayList<int[]> attrSimilaryti = new ArrayList<int[]>();
......@@ -1848,7 +1952,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -2197,7 +2301,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -2231,14 +2335,15 @@ public class PythonProcessing {
} catch (JepException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}*/
}
});
switchTemporel.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
Data data = dataPanel.getData();
String tmpName[] = data.getAttributesNames();
data.imputationByExtrapolation();;
/*String tmpName[] = data.getAttributesNames();
String typeAttr[] = {"MultiDim","Sequence","Numerical"};
ArrayList<int[]> attrSimilaryti = new ArrayList<int[]>();
String attrOrder[] = new String[data.getOneDataObject().getNbAttributes()];
......@@ -2548,7 +2653,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -2582,14 +2687,15 @@ public class PythonProcessing {
} catch (JepException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}*/
}
});
switchVal.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
Data data = dataPanel.getData();
String tmpName[] = data.getAttributesNames();
data.imputationByValue(Double.parseDouble(switchVal.getText()));
/*String tmpName[] = data.getAttributesNames();
String typeAttr[] = {"MultiDim","Sequence","Numerical"};
ArrayList<int[]> attrSimilaryti = new ArrayList<int[]>();
String attrOrder[] = new String[data.getOneDataObject().getNbAttributes()];
......@@ -2632,6 +2738,7 @@ public class PythonProcessing {
}
attrSimilaryti.add(tabTmp);
//}
}
ArrayList<List<DataObject>> allData = new ArrayList<List<DataObject>>();
......@@ -2895,7 +3002,8 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
System.out.println(allData.size()+"\n");
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -2929,7 +3037,7 @@ public class PythonProcessing {
} catch (JepException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}*/
}
});
......@@ -2940,9 +3048,9 @@ public class PythonProcessing {
normalisationRobust = new JButton("By RobustScaler");
normalisationScaler = new JButton("By StandardScaler");
normalisationMaxAbsScaler = new JButton("By MaxAbsScaler");
normalisationMinMax.setEnabled(noDataNull);
normalisationMinMax.setEnabled(true);
normalisationRobust.setEnabled(noDataNull);
normalisationScaler.setEnabled(noDataNull);
normalisationScaler.setEnabled(true);
normalisationMaxAbsScaler.setEnabled(noDataNull);
JLabel label = new JLabel("Normalization");
label.setFont(new java.awt.Font("Verdana", Font.BOLD, 14));
......@@ -2955,7 +3063,9 @@ public class PythonProcessing {
normalisationMinMax.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
Data data = dataPanel.getData();
dataPanel.getData().normalisation(Normalisation.MIN_MAX);
//dataPanel.getData().filterData();
/* Data data = dataPanel.getData();
String tmpName[] = data.getAttributesNames();
String typeAttr[] = {"MultiDim","Sequence","Numerical"};
ArrayList<int[]> attrSimilaryti = new ArrayList<int[]>();
......@@ -3099,6 +3209,17 @@ public class PythonProcessing {
jep.eval("df = pd.DataFrame(minmax_scaler.fit_transform(df), columns =names)");
jep.eval("df['id'] = pd.DataFrame(np.array(dataTmp), columns =names)['id']");
jep.eval("columnsNames = df.columns.tolist()");
ArrayList<Double> tmpNorma = ((ArrayList<Double>)jep.getValue("minmax_scaler.data_min_.tolist()"));
double[] tmpMin = new double[tmpNorma.size()-1];
for(int num=1 ; num<tmpNorma.size(); num++) {
tmpMin[num-1] = tmpNorma.get(num);
}
tmpNorma = ((ArrayList<Double>)jep.getValue("minmax_scaler.data_max_.tolist()"));
double[] tmpMax = new double[tmpNorma.size()-1];
for(int num=1 ; num<tmpNorma.size(); num++) {
tmpMax[num-1] = tmpNorma.get(num);
}
data.addNormalisation(new Normalisation(0,tmpMin,tmpMax));
ArrayList<String> tmp = (ArrayList<String>)jep.getValue("columnsNames");
String name[] = new String[tmp.size()-1];
for(int i=1;i<tmp.size();i++) {
......@@ -3173,6 +3294,7 @@ public class PythonProcessing {
valueObject[j] = dimValue.get(j);
}
valueObject = changeLineColone(valueObject);
for(int numArg = 0 ; numArg <valueObject.length ; numArg ++) {
object.setAttribute(numArg,new AttributeSequence(valueObject[numArg]));
}
......@@ -3270,7 +3392,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -3299,12 +3421,14 @@ public class PythonProcessing {
DistanceParameter[][] parameters = DistanceModel.generateDefaultDistanceParameters(1,model, resultData);
resultData.setDistanceModel(model, parameters);
resultData.setDataName(data.getDataName());
resultData.setNormalisation(data.getNormalisations());
dataPanel.setData(resultData);
jep.close();
} catch (JepException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}*/
}
});
......@@ -3625,7 +3749,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -3654,6 +3778,7 @@ public class PythonProcessing {
DistanceParameter[][] parameters = DistanceModel.generateDefaultDistanceParameters(1,model, resultData);
resultData.setDistanceModel(model, parameters);
resultData.setDataName(data.getDataName());
resultData.setNormalisation(data.getNormalisations());
dataPanel.setData(resultData);
jep.close();
} catch (JepException e1) {
......@@ -3665,7 +3790,9 @@ public class PythonProcessing {
normalisationScaler.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
Data data = dataPanel.getData();
dataPanel.getData().normalisation(Normalisation.STANDARD_SCALE);
//dataPanel.getData().filterData();
/*Data data = dataPanel.getData();
String tmpName[] = data.getAttributesNames();
String typeAttr[] = {"MultiDim","Sequence","Numerical"};
ArrayList<int[]> attrSimilaryti = new ArrayList<int[]>();
......@@ -3809,6 +3936,17 @@ public class PythonProcessing {
jep.eval("df = pd.DataFrame(standard_scaler.fit_transform(df), columns =names)");
jep.eval("df['id'] = pd.DataFrame(np.array(dataTmp), columns =names)['id']");
jep.eval("columnsNames = df.columns.tolist()");
ArrayList<Double> tmpNorma = ((ArrayList<Double>)jep.getValue("standard_scaler.mean_.tolist()"));
double[] tmpMin = new double[tmpNorma.size()-1];
for(int num=1 ; num<tmpNorma.size(); num++) {
tmpMin[num-1] = tmpNorma.get(num);
}
tmpNorma = ((ArrayList<Double>)jep.getValue("standard_scaler.var_.tolist()"));
double[] tmpMax = new double[tmpNorma.size()-1];
for(int num=1 ; num<tmpNorma.size(); num++) {
tmpMax[num-1] = tmpNorma.get(num);
}
data.addNormalisation(new Normalisation(1,tmpMin,tmpMax));
ArrayList<String> tmp = (ArrayList<String>)jep.getValue("columnsNames");
String name[] = new String[tmp.size()-1];
for(int i=1;i<tmp.size();i++) {
......@@ -3980,7 +4118,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -4009,12 +4147,13 @@ public class PythonProcessing {
DistanceParameter[][] parameters = DistanceModel.generateDefaultDistanceParameters(1,model, resultData);
resultData.setDistanceModel(model, parameters);
resultData.setDataName(data.getDataName());
resultData.setNormalisation(data.getNormalisations());
dataPanel.setData(resultData);
jep.close();
} catch (JepException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}*/
}
});
......@@ -4335,7 +4474,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -4364,6 +4503,7 @@ public class PythonProcessing {
DistanceParameter[][] parameters = DistanceModel.generateDefaultDistanceParameters(1,model, resultData);
resultData.setDistanceModel(model, parameters);
resultData.setDataName(data.getDataName());
resultData.setNormalisation(data.getNormalisations());
dataPanel.setData(resultData);
jep.close();
} catch (JepException e1) {
......@@ -4702,7 +4842,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -5057,7 +5197,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
if(i==0) {
namesAttributeFinal.add("AttributeMultiDim"+multDim);
}
......@@ -5423,7 +5563,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
object.setId(allData.get(0).get(i).getId());
multDim++;
break;
......@@ -5883,7 +6023,7 @@ public class PythonProcessing {
for(int j=0 ; j<nbAttr ; j++) {
switch(attrOrder[j]) {
case "MultiDim":
object.setAttribute(j, allData.get(0).get(i).getAttribute(multDim));
object.setAttribute(j, allData.get(multDim).get(i).getAttribute(0));
if(i==0) {
namesAttributeFinal.add("AttributeMultiDim"+multDim);
}
......
......@@ -41,6 +41,7 @@ import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSlider;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.event.ChangeEvent;
......@@ -142,6 +143,7 @@ public class ConstraintsSelectionFrame extends JFrame implements ImageAddOn {
private BufferedImage imagePixelML = null;
private BufferedImage imagePixelCL = null;
private Vector<BufferedImage> imageLabelPixel = new Vector<BufferedImage>();
private JTable table = null;
private int classID;
private JPanel container;
......@@ -326,6 +328,159 @@ public class ConstraintsSelectionFrame extends JFrame implements ImageAddOn {
}
public ConstraintsSelectionFrame(JTable table, Data data, Vector<Constraint> constraintsContainer) {
super();
mainPanel = new JPanel(new BorderLayout());
this.table = table;
this.constraintsContainer = constraintsContainer;
if (data != null) {
// case of Data provided
DistanceModel model = DistanceModel.generateDefaultModel(data.getOneDataObject(),
new GlobalWeights(data.getOneDataObject()));
DistanceParameter[][] parameters = DistanceModel.generateDefaultDistanceParameters(1,model, data);
minDistance = data.getEstimatedMinDistance(model, parameters[0]);
maxDistance = data.getEstimatedMaxDistance(model, parameters[0]);
this.data = data;
}
addListeners2();
JPanel panelButton = new JPanel();
JButton buttonOk = new JButton(Messages.getString("ConstraintsSelectionDialog.50")); //$NON-NLS-1$
buttonOk.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (ConstraintsSelectionFrame.this.data != null) {
ConstraintsSelectionFrame.this.data.updateAndSetConstraintsToSample(getConstraints());
updateConstraintsContainer(ConstraintsSelectionFrame.this.data.getConstraints());
} else {
updateConstraintsContainer(getConstraints());
}
ConstraintsSelectionFrame.this.dispose();
}
});
panelButton.add(buttonOk);
otherComponentList.add(buttonOk);
JButton buttonCancel = new JButton(Messages.getString("ConstraintsSelectionDialog.55")); //$NON-NLS-1$
buttonCancel.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
ConstraintsSelectionFrame.this.dispose();
}
});
panelButton.add(buttonCancel);
otherComponentList.add(buttonCancel);
JButton importButton = new JButton(Messages.getString("ConstraintsSelectionDialog.51")); //$NON-NLS-1$
importButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
importConstraints();
}
});
panelButton.add(importButton);
otherComponentList.add(importButton);
JButton exportButton = new JButton(Messages.getString("ConstraintsSelectionDialog.52")); //$NON-NLS-1$
exportButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
exportConstraints();
}
});
panelButton.add(exportButton);
otherComponentList.add(exportButton);
JButton constraintsColorChooser = new JButton(
Messages.getString("ConstraintsSelectionDialog.56")); //$NON-NLS-1$
/*constraintsColorChooser.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// action for color chooser
new ConstraintsColor(ConstraintsSelectionFrame.this,
mustLinkColor, cannotLinkColor, labelConstraintColor);
imageDisplayer.refresh(false);
}
});
panelButton.add(constraintsColorChooser);*/
/** Displays or hides current constraints on the image */
check = new JCheckBox(Messages.getString("ConstraintsSelectionDialog.57")); //$NON-NLS-1$
/*check.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if(check.isSelected()) {
imageDisplayer.refresh(false);
}
else {
imageDisplayer.refresh(false);
}
}
});
panelButton.add(check);*/
/*initializeConstraintsColors();
otherComponentList.add(constraintsColorChooser);
final JCheckBox zoomBoxChkBox = new JCheckBox(Messages.getString("ConstraintsSelectionDialog.58")); //$NON-NLS-1$
zoomBoxChkBox.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
ConstraintsSelectionFrame.this.imageDisplayer.getDisplayPanel()
.setZoomBoxEnabled(e.getStateChange() == ItemEvent.SELECTED);
}
});
panelButton.add(zoomBoxChkBox);
otherComponentList.add(zoomBoxChkBox);*/
mainPanel.add(new JScrollPane(buildInfoPanel()), BorderLayout.CENTER);
// mainPanel.add(buildInfoPanel(), BorderLayout.WEST);
// mainPanel.add(jpane, BorderLayout.CENTER);
mainPanel.add(panelButton, BorderLayout.SOUTH);
if (constraintsContainer != null ) {
setConstraints(constraintsContainer, false);
}
this.addWindowListener(new WindowListener() {
@Override
public void windowOpened(WindowEvent e) {
}
@Override
public void windowIconified(WindowEvent e) {
}
@Override
public void windowDeiconified(WindowEvent e) {
}
@Override
public void windowDeactivated(WindowEvent e) {
}
@Override
public void windowClosing(WindowEvent e) {
}
@Override
public void windowClosed(WindowEvent e) {
}
@Override
public void windowActivated(WindowEvent e) {
}
});