First_commit
7
.classpath
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry excluding="src/" kind="src" path=""/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
17
.project
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>App1</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
11
.settings/org.eclipse.jdt.core.prefs
Normal file
|
@ -0,0 +1,11 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
BIN
Capture.PNG
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
Images/Install_Trinus/1.PNG
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
Images/Install_Trinus/2.PNG
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
Images/Install_Trinus/3.PNG
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
Images/Install_Trinus/4.PNG
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Images/Install_Trinus/5.PNG
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
Images/Install_Trinus/6.PNG
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
Images/Install_Trinus/7.PNG
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
Images/Install_Wiimote/1.PNG
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
Images/Install_Wiimote/2.PNG
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
Images/Install_Wiimote/3.PNG
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
Images/Install_Wiimote/4.PNG
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
Images/Install_Wiimote/5.PNG
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
Logo_ISDAT.PNG
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
Nom_Cours.PNG
Normal file
After Width: | Height: | Size: 7.3 KiB |
4
README.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Readme to be completeds
|
||||
Pauline
|
||||
Joao
|
||||
Laura
|
7
bin/.classpath
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry excluding="src/" kind="src" path=""/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
17
bin/.project
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>App1</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
11
bin/.settings/org.eclipse.jdt.core.prefs
Normal file
|
@ -0,0 +1,11 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
BIN
bin/Application1/Fenetre$1.class
Normal file
BIN
bin/Application1/Fenetre$2.class
Normal file
BIN
bin/Application1/Fenetre$3.class
Normal file
BIN
bin/Application1/Fenetre.class
Normal file
BIN
bin/Application1/ImagePanel.class
Normal file
BIN
bin/Application1/Main.class
Normal file
BIN
bin/Application1/TextPanel.class
Normal file
BIN
bin/Application1/carte.class
Normal file
BIN
bin/Application1/titre.class
Normal file
BIN
bin/Capture.PNG
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
bin/Images/Install_Trinus/1.PNG
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
bin/Images/Install_Trinus/2.PNG
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
bin/Images/Install_Trinus/3.PNG
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
bin/Images/Install_Trinus/4.PNG
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
bin/Images/Install_Trinus/5.PNG
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
bin/Images/Install_Trinus/6.PNG
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
bin/Images/Install_Trinus/7.PNG
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
bin/Images/Install_Wiimote/1.PNG
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
bin/Images/Install_Wiimote/2.PNG
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
bin/Images/Install_Wiimote/3.PNG
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
bin/Images/Install_Wiimote/4.PNG
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
bin/Images/Install_Wiimote/5.PNG
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
bin/Logo_ISDAT.PNG
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
bin/Nom_Cours.PNG
Normal file
After Width: | Height: | Size: 7.3 KiB |
4
bin/README.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Readme to be completeds
|
||||
Pauline
|
||||
Joao
|
||||
Laura
|
BIN
bin/test.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
176
src/Application1/Fenetre.java
Normal file
|
@ -0,0 +1,176 @@
|
|||
package Application1;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.CardLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.ComponentOrientation;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Image;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
|
||||
public class Fenetre extends JFrame implements ActionListener{
|
||||
|
||||
|
||||
|
||||
|
||||
//Initialisation des objets
|
||||
private JPanel conteneur;
|
||||
private titre conteneurTitre;
|
||||
private JPanel conteneurBouton;
|
||||
private JButton boutonrev;
|
||||
private JButton boutonsuiv;
|
||||
private JButton boutonfininstall;
|
||||
private CardLayout cl;
|
||||
private FlowLayout fl;
|
||||
String[] listContent = {"CARD_1","CARD_2","CARD_3","CARD_4","CARD_5","CARD_6","CARD_7"};
|
||||
|
||||
public int Indice = 0;
|
||||
public Graphics g ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public Fenetre() {
|
||||
//Création des objets
|
||||
conteneur = new JPanel();
|
||||
conteneurTitre = new titre();
|
||||
conteneurBouton = new JPanel();
|
||||
boutonrev = new JButton("Revenir");
|
||||
boutonsuiv = new JButton("Suivant");
|
||||
boutonfininstall = new JButton("Lancer VR");
|
||||
cl = new CardLayout();
|
||||
|
||||
|
||||
g=getGraphics();
|
||||
|
||||
//SetUp de la fenetre
|
||||
this.setSize(1200,900);
|
||||
this.setLocationRelativeTo(null); //On le garde centrée
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Pour réellement fermer la fenetre
|
||||
this.dispose();
|
||||
this.setUndecorated(false);
|
||||
conteneur.setPreferredSize(new Dimension(1100,640));
|
||||
conteneurBouton.setPreferredSize(new Dimension(1200,50));
|
||||
|
||||
|
||||
|
||||
|
||||
//Création des pages
|
||||
ImagePanel card1 = new ImagePanel("test.png");
|
||||
carte card2 = new carte(2,1);
|
||||
carte card3 = new carte(3,1);
|
||||
carte card4 = new carte(4,1);
|
||||
carte card5 = new carte (5,1);
|
||||
carte card6 = new carte (6,1);
|
||||
carte card7 = new carte (7,1);
|
||||
|
||||
|
||||
|
||||
cl.setHgap(10);
|
||||
cl.setVgap(10);
|
||||
|
||||
|
||||
|
||||
//SetUp des conteneurs
|
||||
|
||||
conteneurBouton.setBackground(Color.BLACK);
|
||||
conteneurBouton.add(boutonrev);
|
||||
conteneurBouton.add(boutonsuiv);
|
||||
conteneurBouton.add(boutonfininstall);
|
||||
|
||||
|
||||
|
||||
|
||||
conteneur.setLayout(cl);
|
||||
conteneur.add(card1,listContent[0]);
|
||||
conteneur.add(card2,listContent[1]);
|
||||
conteneur.add(card3,listContent[2]);
|
||||
conteneur.add(card4,listContent[3]);
|
||||
conteneur.add(card5,listContent[4]);
|
||||
conteneur.add(card6,listContent[5]);
|
||||
conteneur.add(card7,listContent[6]);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Gestion de l'action des Boutons
|
||||
|
||||
boutonsuiv.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent event) {
|
||||
cl.next(conteneur);
|
||||
|
||||
}
|
||||
});
|
||||
boutonrev.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent event) {
|
||||
cl.previous(conteneur);
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
boutonfininstall.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent event) {
|
||||
cl.show(conteneur,"CARD_7");
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//Affichage
|
||||
this.getContentPane().add(conteneurBouton, BorderLayout.SOUTH);
|
||||
this.getContentPane().add(conteneur, BorderLayout.CENTER);
|
||||
this.getContentPane().add(conteneurTitre,BorderLayout.NORTH);
|
||||
this.setVisible(true);
|
||||
conteneurTitre.setBorder(new EmptyBorder(10,10,10,10));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void actionPerformed(ActionEvent arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
42
src/Application1/ImagePanel.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package Application1;
|
||||
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Image;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public class ImagePanel extends JPanel {
|
||||
private String chemin;
|
||||
private int TailleImageX;
|
||||
private int TailleImageY;
|
||||
private int TailleEspaceDestX;
|
||||
private int TailleEspaceDestY;
|
||||
private Image Img;
|
||||
private int type; // Il s'agit du type de pannel. 1=> 1 cadran, 2 = > 4 cadrans
|
||||
|
||||
public ImagePanel( String path) {
|
||||
|
||||
try {
|
||||
|
||||
Img = ImageIO.read(new File(path));
|
||||
TailleImageY = Img.getHeight(null);
|
||||
TailleImageX = Img.getWidth(null);
|
||||
|
||||
|
||||
}
|
||||
catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public void paintComponent(Graphics g) {
|
||||
g.drawImage(this.Img, 0, 0,this.getWidth(),this.getHeight(),0,0,TailleImageX,TailleImageY, null);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
35
src/Application1/Main.java
Normal file
|
@ -0,0 +1,35 @@
|
|||
package Application1;
|
||||
|
||||
import java.awt.Desktop;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
Fenetre fenetre = new Fenetre();
|
||||
Desktop Starter = Desktop.getDesktop();
|
||||
|
||||
|
||||
File file = new File("C:\\Users\\nunes\\Desktop\\Travail\\PIR\\Software\\Glovepie\\WiimoteScripts\\Test.PIE");
|
||||
|
||||
|
||||
|
||||
|
||||
/*try {
|
||||
//Starter.open(file);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
33
src/Application1/TextPanel.java
Normal file
|
@ -0,0 +1,33 @@
|
|||
package Application1;
|
||||
|
||||
import java.awt.Font;
|
||||
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
public class TextPanel extends JTextArea {
|
||||
|
||||
public TextPanel() {
|
||||
super();
|
||||
Font police = new Font(Font.MONOSPACED, Font.BOLD, 25);
|
||||
this.setFont(police);
|
||||
|
||||
}
|
||||
|
||||
public TextPanel(int taille) {
|
||||
super();
|
||||
Font police = new Font(Font.MONOSPACED, Font.PLAIN, taille);
|
||||
this.setFont(police);
|
||||
this.setLineWrap(true);
|
||||
this.setWrapStyleWord(true);
|
||||
|
||||
}
|
||||
|
||||
public void AjouterParagraph(String txt) {
|
||||
this.append(txt);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
377
src/Application1/carte.java
Normal file
|
@ -0,0 +1,377 @@
|
|||
package Application1;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Image;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EtchedBorder;
|
||||
|
||||
public class carte extends JPanel{
|
||||
private int numero;
|
||||
private Color couleur; // Background Color
|
||||
|
||||
private int type;
|
||||
// type:= 1 => Installation
|
||||
// type:= 2 => Fonctionnement
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public carte (int i, int t) {
|
||||
|
||||
numero = i;
|
||||
//couleur = Color.WHITE; //Default
|
||||
type = t;
|
||||
int taille; //taille police
|
||||
|
||||
Border border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
|
||||
Border blackline = BorderFactory.createLineBorder(Color.black);
|
||||
Border compound;
|
||||
compound = BorderFactory.createCompoundBorder(border, blackline);
|
||||
JButton boutontest = new JButton("Test");
|
||||
|
||||
if (i==2) {
|
||||
|
||||
|
||||
//Initialitsation
|
||||
TextPanel cadran1;
|
||||
TextPanel cadran2;
|
||||
TextPanel cadran3;
|
||||
TextPanel cadran4;
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
|
||||
//Cadran 1
|
||||
taille = 15; //taille police
|
||||
cadran1 = new TextPanel(taille);
|
||||
|
||||
|
||||
|
||||
cadran1.setBorder(compound);
|
||||
cadran1.AjouterParagraph(" \n");
|
||||
cadran1.AjouterParagraph(" Du BIM à la Réalité Virtuelle! \n");
|
||||
cadran1.AjouterParagraph(" \n");
|
||||
cadran1.AjouterParagraph(" Projet issu d'une collaboration entre l'INSA et l'ISDAT. \n");
|
||||
cadran1.AjouterParagraph(" \n");
|
||||
cadran1.AjouterParagraph(" A partir d'une simulation BIM réalisée par les élèves de l'ISDAT, \n");
|
||||
cadran1.AjouterParagraph(" ceux de l'INSA ont mis au point une application permettant \n");
|
||||
cadran1.AjouterParagraph(" de visualiser un environnement virtuel dépendant \n");
|
||||
cadran1.AjouterParagraph(" de la maquette BIM, afin d'intéragir avec \n");
|
||||
cadran1.AjouterParagraph(" lui au sein de cette réalité virtuelle. \n");
|
||||
cadran1.setEditable(false);
|
||||
|
||||
|
||||
//Cadran 2
|
||||
taille = 15; //taille police
|
||||
cadran2 = new TextPanel(taille);
|
||||
|
||||
cadran2.AjouterParagraph(" \n");
|
||||
cadran2.AjouterParagraph(" Participants à la réalisation du projet : \n");
|
||||
cadran2.AjouterParagraph(" \n");
|
||||
cadran2.AjouterParagraph(" Elèves de l'INSA : Elèves de l'ISDAT : Tuteurs : \n");
|
||||
cadran2.AjouterParagraph(" \n");
|
||||
cadran2.AjouterParagraph(" AMOUR Chadi BRUYERE Nathalie \n");
|
||||
cadran2.AjouterParagraph(" BERRADA El Ghali MONTEIL Thierry \n");
|
||||
cadran2.AjouterParagraph(" BERTA Pauline \n");
|
||||
cadran2.AjouterParagraph(" BOUOULID Ilias \n");
|
||||
cadran2.AjouterParagraph(" NUNES Joao \n");
|
||||
cadran2.AjouterParagraph(" POLONI Laura \n");
|
||||
cadran2.AjouterParagraph(" \n");
|
||||
cadran2.setEditable(false);
|
||||
cadran2.setBorder(compound);
|
||||
|
||||
|
||||
//Cadran 3
|
||||
taille = 15; //taille police
|
||||
cadran3 = new TextPanel(taille);
|
||||
|
||||
cadran3.AjouterParagraph(" \n");
|
||||
cadran3.AjouterParagraph(" Logiciels nécessaires à la bonne réalisation du projet : \n");
|
||||
cadran3.AjouterParagraph(" \n");
|
||||
cadran3.AjouterParagraph(" Revit \n");
|
||||
cadran3.AjouterParagraph(" GrassHopper (avec son plugin) \n");
|
||||
cadran3.AjouterParagraph(" Trinus \n");
|
||||
cadran3.AjouterParagraph(" GlovePie \n");
|
||||
cadran3.AjouterParagraph(" \n");
|
||||
cadran3.AjouterParagraph(" Nous vous expliquerons par la suite quels sont les logiciels \n");
|
||||
cadran3.AjouterParagraph(" prérequis, et quels sont ceux dont nous allons guider l'installation. \n");
|
||||
cadran3.setEditable(false);
|
||||
cadran3.setBorder(compound);
|
||||
|
||||
|
||||
//Cadran 4
|
||||
taille = 15; //taille police
|
||||
cadran4 = new TextPanel(taille);
|
||||
|
||||
cadran4.AjouterParagraph(" \n");
|
||||
cadran4.AjouterParagraph(" Matériel nécessaire à la bonne réalisation du projet : \n");
|
||||
cadran4.AjouterParagraph(" \n");
|
||||
cadran4.AjouterParagraph(" Wiimote \n");
|
||||
cadran4.AjouterParagraph(" Sensor bar \n");
|
||||
cadran4.AjouterParagraph(" Masque \n");
|
||||
cadran4.AjouterParagraph(" Smartphone \n");
|
||||
cadran4.AjouterParagraph(" \n");
|
||||
cadran4.AjouterParagraph(" Nous vous expliquerons par la suite quel sera l'utilisation \n");
|
||||
cadran4.AjouterParagraph(" de chaque matériel et comment les mettre en place. \n");
|
||||
cadran4.setEditable(false);
|
||||
cadran4.setBorder(compound);
|
||||
|
||||
//Ajouter les cadrans
|
||||
add(cadran1);
|
||||
add(cadran2);
|
||||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
|
||||
}
|
||||
else if (i==3) {
|
||||
//Initialitsation
|
||||
TextPanel cadran1;
|
||||
ImagePanel cadran2;
|
||||
TextPanel cadran3;
|
||||
TextPanel cadran4;
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
|
||||
|
||||
}
|
||||
else if (i==4) {
|
||||
|
||||
//Initialitsation
|
||||
TextPanel cadran1;
|
||||
ImagePanel cadran2;
|
||||
ImagePanel cadran3;
|
||||
ImagePanel cadran4;
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
//Cadran 1
|
||||
taille = 15; //taille police
|
||||
cadran1 = new TextPanel(taille);
|
||||
|
||||
|
||||
|
||||
cadran1.setBorder(compound);
|
||||
cadran1.AjouterParagraph(" \n");
|
||||
cadran1.AjouterParagraph(" L'installation du logiciel Trinus est nécessaire pour le bon fonctionnement"
|
||||
+ "de notre système.");
|
||||
cadran1.AjouterParagraph("L'installation va se lancer automatiquement. "
|
||||
+ "Vous devez accepter et suivre les étapes décrites sur les images suivantes.");
|
||||
cadran1.setEditable(false);
|
||||
|
||||
|
||||
//Cadran 2
|
||||
cadran2 = new ImagePanel("Images/Install_Trinus/1.png");
|
||||
cadran2.setBorder(compound);
|
||||
|
||||
//Cadran3
|
||||
cadran3 = new ImagePanel("Images/Install_Trinus/2.png");
|
||||
cadran3.setBorder(compound);
|
||||
|
||||
cadran4 = new ImagePanel("Images/Install_Trinus/3.png");
|
||||
cadran4.setBorder(compound);
|
||||
|
||||
//Ajouter les cadrans
|
||||
add(cadran1);
|
||||
add(cadran2);
|
||||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
else if (i==5) {
|
||||
|
||||
//Initialitsation
|
||||
ImagePanel cadran1;
|
||||
ImagePanel cadran2;
|
||||
ImagePanel cadran3;
|
||||
ImagePanel cadran4;
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
|
||||
cadran1 = new ImagePanel("Images/Install_Trinus/4.png");
|
||||
cadran1.setBorder(border);
|
||||
cadran2 = new ImagePanel("Images/Install_Trinus/5.png");
|
||||
cadran2.setBorder(compound);
|
||||
cadran3 = new ImagePanel("Images/Install_Trinus/6.png");
|
||||
cadran3.setBorder(compound);
|
||||
cadran4 = new ImagePanel("Images/Install_Trinus/7.png");
|
||||
cadran4.setBorder(compound);
|
||||
|
||||
|
||||
|
||||
|
||||
//Ajout des cadrans
|
||||
add(cadran1);
|
||||
add(cadran2);
|
||||
add(cadran3);
|
||||
add(cadran4);
|
||||
}
|
||||
else if (i==6) {
|
||||
|
||||
|
||||
|
||||
|
||||
//Initialitsation
|
||||
TextPanel cadran1;
|
||||
ImagePanel cadran2;
|
||||
ImagePanel cadran3;
|
||||
ImagePanel cadran4;
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
//Cadran 1
|
||||
taille = 15; //taille police
|
||||
cadran1 = new TextPanel(taille);
|
||||
|
||||
cadran1.setBorder(compound);
|
||||
cadran1.AjouterParagraph(" \n");
|
||||
cadran1.AjouterParagraph("Maintenant nous devons installer la manette Wiimote.");;
|
||||
cadran1.AjouterParagraph("Pour ça nous allons l'ajouter en tant que périphérique bluetooth."
|
||||
+ "Le panneau de configuration va apparaitre. Suivez les étapes d'installation avec les images suivantes.");
|
||||
cadran1.setEditable(false);
|
||||
|
||||
|
||||
//Cadran 2
|
||||
cadran2 = new ImagePanel("Images/Install_Wiimote/1.png");
|
||||
cadran2.setBorder(compound);
|
||||
|
||||
|
||||
//Cadran 3
|
||||
cadran3 = new ImagePanel("Images/Install_Wiimote/2.png");
|
||||
cadran3.setBorder(compound);
|
||||
|
||||
|
||||
//Cadran 4
|
||||
cadran4 = new ImagePanel("Images/Install_Wiimote/3.png");
|
||||
cadran4.setBorder(compound);
|
||||
|
||||
|
||||
//Ajout des cadrans
|
||||
add(cadran1);
|
||||
add(cadran2);
|
||||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
//Lancement du panneau de configuration
|
||||
|
||||
Runtime rt = Runtime.getRuntime();
|
||||
try {
|
||||
rt.exec(new String[] {"cmd.exe","/c","start","control"});
|
||||
|
||||
}catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
else if (i==7) {
|
||||
//Initialitsation
|
||||
ImagePanel cadran1;
|
||||
ImagePanel cadran2;
|
||||
TextPanel cadran3;
|
||||
JPanel cadran4;
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
|
||||
//Cadran 1
|
||||
cadran1 = new ImagePanel("Images/Install_Wiimote/4.png");
|
||||
|
||||
//Cadran 2
|
||||
|
||||
cadran2 = new ImagePanel("Images/Install_Wiimote/5.png");
|
||||
|
||||
|
||||
|
||||
//Cadran 3
|
||||
taille = 15; //taille police
|
||||
cadran3 = new TextPanel(taille);
|
||||
cadran3.setBorder(compound);
|
||||
cadran3.AjouterParagraph(" \n");
|
||||
cadran3.AjouterParagraph("Maintenant nous sommes prets pour utiliser notre système.");
|
||||
cadran3.AjouterParagraph("Nous avons installé les logiciels : \n "
|
||||
+ "- Trinus. \n "
|
||||
+ "- GlovePie.\n"
|
||||
+ "-Wiimote controller");
|
||||
cadran3.setEditable(false);
|
||||
|
||||
|
||||
//Cadran 4
|
||||
|
||||
TextPanel te = new TextPanel(taille);
|
||||
te.AjouterParagraph("jddzjz$ zd qzdjqz dqzjd qj zdq zdq zdjq zdjqzjdqjz dq jzd jq"
|
||||
+ " zdq zdqz dqz dq zd"
|
||||
+ "q zdqzd qzd qzdqzdzqdqzdqzd"
|
||||
+ "qzd qzdqz dqzdqzdqz dz");
|
||||
te.setEditable(false);
|
||||
|
||||
cadran4 = new JPanel();
|
||||
GridLayout f = new GridLayout(1,2);
|
||||
cadran4.setLayout(f);
|
||||
cadran4.add(boutontest);
|
||||
cadran4.add(te);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//Ajout Cadran
|
||||
add(cadran1);
|
||||
add(cadran2);
|
||||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void ColorChange(Color couleur) {
|
||||
|
||||
this.setBackground(couleur);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
55
src/Application1/titre.java
Normal file
|
@ -0,0 +1,55 @@
|
|||
package Application1;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Image;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
|
||||
public class titre extends JPanel{
|
||||
public titre() {
|
||||
|
||||
JLabel Titre = new JLabel("Charpente 2.0");// ???????????????
|
||||
Font police = new Font("Arial", Font.BOLD, 24);
|
||||
Titre.setFont(police);
|
||||
Titre.setForeground(Color.black);
|
||||
this.setBackground(Color.WHITE);
|
||||
Titre.setHorizontalAlignment(JLabel.CENTER);
|
||||
this.add(Titre, BorderLayout.CENTER);
|
||||
this.setPreferredSize(new Dimension(1200,100));
|
||||
this.setBorder(new EmptyBorder(50,50,50,50));
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void paintComponent(Graphics g) {
|
||||
try {
|
||||
Image img1 = ImageIO.read(new File("test.png"));
|
||||
Image img2 = ImageIO.read(new File("Logo_ISDAT.png"));
|
||||
Image img3 = ImageIO.read(new File("Nom_cours.png"));
|
||||
g.drawImage(img1, 20, 10,260,130,0,0,354,142, this);
|
||||
g.drawImage(img2, 200, 10,370,100,0,0,711,352, this);
|
||||
g.drawImage(img3, this.getWidth() - 300, 10, this.getWidth() - 12, 100, 0, 0, 260, 63, this);
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
BIN
test.png
Normal file
After Width: | Height: | Size: 1.3 KiB |