dynamic drawing in web page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • barbaros

    #1

    dynamic drawing in web page

    Hello everybody,

    I need to put some dynamic drawings on my web page. More precisely, I
    need to draw a number of geometric figures (circles, rectangles) which
    evolve into a graphics windows according to some law (a little bit like
    the solar system). I need also to have several fields aside the window,
    where the visitor can change values for several significant parameters
    (like the mass of each body).

    Could you please suggest a solution (preferably not involving hundreds
    of lines of code) ? The computations should be performed on the client
    machine.

    Thank you. Cristian Barbarosie http://cmaf.fc.ul.pt/~barbaros

  • Rhino

    #2
    Re: dynamic drawing in web page


    "barbaros" <barbaros@ptmat .fc.ul.pt> wrote in message
    news:1148245752 .728480.238540@ u72g2000cwu.goo glegroups.com.. .[color=blue]
    > Hello everybody,
    >
    > I need to put some dynamic drawings on my web page. More precisely, I
    > need to draw a number of geometric figures (circles, rectangles) which
    > evolve into a graphics windows according to some law (a little bit like
    > the solar system). I need also to have several fields aside the window,
    > where the visitor can change values for several significant parameters
    > (like the mass of each body).
    >
    > Could you please suggest a solution (preferably not involving hundreds
    > of lines of code) ? The computations should be performed on the client
    > machine.
    >[/color]

    Basically, it sounds like you're talking about writing an applet. An applet
    is a Java program that sits on a web page. You can write an applet so that
    it draws circles, arcs, etc. and you can give the user the ability to
    interact with an applet.

    If you look at the sample applets that Sun has written for Java -
    http://java.sun.com/applets/jdk/1.4/index.html -
    you'll see that a few applets are doing at least some of what you want to
    do. Each example includes source code so that you can get a rough idea of
    how much code is necessary to do what you want.

    In your case, you might want a single applet with several distinct canvases
    for drawing or a separate applet for each canvas; either way could probably
    work.

    --
    Rhino


    Comment

    • Paul Boddie

      #3
      Re: dynamic drawing in web page

      barbaros wrote:[color=blue]
      >
      > I need to put some dynamic drawings on my web page. More precisely, I
      > need to draw a number of geometric figures (circles, rectangles) which
      > evolve into a graphics windows according to some law (a little bit like
      > the solar system). I need also to have several fields aside the window,
      > where the visitor can change values for several significant parameters
      > (like the mass of each body).
      >
      > Could you please suggest a solution (preferably not involving hundreds
      > of lines of code) ? The computations should be performed on the client
      > machine.[/color]

      In the context of recent Flash-related discussions and the usage of
      open Web standards, I searched for 'animation SVG "solar system"' and
      discovered this example:



      Sadly, it only works in Opera amongst the browsers I have. Konqueror
      displays the initial frame but doesn't animate the scene, although
      later versions of that browser might support animation. I have an old
      version of Firefox which doesn't support SVG at all.

      Paul

      Comment

      • Christian Stapfer

        #4
        Re: dynamic drawing in web page

        Paul Boddie <paul@boddie.or g.uk> wrote in message
        news:1148253577 .595049.222370@ y43g2000cwc.goo glegroups.com.. .[color=blue]
        > barbaros wrote:[color=green]
        >>
        >> I need to put some dynamic drawings on my web page. More precisely, I
        >> need to draw a number of geometric figures (circles, rectangles) which
        >> evolve into a graphics windows according to some law (a little bit like
        >> the solar system). I need also to have several fields aside the window,
        >> where the visitor can change values for several significant parameters
        >> (like the mass of each body).
        >>
        >> Could you please suggest a solution (preferably not involving hundreds
        >> of lines of code) ? The computations should be performed on the client
        >> machine.[/color]
        >
        > In the context of recent Flash-related discussions and the usage of
        > open Web standards, I searched for 'animation SVG "solar system"' and
        > discovered this example:
        >
        > http://www.svgelves.com/svg/L_chrisa_02.svg
        >
        > Sadly, it only works in Opera amongst the browsers I have.[/color]

        It also works under IE6, using Adobe's SVG Viewer 3.0

        Regards,
        Christian


        Comment

        • Roedy Green

          #5
          Re: dynamic drawing in web page

          On 21 May 2006 14:09:12 -0700, "barbaros" <barbaros@ptmat .fc.ul.pt>
          wrote, quoted or indirectly quoted someone who said :
          [color=blue]
          >I need to put some dynamic drawings on my web page. More precisely, I
          >need to draw a number of geometric figures (circles, rectangles) which
          >evolve into a graphics windows according to some law (a little bit like
          >the solar system). I need also to have several fields aside the window,
          >where the visitor can change values for several significant parameters
          >(like the mass of each body).[/color]

          have a look at the code for the http://mindprod.com/applets/bio.html

          biorhthms Applet. It will show you the general framework. It may be a
          bit to complicated though. Also look at

          --
          Canadian Mind Products, Roedy Green.
          http://mindprod.com Java custom programming, consulting and coaching.

          Comment

          • jmdeschamps@gmail.com

            #6
            Re: dynamic drawing in web page

            barbaros wrote:[color=blue]
            > Hello everybody,
            >
            > I need to put some dynamic drawings on my web page. More precisely, I
            > need to draw a number of geometric figures (circles, rectangles) which
            > evolve into a graphics windows according to some law (a little bit like
            > the solar system). I need also to have several fields aside the window,
            > where the visitor can change values for several significant parameters
            > (like the mass of each body).
            >
            > Could you please suggest a solution (preferably not involving hundreds
            > of lines of code) ? The computations should be performed on the client
            > machine.
            >
            > Thank you. Cristian Barbarosie http://cmaf.fc.ul.pt/~barbaros[/color]

            with this you can.
            Masuki dunia hiburan digital premium bersama RRQ88. Hadir dengan teknologi modern, akses instan, desain elegan, dan pengalaman online yang nyaman kapan saja.

            It's javascript and it's not the fastest thing on earth, but it works
            and its client-side...

            JM

            Comment

            Working...