Layoutprobleme? - Styleswitcher!
![]() |
| | Themen-Optionen |
| | Nach oben #1 |
| Neuer Benutzer Registriert seit: 07.04.2007
Beiträge: 7
| Hallo zusammen, will ich diesen SVG code in java umwandeln kann jemand mir helfen ( nur bei den hauptmethoden). Und wenn moeglich nur der Anfang. Danke [code]<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns <script xlink:href="../Common/js/alert.js"/> <script xlink:href="../Common/js/sh_localisation.js"/> <script xlink:href="../Common/js/filesystem.js"/> <script xlink:href="../Common/js/menus.js"/> <script xlink:href="../Common/js/tools.js"/> <script xlink:href="../Common/js/password.js"/> <script xlink:href="../Common/js/md5.js"/> <script xlink:href="../Common/js/opera.js"/> <script type="text/ecmascript"><![CDATA[ var zone_decalex = 0, zone_decaley = 0 var zoom = 1, pan_x = 0, pan_y = 0; var margin_left = 5,margin_right = 5,margin_top = 5,margin_bottom = 5 var x_viewbox = -5, y_viewbox = -5, w_viewbox = 215, h_viewbox = 215 var numexample = 0, format_form = "A5", orientation_form="P", nb_pages = 1 var curseur = false, debut = true var icones_num = new Array(0,1,2,3,4,18,9,-10,5,6,10,-10,15,17,-1,16,-1,11,12,13) var name_page = "" var training_form = false, svg_loaded = false, svg_saved = false var template_click = false, click_pan = false, nb_pages = 1, numpage = 1 var action ="select", node_actif = "", click_path = false, selections = "", selections_colors = "", nb_paths = 0, nb_controles = 0 var paths_id = new Array() var save_options = new Array(true,false) function init(evt) { svgdoc = evt.target.ownerDocument if (typeof getSVGViewerVersion != 'undefined') { var version = window.getSVGViewerVersion() if (version.indexOf("6.0") >= 0) ASV = "6" else ASV = "3" } else ASV = "6" getDataFile("../User/language.txt",define_language2) } function coordo_asv3(x_mouse , y_mouse) { var large = window.innerWidth var haut = window.innerHeight var ratio = Math.max(1000 / large, 600 / haut) var decale_x = (large - 1000 / ratio) / 2 var decale_y = 0 var svg_point = svgdoc.rootElement.createSVGPoint() svg_point.x = (x_mouse - decale_x) * ratio - 575 svg_point.y = (y_mouse - decale_y) * ratio return svg_point } function define_language2(data) { if (!data.success) { add_confirm("../Common/svg/confirm2.svg","outil","Error : 011\nCannot find default language\nContinue ?",-1) language = "english" } else { if (data.content.indexOf(";") > 0 ) language = data.content.substring(0,data.content.indexOf(";") ) else language = "english" getDataFile("../Localisation/" + language + "/pw_popup.txt",callback_popup2) } } function callback_popup2(data) { if (!data.success) add_alert("../Common/svg/alert2.svg","outil","Erreur : 057\nCannot load active popup\nClose window") else { popup2 = data.content.split("\n") popup = new Array(popup2[3], popup2[3], popup2[4]) test_URL() } } function test_URL() { var adresse = svgdoc.URL if (adresse.indexOf("file:") == 0) add_alert("../Common/svg/alert2.svg","outil",popup2[29] + "\n" + popup2[30] + "\n" + popup2[31]) else { if (adresse.indexOf("user=") > 0) { user = adresse.substring(adresse.indexOf("=") + 1,adresse.length) getDataFile("../User/users.txt",test_user) } else { user = "" entre_password_tool() } } } function entre_password_tool() { add_tool("../Common/svg/password2.svg","outil") } function verify_password(code1 , code2 , entre) { if (!entre) top.close() else { pword = hex_md5(code2) user = code1 getDataFile("../User/users.txt",test_user2) } } function test_user2(data) { if (!data.success) add_alert("../Common/svg/alert2.svg","outil",popup2[5] + " : 043\n" + popup2[6] + "\n" + popup2[7]) else { var list_users = data.content.split("\n") var user_num = -1 for (var i = 0 ; i < list_users.length ; i ++) if (list_users[i].indexOf(";") >= 0) if (list_users[i].substring(0 , list_users[i].indexOf(";")) == user) user_num = i if (user_num == -1) add_confirm("../Common/svg/confirm2.svg","outil",popup2[8] + "\n" + popup2[9] + user + "\n" + popup2[10],-2) else { droits = list_users[user_num].split(";") if (droits[1] != pword) add_confirm("../Common/svg/confirm2.svg","outil",popup2[11] + "\n" + popup2[12] + user + "\n" + popup2[13],-3) else open_session() } } } function open_session() { var date = new Date() var minutes = parseInt(date.getTime() / 60000) postURL("../Common/jsp/saveFile.jsp?filename=" + user + " |
| | |
| | Nach oben #2 |
| Benjamin Klaile Registriert seit: 02.12.2004 Ort: Remagen
Beiträge: 3.812
| Kann es sein, dass da ein Teil abgeschnitten wurde? Wenn nicht, bitte den bbCode schließen. Via Google bin ich hierauf gestoßen: SVG Salamander : https://svgsalamander.dev.java.net/ Vielleicht hilft dir das? |
| | |
| | Nach oben #3 |
| Neuer Benutzer Registriert seit: 07.04.2007
Beiträge: 7
| Danke fuer die Antwort. Ja den code ist abgeschinitten, weil es zu lang war. hier ist der rest. Code: .. Geändert von Ben (25.05.2007 um 14:43 Uhr). Grund: Doppelten Code entfernt |
| | |
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Developers-guide.net Projekt sucht willige Java Programmierer | beny_mcde | Projekte unserer Mitglieder | 11 | 10.08.2006 13:03 |
| [JAVA] Wie man aus Java mit einem PHP-Script kommuniziert | sparrow | Tutorials | 0 | 25.03.2006 22:24 |
| [BUCH] Java ist auch eine Insel | kampet | Literatur | 5 | 22.02.2005 14:40 |
| Zwist um Java als Open Source | kampet | Nachrichten | 0 | 05.07.2004 03:37 |
Alle Zeitangaben in WEZ +2. Es ist jetzt 19:57 Uhr.
Nach oben






