Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 5386ad76 authored by harrison's avatar harrison
Browse files

Vue éclaté avec JTabbedPanel custom ( drag and drop ) et JTree pour controler...

Vue éclaté avec JTabbedPanel custom ( drag and drop ) et JTree pour controler les resultat que l'on visualise
parent 46bc574a
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -14,6 +14,7 @@ import javax.swing.*;
import jcl.data.mask.Mask;
import mustic.gui.*;
import mustic.gui.Messages;
import mustic.gui.dialog.classifier.ConstraintsSelectionFrame;
import mustic.io.RawImage;
import mustic.io.roi.RegionOfInterest;
......@@ -118,6 +119,8 @@ public class ImagePanel extends JPanel implements Zoomable, Observer, ImageDispl
/** the list of add on that the displayer has subscribed to */
private Vector<ImageAddOn> imageAddOns = new Vector<ImageAddOn>();
public ImagePanel imagePanel;
/**
......@@ -130,6 +133,7 @@ public class ImagePanel extends JPanel implements Zoomable, Observer, ImageDispl
if (session.isDisplayEnable()) {
this.viewer = new BufferedImageViewer(aImage);
}
imagePanel = this;
this.session = session;
setLayout(new BorderLayout());
// this.mImageLabel = new JLabel(new ImageIcon(viewer.getScreenImage(0, 0,
......@@ -137,6 +141,7 @@ public class ImagePanel extends JPanel implements Zoomable, Observer, ImageDispl
// this.mImageLabel.setHorizontalAlignment(SwingConstants.CENTER);
this.displayPanel = new ZoomBoxPanel(this);
add(this.displayPanel, BorderLayout.CENTER);
initToolsBar();
}
/**
......@@ -150,6 +155,7 @@ public class ImagePanel extends JPanel implements Zoomable, Observer, ImageDispl
if (session.isDisplayEnable()) {
this.viewer = new GDALPyramidImageViewer(aImage, true);
}
imagePanel = this;
this.session = session;
// this.mImageLabel = new JLabel();
// this.mImageLabel.setHorizontalAlignment(SwingConstants.CENTER);
......@@ -160,7 +166,155 @@ public class ImagePanel extends JPanel implements Zoomable, Observer, ImageDispl
this.mInfoPanel = new ImageInformationPanel(aImage);
initMouseListeners();
initToolsBar();
}
/**
* generate toolsBar
*/
private void initToolsBar() {
JToolBar toolBar = new JToolBar();
JLabel lInfo = new JLabel(new ImageIcon(getClass().getResource("/icons/emblems/emblem-important.png"))); //$NON-NLS-1$
lInfo.setToolTipText("<html>" + Messages.getString("MainFrame.85") + "<br>" + Messages.getString("MainFrame.86") + "<br>"
+ Messages.getString("MainFrame.87") + "</html>");
toolBar.add(lInfo);
/** Zoom 'plus' button * */
JButton zoomP = new JButton(new ImageIcon(getClass().getResource("/icons/icon_zp.png"))); //$NON-NLS-1$
zoomP.setFocusable(false);
toolBar.add(zoomP);
zoomP.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.zoomIn();
}
});
/** Zoom 'minus' button * */
JButton zoomM = new JButton(new ImageIcon(getClass().getResource("/icons/icon_zm.png"))); //$NON-NLS-1$
zoomM.setFocusable(false);
toolBar.add(zoomM);
zoomM.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.zoomOut();
}
});
toolBar.addSeparator();
/*JToggleButton cible = new JToggleButton(new ImageIcon(getClass().getResource("/icons/icon_cible.png"))); //$NON-NLS-1$
cible.setSelected(MainFrame.targetMode);
cible.setFocusable(false);
cible.setToolTipText(Messages.getString("MainFrame.94")); //$NON-NLS-1$
toolBar.add(cible);
cible.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (MainFrame.targetMode)
MainFrame.targetMode = false;
else
MainFrame.targetMode = true;
}
});
toolBar.addSeparator();*/
/** Brightness 'plus' button * */
JButton brightP = new JButton(new ImageIcon(getClass().getResource("/icons/icon_ibrigth.png"))); //$NON-NLS-1$
brightP.setFocusable(false);
brightP.setToolTipText(Messages.getString("MainFrame.91")); //$NON-NLS-1$
toolBar.add(brightP);
brightP.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.increaseBrightness();
}
});
/** Brightness 'minus' button * */
JButton brightM = new JButton(new ImageIcon(getClass().getResource("/icons/icon_dbrigth.png"))); //$NON-NLS-1$
brightM.setFocusable(false);
brightM.setToolTipText(Messages.getString("MainFrame.93")); //$NON-NLS-1$
toolBar.add(brightM);
brightM.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.decreaseBrightness();
}
});
toolBar.addSeparator();
/** contrast 'plus' button * */
JButton contrastP = new JButton(new ImageIcon(getClass().getResource("/icons/icon_icontrast.png"))); //$NON-NLS-1$
contrastP.setFocusable(false);
contrastP.setToolTipText(Messages.getString("MainFrame.95")); //$NON-NLS-1$
toolBar.add(contrastP);
contrastP.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.increaseContrast();
}
});
/** contrast 'minus' button * */
JButton contrastM = new JButton(new ImageIcon(getClass().getResource("/icons/icon_dcontrast.png"))); //$NON-NLS-1$
contrastM.setFocusable(false);
contrastM.setToolTipText(Messages.getString("MainFrame.97")); //$NON-NLS-1$
toolBar.add(contrastM);
contrastM.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.decreaseContrast();
}
});
toolBar.addSeparator();
/** Reset all images operation (zoom bright ...) * */
JButton resetAll = new JButton(new ImageIcon(getClass().getResource("/icons/icon_undo.png"))); //$NON-NLS-1$
resetAll.setFocusable(false);
resetAll.setToolTipText(Messages.getString("MainFrame.99")); //$NON-NLS-1$
toolBar.add(resetAll);
resetAll.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.resetAll();
}
});
toolBar.addSeparator();
/** Choose RGB button * */
/*JButton chooseRgb = new JButton(new ImageIcon(getClass().getResource("/icons/icon_rgb.png"))); //$NON-NLS-1$
chooseRgb.setFocusable(false);
chooseRgb.setToolTipText(Messages.getString("MainFrame.101")); //$NON-NLS-1$
toolBar.add(chooseRgb);
chooseRgb.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.chooseRgb();
}
});
toolBar.addSeparator();*/
/** refresh button */
JButton refreshButton = new JButton(new ImageIcon(getClass().getResource("/icons/actions/view-refresh.png"))); //$NON-NLS-1$
refreshButton.setFocusable(false);
refreshButton.setToolTipText(Messages.getString("MainFrame.103")); //$NON-NLS-1$
toolBar.add(refreshButton);
refreshButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
imagePanel.resetAll();
}
});
this.add(toolBar, BorderLayout.PAGE_START);
}
private void initMouseListeners() {
this.displayPanel.addMouseListener(this.mouseListener);
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -939,6 +939,7 @@ public class ClassifierPanel extends JPanel {
}
}
System.out.println("yolo");
return nameData;
}
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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