Commit df6bc6cf authored by Tomas Fulopp's avatar Tomas Fulopp
Browse files

*** empty log message ***

parent 646b2daa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
; /* $Id$ */
; hypergraph.hyperbolic.text.fontName : This property allows to set the font that is used in the applet. It can be any font that is available in Java, classical font names like Arial can be used. Be careful to take common fonts so that you can be sure they are known to any browser / java installation.
; hypergraph.hyperbolic.text.sizex and hypergraph.hyperbolic.text.scalex : These properties are used to adjust the text size. There are 4 different sizes, the first (x=1) being the biggest, the last (x=4) the smallest size. Depending on the position of the text, a scale of the text is computed; this scale is 1 in the center and reduces to 0 at the border. If the scale is greater than the property hypergraph.hyperbolic.text.scale1, the text has a font size of hypergraph.hyperbolic.text.size1. If the scale is between scale1 and scale2, size2 is used etc.
; hypergraph.hyperbolic.text.color, hypergraph.hyperbolic.line.color and hypergraph.hyperbolic.background.color : Set the default text, line and background color. Valid values are color names or hexadecimal triples like #ff0000 (rgb color model). The first two digits represent red, digits 3 and 4 green and the last two blue, so #ff0000 is red, #ffffff white etc. The valid color names are listed here not found.. The text and line colors can be overwritten by the attributes in an GraphXML file.
; layout settings
hypergraph.visualnet.layout.class=hypergraph.visualnet.TreeLayout
hypergraph.visualnet.layout.expandingEnabled=false
@@ -22,4 +25,3 @@ hypergraph.hyperbolic.text.background=#ffffff
;hypergraph.hyperbolic.background.color=#ffffff
; settings for HExplorerApplet
hypergraph.examples.hexplorer.GraphPanel.target=_self
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ hypergraph.visualnet.TreeLayout.defaultSize=0.3
; settings for the text.
;hypergraph.hyperbolic.text.fontName=Arial bold
hypergraph.hyperbolic.text.fontName=Verdana
hypergraph.hyperbolic.text.size1=9
hypergraph.hyperbolic.text.size1=8
hypergraph.hyperbolic.text.scale1=0.7
hypergraph.hyperbolic.text.size2=3
hypergraph.hyperbolic.text.scale2=0.3
@@ -19,7 +19,7 @@ hypergraph.hyperbolic.text.size4=0
hypergraph.hyperbolic.line.color=#dddddd
hypergraph.hyperbolic.text.color=#004488
hypergraph.hyperbolic.text.background=#ffffff
;hypergraph.hyperbolic.background.color=#ffffff
hypergraph.hyperbolic.background.color=#eef4f9
; settings for HExplorerApplet
hypergraph.examples.hexplorer.GraphPanel.target=_self
+14 −2
Original line number Diff line number Diff line
@@ -193,6 +193,15 @@ function render_hypergraph( $hgparentoverride = '', $hgwidthoverride = '', $hghe
        #$modulepath = url(drupal_get_path('module', 'hypergraph'), NULL, NULL, TRUE);
								$result .= '<!-- Hypergraph Beginning --><applet code="hypergraph.applications.hexplorer.HExplorerApplet" align="baseline" archive="';

        # Get proper module path.
          $hgmodulepath = url( drupal_get_path('module', 'hypergraph'), NULL, NULL, TRUE );
          # url() ads i18n codes to the URL ... we need to remove them here...
            if ( $langcode <> '' ) {
                 $hgmodulepath = str_replace( '/' . $langcode . '/', '/', $hgmodulepath );
               }
          # Non-clean URLs need removing ?q=
            $hgmodulepath = str_replace( "?q=", "",  $hgmodulepath );
/*
        # Get possible RELATIVE Drupal path we may be on.. 
          $levels = count( explode( '/', request_uri2() ) ) - 1;
          $relprefix = '';
@@ -202,11 +211,13 @@ function render_hypergraph( $hgparentoverride = '', $hgwidthoverride = '', $hghe
                    $relprefix .= '/';
                  }
             }
*/
        # ????????Crucial: Java applet paths MUST be relative.
        $result .= $relprefix . base_path() . drupal_get_path('module', 'hypergraph') . '/hyperapplet.jar" width="' . $hypergraph_width . '" height="' . $hypergraph_height . '"><param name="file" value="';
        #$result .= $hgmodulepath . '/hyperapplet.jar" width="' . $hypergraph_width . '" height="' . $hypergraph_height . '"><param name="file" value="';
        #$result .= 'http://www.vacilando.org/_misc/hypergraph/hyperapplet.jar" width="' . $hypergraph_width . '" height="' . $hypergraph_height . '"><param name="file" value="';
        ##$result .= $relprefix . base_path() . drupal_get_path('module', 'hypergraph') . '/graphs/hg.php?par=' . $hypergraph_parent . '&ctr=' . $hypergraph_center . '&src=' . $hgsource . '&dummy=.xml';
        $result .= $relprefix . base_path() . drupal_get_path('module', 'hypergraph') . '/graphs/hg.php?par=' . $hypergraph_parent . '&ctr=' . $hypergraph_center . '&src=' . $hgsource . '&dummy=.xml';
        #$result .= $hgmodulepath . '/graphs/hg.php?par=' . $hypergraph_parent . '&ctr=' . $hypergraph_center . '&src=' . $hgsource . '&dummy=.xml';
        #$result .= 'http://www.vacilando.org/_misc/hypergraph/graphs/hg.php?dummy=.xml';
        #$result .= $relprefix . base_path() . drupal_get_path('module', 'hypergraph') . '/graphs/hg.php?loc=1&dummy=.xml'; # Test from a local file.

@@ -222,6 +233,7 @@ function render_hypergraph( $hgparentoverride = '', $hgwidthoverride = '', $hghe
								$result .= '">';
								$result .= '<param name="properties" value="';
        $result .= $relprefix . base_path() . drupal_get_path('module', 'hypergraph') . '/graphs/';
        #$result .= $hgmodulepath . '/graphs/';
        if ( $hypergraph_width <= 200 ) { # Use smaller text if the applet is small.
             $result .= 'hg_small.prop';
           } else {
@@ -231,7 +243,7 @@ function render_hypergraph( $hgparentoverride = '', $hgwidthoverride = '', $hghe
        $result .= '">';
								$result .= '<param name="center" value="' . $hypergraph_center . '">';
        $result .= '<PARAM="cache_option" VALUE="No">'; # I don't know if you've solved your problem now, but in the HTML tags, if you add <PARAM="cache_option" VALUE="No"> as a parameter to your applet (inside the <embed>, <object> or <applet> tags), the applet will not be cached. More info here: http://java.sun.com/products/plugin/1.3/docs/appletcaching.html
								$result .= '</applet>';
								$result .= '</applet>';# . $_SERVER['PHP_SELF'];
/*
        $result .= '<p>';
        # Get possible Drupal path we may be on.. from request_uri but without the last part.