Browse Source

cromer.cl site content

Chris Cromer 2 years ago
parent
commit
768e8ca7cc
6 changed files with 80 additions and 1 deletions
  1. 6
    0
      .idea/jsLibraryMappings.xml
  2. 1
    0
      Estructuras de Datos.iml
  3. 1
    0
      dtjava.js
  4. 42
    0
      edd.html
  5. 29
    0
      index.html
  6. 1
    1
      src/cl/cromer/estructuras/ArbolController.java

+ 6
- 0
.idea/jsLibraryMappings.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptLibraryMappings">
4
+    <file url="PROJECT" libraries="{dtjava}" />
5
+  </component>
6
+</project>

+ 1
- 0
Estructuras de Datos.iml View File

@@ -7,5 +7,6 @@
7 7
     </content>
8 8
     <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
9 9
     <orderEntry type="sourceFolder" forTests="false" />
10
+    <orderEntry type="library" name="dtjava" level="application" />
10 11
   </component>
11 12
 </module>

+ 1
- 0
dtjava.js
File diff suppressed because it is too large
View File


+ 42
- 0
edd.html View File

@@ -0,0 +1,42 @@
1
+<html>
2
+	<title>Estructuras de Datos</title>
3
+	<head>
4
+		<SCRIPT src="dtjava.js"></SCRIPT>
5
+		<script>
6
+			function launchApplication(jnlpfile) {
7
+				dtjava.launch(            {
8
+						url : jnlpfile
9
+					},
10
+					{
11
+						javafx : '8.0+'
12
+					},
13
+					{}
14
+				);
15
+				return false;
16
+			}
17
+		</script>
18
+		<script>
19
+			function javafxEmbedEstructuras_de_Datos_id() {
20
+				dtjava.embed(
21
+					{
22
+						id : 'Estructuras_de_Datos_id',
23
+						url : 'Estructuras_de_Datos.jnlp',
24
+						placeholder : 'javafx-app-placeholder',
25
+						width : '1024',
26
+						height : '768'
27
+					},
28
+					{
29
+						javafx : '8.0+'
30
+					},
31
+					{}
32
+				);
33
+			}
34
+			<!-- Embed FX application into web page once page is loaded -->
35
+			dtjava.addOnloadCallback(javafxEmbedEstructuras_de_Datos_id);
36
+		</script>
37
+	</head>
38
+	<body>
39
+		<!-- Applet will be inserted here -->
40
+		<div id='javafx-app-placeholder'></div>
41
+	</body>
42
+</html>

+ 29
- 0
index.html View File

@@ -0,0 +1,29 @@
1
+<html>
2
+	<title>Estructuras de Datos</title>
3
+	<head>
4
+		<SCRIPT src="dtjava.js"></SCRIPT>
5
+		<script>
6
+			function launchApplication(jnlpfile) {
7
+				dtjava.launch(            {
8
+						url : jnlpfile
9
+					},
10
+					{
11
+						javafx : '8.0+'
12
+					},
13
+					{}
14
+				);
15
+				return false;
16
+			}
17
+		</script>
18
+	</head>
19
+	<body>
20
+		<b>The webstart and embedded verions require java 8 to run! It is also necessary to add cromer.cl to your trusted sites in java settings because the java applet is unsigned.</b><br><hr>
21
+		<b>Windows:</b> <a href='EDD-1.0.0.zip'>click to download windows binary</a><br><hr>
22
+		<b>Linux:</b> <a href='EDD-1.0.0.tar.gz'>click to download linux binary</a><br><hr>
23
+		<b>Webstart:</b> <a href='Estructuras_de_Datos.jnlp' onclick="return launchApplication('Estructuras_de_Datos.jnlp');">click to launch this app as webstart</a><br><hr>
24
+		<b>Embedded:</b> <a href='edd.html'>click to launch this app as embedded app</a><br><hr><br>
25
+		<b>Documetation:</b> <a href='doc/index.html'>JavaDoc</a><br><hr>
26
+		<b>Documetation:</b> <a href='doc/index-all.html'>JavaDoc Index</a><br><hr>
27
+		<b>Diagram:</b> <a href='diagrama.png'>UML</a>
28
+	</body>
29
+</html>

+ 1
- 1
src/cl/cromer/estructuras/ArbolController.java View File

@@ -145,8 +145,8 @@ public class ArbolController implements Initializable {
145 145
 		List<List<ArbolNodo>> niveles = arbol.getNiveles();
146 146
 
147 147
 		int altura = arbol.getAltura() - 1;
148
+		// Thank you Claudio Gutiérrez
148 149
 		int ancho = (int) Math.pow(2, altura) + (int) ((Math.pow(2, altura)) - 1);
149
-		System.out.println(ancho);
150 150
 
151 151
 		Text text;
152 152
 		for (int i = 0; i < altura; i++) {

Loading…
Cancel
Save