Browse Source

cromer.cl site content

tags/1.0.5
Chris Cromer 3 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 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="PROJECT" libraries="{dtjava}" />
</component>
</project>

+ 1
- 0
Estructuras de Datos.iml View File

@@ -7,5 +7,6 @@
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="dtjava" level="application" />
</component>
</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 @@
<html>
<title>Estructuras de Datos</title>
<head>
<SCRIPT src="dtjava.js"></SCRIPT>
<script>
function launchApplication(jnlpfile) {
dtjava.launch( {
url : jnlpfile
},
{
javafx : '8.0+'
},
{}
);
return false;
}
</script>
<script>
function javafxEmbedEstructuras_de_Datos_id() {
dtjava.embed(
{
id : 'Estructuras_de_Datos_id',
url : 'Estructuras_de_Datos.jnlp',
placeholder : 'javafx-app-placeholder',
width : '1024',
height : '768'
},
{
javafx : '8.0+'
},
{}
);
}
<!-- Embed FX application into web page once page is loaded -->
dtjava.addOnloadCallback(javafxEmbedEstructuras_de_Datos_id);
</script>
</head>
<body>
<!-- Applet will be inserted here -->
<div id='javafx-app-placeholder'></div>
</body>
</html>

+ 29
- 0
index.html View File

@@ -0,0 +1,29 @@
<html>
<title>Estructuras de Datos</title>
<head>
<SCRIPT src="dtjava.js"></SCRIPT>
<script>
function launchApplication(jnlpfile) {
dtjava.launch( {
url : jnlpfile
},
{
javafx : '8.0+'
},
{}
);
return false;
}
</script>
</head>
<body>
<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>
<b>Windows:</b> <a href='EDD-1.0.0.zip'>click to download windows binary</a><br><hr>
<b>Linux:</b> <a href='EDD-1.0.0.tar.gz'>click to download linux binary</a><br><hr>
<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>
<b>Embedded:</b> <a href='edd.html'>click to launch this app as embedded app</a><br><hr><br>
<b>Documetation:</b> <a href='doc/index.html'>JavaDoc</a><br><hr>
<b>Documetation:</b> <a href='doc/index-all.html'>JavaDoc Index</a><br><hr>
<b>Diagram:</b> <a href='diagrama.png'>UML</a>
</body>
</html>

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

@@ -145,8 +145,8 @@ public class ArbolController implements Initializable {
List<List<ArbolNodo>> niveles = arbol.getNiveles();

int altura = arbol.getAltura() - 1;
// Thank you Claudio Gutiérrez
int ancho = (int) Math.pow(2, altura) + (int) ((Math.pow(2, altura)) - 1);
System.out.println(ancho);

Text text;
for (int i = 0; i < altura; i++) {

Loading…
Cancel
Save