Re: [svg-developers] accessing children nodes inherited from defs

2005-02-04 Thread =?ISO-8859-1?Q?J=E9r=F4me_Tricand_de_la_Goutte?=

Hi Aashish

Once you've describe an object in defs section, here Gr, it is 
considered as one single element.
So, when you use it by use element, you can't access to any child of 
this object.

On the other hand, in your example, if you change some attribute of the 
rect of Gr, it will impact any reference to gr, ie u1 AND u2, 
because you've changed the symbol itself.

You cannot apply modifications only to U1, and not to U2.


But:
if you have something like
defs
rect id=myrect x=10 y=10 width=50 height=60/
/defs

use xlink:href=#myrect id=U1
use xlink:href=#myrect id=U2

, you can define differents color for the two use. To do that , change 
the use attributes directly : 
doculent.getElementById('U1').setAttribute('fill','blue'), and not the 
definition of the referenced object.
That way, you can have different representation of a single referenced 
element. But you cannot change its définition.

Hope it helps

Jérôme Tricand de la Goutte

Société Logatique
50 rue Marcel Dassault
92100 Boulogne-Billancourt

01 46 21 59 59



Aashish Singhvi wrote:

SVG gurus,

If I have a SVG like:
svg. ...
defs
   g id=Gr
  rect 
  text 
   /g
/defs

use id=U1 xlink:href=#Gr ... /
use id=U2 xlink:href=#Gr ... /
...

For the object defined by ElementId = U1, is there a way to access 
the inherited children from Gr. Meaning, is access to U1's 
rectangle child or U1's text child allowed.
svgdoc.getElementById(U1).childNodes doesn't give any elements.

Is there another way to access those children? 
If not, and I have to access the children elements for each rendered 
element, (non-def), would defining a g element with actual 'rect' 
and 'text' elements be the only way to achieve it?
So, for above, I will be doing

..
/defs
g id=U1rect .../text ...BLAH/text/g
g id=U2rect .../text ...BLAH/text/g
...

TIA,
Aashish








-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links



 



  



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Drag and Drop for groups

2005-02-04 Thread =?ISO-8859-1?Q?J=E9r=F4me_Tricand_de_la_Goutte?=

hello Burkhard.

I don't have too much time now, i'm sorry
The main issue for this problem is handling the mouse.
You must detect onmousedown event, memorize it and the object on which you've 
clicked, then react to onmousemove by moving the object, until onmouseup is 
detected.

The onmousemove and onmouseup can be fired on the SVG document itself, but 
onmousedown must be fired on the group only.

I'll try to make code when I'va time

Jérôme Tricand de la Goutte

Société Logatique
50 rue Marcel Dassault
92100 Boulogne-Billancourt

01 46 21 59 59



Burkhard Stollenwerk wrote:

Thanks Jéróme,

can you give me  a example about this?

Burkhard
- Original Message -
From: Jérôme Tricand de la Goutte [EMAIL PROTECTED]
To: svg-developers@yahoogroups.com
Sent: Thursday, February 03, 2005 10:31 AM
Subject: Re: [svg-developers] Drag and Drop for groups


  

Hi Burkhard

Just put your mouse events declaration on the group and not on the rect or


text.
  

Then, use evt.currentTarget to get the group and apply translation to the


group.
  

Hope it helps

Jérôme Tricand de la Goutte

Société Logatique
50 rue Marcel Dassault
92100 Boulogne-Billancourt

01 46 21 59 59



Burkhard Stollenwerk wrote:



Hello,

how could I move a group of elements like

g
rect.../
text...test/text
/g

and an other problem is the slowly accorat moveing, if I was out of
  

element.
  

Any solution , please told me

friendly greeting

Burkhard Stollenwerk



-
To unsubscribe send a message to:
  

[EMAIL PROTECTED]
  

-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my
  

membership
  


Yahoo! Groups Links









  

-
To unsubscribe send a message to:


[EMAIL PROTECTED]
  

-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my


membership
  


Yahoo! Groups Links












-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links



 



  



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] svg viewer for .NET

2005-02-04 Thread friedhelmeichin


We have to build a ms windows application, which should view a svg 
graphic and dynamically change some svg elements as well as process 
events at runtime.

Which is the favorite svg viewer for builing now such a 
comercial .Net windows application? 

Is SVG the right technologie for this or should I use an alternative 
technologie like XAML, vg.net, ...?

Regards
Friedhelm






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] servlet and getURL()

2005-02-04 Thread rapture_soon2002


I need a eg 

Hi guys,
I'm trying to implement a very simple getURL (SVG) to pull sensor 
data from a servlet and display it every millisec or so. Below is a 
sketchy idea of what I have in mind. 

How I can I implement a simple getURL()? Will it be something like

svg ...
script ...![CDATA[


  function acquire() {
   getURL('/servlet/sensorservlet',fn)
  }

  function fn(obj) { 
   setTimeout('acquire()',1)
  }

]]/script
/svg


Thanks for your help.
---


private int data;//data holds sensor value

public class Sensor extends HttpServlet
{

  public void init(ServletConfig config) throws ServletException

  {
super.init(config);

MyMonitor Monitor = new MyMonitor();  //data acquisition class 
instantiated

data= Monitor.start();  //method polls sensor for data

  }  //end of init


  protected void doGet(HttpServletRequest req, HttpServletResponse 
res)
  
  {

res.setContentType(text/html);
res.setHeader(pragma, no-cache);
ServletOutputStream out = res.getOutputStream();


out.print(HTMLHEADTITLESensor  
Data/TITLE/head);  

out.print(Sensor DataBR);

out.print(data);

-
-
- 
out.print(/HTML);

out.close()


  } //end of doGet


}  // end of Sensor Class





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] servlet and getURL()

2005-02-04 Thread =?ISO-8859-1?Q?=22Andr=E9_M=2E_Winter_-_Carto=2Enet=22?=

http://www.carto.net/papers/svg/samples/get_parse.shtml


-- 
___
andre m. winter,
  cartography for internet and multimedia applications
  a6091 goetzens, tyrol, austria
  tel.: ++43.5234.32732
  email: [EMAIL PROTECTED]

http://www.vectoreal.com/  SVG consulting and development
http://www.carto.net/  online cartography focusing on SVG
http://www.carto.at/ print and online touristic map solutions 






rapture_soon2002 wrote:

I need a eg 

Hi guys,
I'm trying to implement a very simple getURL (SVG) to pull sensor 
data from a servlet and display it every millisec or so. Below is a 
sketchy idea of what I have in mind. 

How I can I implement a simple getURL()? Will it be something like

svg ...
script ...![CDATA[


  function acquire() {
   getURL('/servlet/sensorservlet',fn)
  }

  function fn(obj) { 
   setTimeout('acquire()',1)
  }

]]/script
/svg


Thanks for your help.
---


private int data;//data holds sensor value

public class Sensor extends HttpServlet
{

  public void init(ServletConfig config) throws ServletException

  {
super.init(config);

MyMonitor Monitor = new MyMonitor();  //data acquisition class 
instantiated

data= Monitor.start();  //method polls sensor for data

  }  //end of init


  protected void doGet(HttpServletRequest req, HttpServletResponse 
res)
  
  {

res.setContentType(text/html);
res.setHeader(pragma, no-cache);
ServletOutputStream out = res.getOutputStream();


out.print(HTMLHEADTITLESensor  
Data/TITLE/head);  

out.print(Sensor DataBR);

out.print(data);

-
-
- 
out.print(/HTML);

out.close()


  } //end of doGet


}  // end of Sensor Class


  





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: servlet and getURL()

2005-02-04 Thread Andreas Neumann


Hi,

if you want to load and display data every millisec, than SVG is probably not 
the right tool. 
I don't know how fast it can update and load data, but I guess it is only once 
or a handful 
times per second. But that depends on your clients processor and network speed.

One millisec update time is anyway much, much more than a human can perceive. 
As far 
as I know a smooth movement starts with a framerate of 25 frames per second, 
wich is an 
update every 40 milliseconds.

But I don't believe that current SVG viewer can do getURL() and update every 40 
milliseconds.

As to getURL examples: just google for getURL and SVG and you will find plenty 
examples.

Andreas


--- In svg-developers@yahoogroups.com, rapture_soon2002 [EMAIL PROTECTED] 
wrote:
 
 I need a eg 
 
 Hi guys,
 I'm trying to implement a very simple getURL (SVG) to pull sensor 
 data from a servlet and display it every millisec or so. Below is a 
 sketchy idea of what I have in mind. 
 
 How I can I implement a simple getURL()? Will it be something like
 
 svg ...
 script ...![CDATA[
 
 
   function acquire() {
getURL('/servlet/sensorservlet',fn)
   }
 
   function fn(obj) { 
setTimeout('acquire()',1)
   }
 
 ]]/script
 /svg
 
 
 Thanks for your help.
 ---
 
 
 private int data;//data holds sensor value
 
 public class Sensor extends HttpServlet
 {
 
   public void init(ServletConfig config) throws ServletException
 
   {
 super.init(config);
 
 MyMonitor Monitor = new MyMonitor();  //data acquisition class 
 instantiated
 
 data= Monitor.start();  //method polls sensor for data
 
   }  //end of init
 
 
   protected void doGet(HttpServletRequest req, HttpServletResponse 
 res)
   
   {
 
 res.setContentType(text/html);
 res.setHeader(pragma, no-cache);
 ServletOutputStream out = res.getOutputStream();
 
 
 out.print(HTMLHEADTITLESensor  
 Data/TITLE/head);  
 
 out.print(Sensor DataBR);
 
 out.print(data);
 
 -
 -
 - 
 out.print(/HTML);
 
 out.close()
 
 
   } //end of doGet
 
 
 }  // end of Sensor Class





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: Travel map No 2

2005-02-04 Thread jololivier


Hello,

Searching for aSVG worldmap, I find yours. The new version is more 
precise and complete than the first one, but some data have 
disapear : Macau and Hong-kong are not present in the new version, 
while they are in the first one.
Is there a possibility to add them?

Thanks a lot,

Jérôme

--- In svg-developers@yahoogroups.com, Jan-Klaas Kollhof 
[EMAIL PROTECTED] wrote:
 
 Hello,
 
  words, please replace the ZZ with Z in the paths...
 
 done 
 
  I saw a typo in your help: Selcect or deselect.
 
 fixed 
 
  The dumb one see no effect on the slashed O button... Is it 
supposed
 to deselect all?
 
 fixed 
 
 
  It would be nice to be able to select and copy the final string 
(but 
  there may be a problem of string length).
 
 hmm, could add that.
 
 
 
 
 Jan





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Fwd: Help! HK police using brain voice read-write machine murder HK people.

2005-02-04 Thread chan wilson


Fwd: Help! HK police using brain voice read-write machine murder HK people.

The Internet is the power, attacks the Hong Kong terrorist to needs the world 
people power.

Please forward the email, the group, the Message Board, icq and the Hong Kong 
government, thanks my dear friend. 

Dear friends:

Help! The murder, the Hong Kong police using brain voice read-write machine 
murder Hong Kong people, 100% true story, please email the world people and 
forward 1 email the Hong Kong government, 1*10*100*1000., thank my dear 
Internet friend.

Hong Kong police terrorist organization: 

The devil machine made in England, the uses the Hong Kong police, it now 
installs the net of communication of the police, 24 hours murders Hong Kong 
people, this murder is defeat, to disclose the fact by the Hong Kong police 
terrorist organization. 

By the 2001-1-1~2005-2-1 over 49 months, to hear of point by the police 
terrorist: 
1. The head installs the small machine in Hong kong people - installs is 
very easy, does not have the sound to be troublesome, the victim did not have 
the feel. 
2. input - output the sound -  in the mountain, the sewer, the elevator, 
input - output the sound is very clear, does not use the dry battery.
3. it murder the Hong Kong people - the terrorist is the Hong Kong police 
exceeds 50, murder many the Hong Kong people to exceeds for 4 years.

Hong Kong government, Chief Executive : http://www.info.gov.hk/ce/eindex.htm

Please forward E-mail to Hong Kong government : [EMAIL PROTECTED]

Hong Kong people twa 2005-2-1



English search engine: twa 

Website: http://ena2000.why.to

HongKong  English  French  German  Japanese  Portuguese  Spanish







-
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  

[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Fwd: One US Dollar Education Plan.

2005-02-04 Thread chan wilson


fwd: One US Dollar Education Plan.

Joins the world Internet education movement: odep.why.to 

One US Dollar Education Plan

The Internet current is enormous and powerful, along it prosperous, against it 
perishes, the government and all professions moves to the Internet,is the 
inevitable matter, the education is the promotion country strength, to last 
development, enhances a lives of the people, educated the Internet is the 
preferential agenda, the Internet has development for 10 years, was the baby 
period, looked all the world, now still did not have a popularization education 
the website, the world education Internet was the urgent matter.

This is 10 hundred million people of country Internet education plan, is easy 
on the integer to calculate, this plan is a profit for the principle, has no 
profit is defeat, but commerce system receive the cheap expenses, the 
management expense is very high, plan by the government to the country gathers 
the education year expenses, each people of 1 year 1 US dollar Internet 
education expense (various countries is gathers to currency integer), total 10 
hundred million US dollars, the administrative expense is possibly high, the 
plan development need 3 years, government was levies the education expenses to 
the provinces and cities government according to the population, wants the 
central authority to convince the province and the city, ten years tree grow, 
one hundred years foster talent, enhance the people to educate the level, have 
already makes many millenniums, all were the In-situ walk, this Internet 
current is the rare opportunity, the load is heavy while the way is long, wants
 the various countries government to plan the overall situation, please forward 
the world and send your government, and organizes the website to promote 1 year 
1 US dollar lifelong Internet learning program.

1. ideas beginning

This about starts in August, 2000 to form in the brains the Chinese countryside 
computer plan, because is obstructed in Hong Kong, on January 1, 2001 to be 
forced stop studies, until in August, 2004 then rewrites, at that time first 
established each village to have 1,000 people, each person gathered 1 US dollar 
education expenses, another two computers, each 1,000 US dollars, each person 
gathered 2 US dollars, each village altogether pays 3,000 US dollars, the 
population is down to 1,000 people, according to the proportion increase money, 
each village 500 people, education expenses 1 year 1 US dollar, two computers 
each person collected expenses 4 US dollars, planned subsidy 1,500~2,000 US 
dollars, covers the country expense probably to invest more than 7 hundred 
million US dollars, receives every year the education expenses approximately 
are more than 2 hundred million US dollars, because the network is slow, 
Installs the server in various provinces, the university provides the
 cultivation which the education curriculum and the related countryside needed, 
the poultry curriculum, long term provided the education by the low cost, 
enhanced country productive forces.

2. websites operations

The Internet education falls 99% expense, the traditional teaching 1 teacher 
teaches 45 people, the Internet may teach 4,500 ~ infinite people, the 
curriculum keeps the website, not has vanished, enhanced the people to educate 
the level, was already the world agree, should better be free of charge reads 
master, doctor, the Internet education nearly may achieve this goal, first step 
was 1 people 1 US dollar 1 year fee to the whole country, total 10 hundred 
million US dollars, then according to the proportional distribution resources, 
was not exceed 3 groups of servers in the country establishment, the website 
operation and the education administrative expense decide is 1.5% (country 
population few administrations expense is higher, should not surpass 5%), 
educates website the operation 90% profit is easy accessibility goal, we 
educate the people, takes from the people, give the people, the profit reduces 
to 10%, no profit the plan is useless, uses for gross income 30% altogether 3
 hundred million US dollars to look after the poorest place the computer plan, 
and the subsidy each village establishment public computer expense, this 
subsidy is only one, the subsidy does not surpass the total amount 50%, covers 
7 hundred million people (70% is farmer), every 1,000 people of two computers, 
two printers, two scanners, two webcam, the total is 140 ten thousand, each 
1,000 US dollar to count, the total amount is 14 hundred million US dollars, 
subsidy 50% total 7 hundred million US dollars, this plan may complete in 3 
years, total 9 hundred million US dollars subsidies, the village is short to 
200 people, so long as they pool capital 1 group of computers moneys, the 
country then subsidy another 1 group of moneys, two computers were bad one 
computer also had another to be allowed to use, at first this 3 years the 
income many, the 

Re: [svg-developers] Drag and Drop for groups

2005-02-04 Thread Philippe Lhoste

Jérôme Tricand de la Goutte wrote:
 hello Burkhard.
 
 I don't have too much time now, i'm sorry
 The main issue for this problem is handling the mouse.
 You must detect onmousedown event, memorize it and the object on which you've 
 clicked, then react to onmousemove by moving the object, until onmouseup is 
 detected.
 
 The onmousemove and onmouseup can be fired on the SVG document itself, but 
 onmousedown must be fired on the group only.
 
 I'll try to make code when I'va time

Well, usually I recommand to take a look at the good example given by 
Doug Schepers at http://svg-whiz.com/samples.html (DragAndDrop example).
It handles correctly transformations (zoom and pan) and is quite robust.
The sample apply to elements only, but it should be easy, given the 
hints provided by Jérôme, to apply it to groups.

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  For servers mangling my From and Reply-To fields,
--  please send private answers to PhiLho(a)GMX.net
--  --  --  --  --  --  --  --  --  --  --  --  --  --


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Re: Travel map No 2

2005-02-04 Thread Philippe Lhoste

jololivier wrote:
 Searching for aSVG worldmap, I find yours. The new version is more 
 precise and complete than the first one, but some data have 
 disapear : Macau and Hong-kong are not present in the new version, 
 while they are in the first one.
 Is there a possibility to add them?
 
 Thanks a lot,
 
 Jérôme

Old map had this data for Macau:
path id=mo d=M 4688 2208 4688 2208 4689 2208 4689 2208 4688 2208 /

It has been replaced by:
path id=mo d=M4688,2208h1Z/

Which is equivalent, but only traces a small horizontal line, which 
isn't visible on the map, alas.

Hong-Kong (HK) is on the Iso list of countries, but doesn't seems to be 
on the original map, hence it is not on the reduced one.

I don't know if it is a political choice (not a good one as French 
Dom-Tom islands are displayed), an overlook or if it is too small to be 
displayed meaningfully (perhaps if it is smaller than Macau, thus 
reduced to a single point, it has been automatically eliminated).

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  For servers mangling my From and Reply-To fields,
--  please send private answers to PhiLho(a)GMX.net
--  --  --  --  --  --  --  --  --  --  --  --  --  --


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] SVG Element

2005-02-04 Thread Peter Thompson

It is a DOCTYPE declaration.  Paraphrasing from SVG Unleashed, a document type 
definition defines the permitted structure of an SVG document, and, you may not 
need the DOCTYPE declaration if, for example, your browser recognizes an svg 
file by the file extension.  It also states that it is wiser to include the 
DOCTYPE declaration.
 
I know that you don't need it for svg files that are displayed in ASVG3 in IE.  
If you are using a validating editor (e.g., XMLSpy) you will definitely want to 
use the DOCTYPE.

I'd keep the DOCTYPE.
 


-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [svg-developers] Drag and Drop for groups

2005-02-04 Thread Doug Schepers

Thanks for the kind words, Philippe.

As you said, it's a pretty trivial problem, unless I'm misunderstanding
something. I made a slight alteration to my sample, to show how to move
groups:

http://svg-whiz.com/svg/DragAndDropGroup.svg

Regards-
Doug

doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.
 

Philippe Lhoste wrote:
| 
| Jérôme Tricand de la Goutte wrote:
|  hello Burkhard.
|  
|  I don't have too much time now, i'm sorry The main issue for this 
|  problem is handling the mouse.
|  You must detect onmousedown event, memorize it and the 
| object on which you've clicked, then react to onmousemove by 
| moving the object, until onmouseup is detected.
|  
|  The onmousemove and onmouseup can be fired on the SVG 
| document itself, but onmousedown must be fired on the group only.
|  
|  I'll try to make code when I'va time
| 
| Well, usually I recommand to take a look at the good example 
| given by Doug Schepers at http://svg-whiz.com/samples.html 
| (DragAndDrop example).
| It handles correctly transformations (zoom and pan) and is 
| quite robust.
| The sample apply to elements only, but it should be easy, 
| given the hints provided by Jérôme, to apply it to groups.
| 
| --
| Philippe Lhoste
| --  (near) Paris -- France
| --  http://Phi.Lho.free.fr
| --  For servers mangling my From and Reply-To fields,
| --  please send private answers to PhiLho(a)GMX.net
| --  --  --  --  --  --  --  --  --  --  --  --  --  --

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005
 



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: servlet and getURL()

2005-02-04 Thread Peter Thompson


This was discussed here not too long ago, so it should be easy to 
find the thread.  The consensus was that you couldn't expect to be 
getting data via getURL() more than a few times a second.

It doesn't mean it can't be done, just not the way that you 
suggested.  If you want to use getURL(), you could accumulate the 
sensor data on the server and send it down in chunks.






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: servlet and getURL()

2005-02-04 Thread rapture_soon2002


Ok guys - I'll be less ambitious; I'll choose an update rate of 500ms.
I'm show getURL can handle this

--- In svg-developers@yahoogroups.com, rapture_soon2002 
[EMAIL PROTECTED] wrote:
 
 I need a eg 
 
 Hi guys,
 I'm trying to implement a very simple getURL (SVG) to pull sensor 
 data from a servlet and display it every millisec or so. Below is a 
 sketchy idea of what I have in mind. 
 
 How I can I implement a simple getURL()? Will it be something like
 
 svg ...
 script ...![CDATA[
 
 
   function acquire() {
getURL('/servlet/sensorservlet',fn)
   }
 
   function fn(obj) { 
setTimeout('acquire()',1)
   }
 
 ]]/script
 /svg
 
 
 Thanks for your help.
 ---
 
 
 private int data;//data holds sensor value
 
 public class Sensor extends HttpServlet
 {
 
   public void init(ServletConfig config) throws ServletException
 
   {
 super.init(config);
 
 MyMonitor Monitor = new MyMonitor();  //data acquisition class 
 instantiated
 
 data= Monitor.start();  //method polls sensor for data
 
   }  //end of init
 
 
   protected void doGet(HttpServletRequest req, HttpServletResponse 
 res)
   
   {
 
 res.setContentType(text/html);
 res.setHeader(pragma, no-cache);
 ServletOutputStream out = res.getOutputStream();
 
 
 out.print(HTMLHEADTITLESensor  
 Data/TITLE/head);  
 
 out.print(Sensor DataBR);
 
 out.print(data);
 
 -
 -
 - 
 out.print(/HTML);
 
 out.close()
 
 
   } //end of doGet
 
 
 }  // end of Sensor Class





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [svg-developers] Re: servlet and getURL()

2005-02-04 Thread Rick Bullotta

That should be fine.  Buffer your data on the server side and chunk it
down, and you should be OK.

-Original Message-
From: rapture_soon2002 [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 04, 2005 9:18 AM
To: svg-developers@yahoogroups.com
Subject: [svg-developers] Re: servlet and getURL()



Ok guys - I'll be less ambitious; I'll choose an update rate of 500ms.
I'm show getURL can handle this

--- In svg-developers@yahoogroups.com, rapture_soon2002 
[EMAIL PROTECTED] wrote:
 
 I need a eg 
 
 Hi guys,
 I'm trying to implement a very simple getURL (SVG) to pull sensor 
 data from a servlet and display it every millisec or so. Below is a 
 sketchy idea of what I have in mind. 
 
 How I can I implement a simple getURL()? Will it be something like
 
 svg ...
 script ...![CDATA[
 
 
   function acquire() {
getURL('/servlet/sensorservlet',fn)
   }
 
   function fn(obj) { 
setTimeout('acquire()',1)
   }
 
 ]]/script
 /svg
 
 
 Thanks for your help.
 ---
 
 
 private int data;//data holds sensor value
 
 public class Sensor extends HttpServlet
 {
 
   public void init(ServletConfig config) throws ServletException
 
   {
 super.init(config);
 
 MyMonitor Monitor = new MyMonitor();  //data acquisition class 
 instantiated
 
 data= Monitor.start();  //method polls sensor for data
 
   }  //end of init
 
 
   protected void doGet(HttpServletRequest req, HttpServletResponse 
 res)
   
   {
 
 res.setContentType(text/html);
 res.setHeader(pragma, no-cache);
 ServletOutputStream out = res.getOutputStream();
 
 
 out.print(HTMLHEADTITLESensor  
 Data/TITLE/head);  
 
 out.print(Sensor DataBR);
 
 out.print(data);
 
 -
 -
 - 
 out.print(/HTML);
 
 out.close()
 
 
   } //end of doGet
 
 
 }  // end of Sensor Class





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my
membership
 
Yahoo! Groups Links



 






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] svg viewer for .NET

2005-02-04 Thread Jeff Rafter

  Which is the favorite svg viewer for builing now such a comercial 
.Net windows application?

We are using SharpVectorGraphics. I have currently been enhancing the 
interactivity portions of the library with the help of a couple of 
others. The development is being supported by a company in Colorado, US 
and it looks like a couple more steps will be made this round. With that 
said there is still quite a lot unimplemented-- and unoptimized. If you 
decide to try it, use the CVS version.

All the best,
Jeff Rafter


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] accessing children nodes inherited from defs

2005-02-04 Thread Jeff Rafter

  For the object defined by ElementId = U1, is there a way to access 
the inherited children from Gr. Meaning, is access to U1's rectangle 
child or U1's text child allowed.
  svgdoc.getElementById(U1).childNodes doesn't give any elements.


Right, you have to get the use element's InstanceRoot or 
AnimatedInstanceRoot. This returns an SVGElementInstance. From that you 
can get the CorrespondingElement (which in 99% of cases will be a g 
that is wrapping the reffered-to construction). Now, depending on the 
interpretation you can just go from there with ChildNodes and all the 
rest-- but some may interpret the spec to mean that you must always 
navigate via the SVGElementInstance and get the ChildNodes of that which 
returns an SVGElementInstanceList-- so in that case you would have to 
get the CorrespondingElement each time.

I am not sure who supports this though... my guess is ASV6 does and ASV3 
does not. SharpVectorGraphics supports it in CVS.


All the best,
Jeff Rafter


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Re: Performance problem

2005-02-04 Thread Ryan Christianson

I'm curious if you can just avoid calling removeChild. 

Here are some alternatives:
- set the display attribute to none this will make it not visible
- call appendChild on another element this will remove from current
location and put in the new location. You could make a document
fragment, call append child on the fragment, then let the js gc
collect it:

var group =  parseXML( 'g  xmlns=http://www.w3.org/2000/svg;
display=none /', svgDocument ).firstChild;
group.appendChild( childToDelete );
group = null; 

after that, the javascript garbage collector should collect it when it
feels like it.

If this solves your problem let me know, I'm curious!

Ryan





On Wed, 02 Feb 2005 09:54:40 -, slavaraitsin [EMAIL PROTECTED] wrote:
 
 
  Try using the internal the ASV javascript engine as it is based on
 mozilla's
  js...It will be interesting to hear if there is any improvement.
 
  http://wiki.svg.org/index.php/AsvJavaScriptEngine
 
 I did it testing on IE ASV engine works (removeChild) even sligtly
 slower than internal IE javascript engine.
 
 Slava
 
 
 -
 To unsubscribe send a message to: [EMAIL PROTECTED]
 -or-
 visit http://groups.yahoo.com/group/svg-developers and click edit my 
 membership
 
 Yahoo! Groups Links
 
 
 
 



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] svg viewer for .NET

2005-02-04 Thread jdowdell

At 1:08 AM 2/4/5, friedhelmeichin wrote:
 Which is the favorite svg viewer for builing now such a
 comercial .Net windows application?

?? .NET usually runs on the server (depending on whether you include the
CLR in your definition), and SVG is usually rendered in the web browser,
true...?

XAML is only available in preliminary versions of the markup format, and
then you'd need some type of clientside renderer, which are also in
pre-beta. The eventual download size for WinXP may end up being, I dunno, a
hundred times larger than the Adobe SVG Viewer, so likely adoption rates
seem currently difficult to predict.

You can generate SVG-style XML with many types of server software. Once
you've got a valid SVG file, then it should be viewable in whatever
compliant viewer your audience has installed.



We have to build a ms windows application, which should view a svg
graphic and dynamically change some svg elements as well as process
events at runtime.

Have you examined whether any of the available SVG clients which your
audience might install are capable of performing the tasks you desire...?

jd







John Dowdell, Macromedia Developer Support, San Francisco
(Best to reply on-list, to avoid my mighty spam filters!)
Technotes: http://www.macromedia.com/support/search/
Technical daily diary: http://www.macromedia.com/go/blog_jd




-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: svg viewer for .NET

2005-02-04 Thread scasquiov



 Hi,

 ?? .NET usually runs on the server (depending on whether you 
 include the CLR in your definition), and SVG is usually rendered
 in the web browser, true...?

(...)

 You can generate SVG-style XML with many types of server 
 software. Once you've got a valid SVG file, then it should be 
 viewable in whatever compliant viewer your audience has 
 installed.


 well, when building a standalone application the concept of server
doesn't realy apply :)
 What SharpVectorGraphics does is to render a SVG image, the same job
adobe's svg plugin does (for example) when a browser is used to view a
SVG. No browser is involved in this case, i think.


 /FC







-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Change Mouse Pointer in SVG

2005-02-04 Thread renatonow


Hi:

Is there a way to dynamically change the mouse pointer from the Arrow 
to a Hand or a Cross..?

Thanks

Renato F. Salas





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] SVG#, examples and interactivity

2005-02-04 Thread scasquiov



 Where might I find examples and/or documentation on
SharpVectorGraphics? I will be using it to show an SVG in my C# app
but I will also need some interaction. For example, when clicking a
certain element it should become highlighted by changing its color.
I've read about this being possible (not sure where though) but
couldn't yet figure out how.

 I'm not sure this is the best place to ask something about SVG#,
please also advise if there's a better place to discuss it.


 Cheers,


 /FC






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: Change Mouse Pointer in SVG

2005-02-04 Thread Aashish Singhvi


See:
http://www.w3.org/TR/SVG/interact.html#CursorProperty

cursor attribute is not supported on ASV 3.x but is supportd in ASV6.
Sorry, don't know about other browsers.

Someone on this mailing had suggested a basic hack which would work 
in current implementations.
Add a wrapper a /a tag around the element(s) that you want to 
change the cursor on. It would become a hand.

There might be other ways to achieve this. (e.g. a hand-like path 
element that becomes active with mouseover and then moves with the 
mouse using mousemove ) Don't have an  example.

HTH,
Aashish

--- In svg-developers@yahoogroups.com, renatonow [EMAIL PROTECTED] wrote:
 
 Hi:
 
 Is there a way to dynamically change the mouse pointer from the 
Arrow 
 to a Hand or a Cross..?
 
 Thanks
 
 Renato F. Salas





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] SVG#, examples and interactivity

2005-02-04 Thread Jeff Rafter

  Where might I find examples and/or documentation on
 SharpVectorGraphics? I will be using it to show an SVG in my C# app
 but I will also need some interaction. For example, when clicking a
 certain element it should become highlighted by changing its color.
 I've read about this being possible (not sure where though) but
 couldn't yet figure out how.

// After loading...
ISvgDocument doc = svgPictureBox.Window.Document;
   doc.RootElement.AddEventListener(click, new 
EventListener(ClickHandler), false);
   doc.RootElement.AddEventListener(mousedown, new 
EventListener(MouseDownHandler), false);
   doc.RootElement.AddEventListener(mouseup, new 
EventListener(MouseUpHandler), false);
   doc.RootElement.AddEventListener(mousemove, new 
EventListener(MouseMoveHandler), false);
   doc.RootElement.AddEventListener(mouseover, new 
EventListener(MouseOverHandler), false);
   doc.RootElement.AddEventListener(mouseout, new 
EventListener(MouseOutHandler), false);

etc

 public void MouseOverHandler(IEvent e)
 {
   SvgElement aGraphic = null;
   if (e.Target is SvgElement)
 aGraphic = ((SvgElement)e.Target);
   else if (e.Target is SvgElementInstance)
 aGraphic = 
(SvgElement)((SvgElementInstance)e.Target).CorrespondingUseElement;

   aGraphic.SetAttribute(stroke, cyan);
   svgPictureBox1.Render();
 }

And so on... keep in mind, this only works from the CVS version, 
re-rendering is not optimized, and if you are planning on using GetCTM, 
GetTransformToElement, GetScreenCTM or the like, wait. I will be 
finished in a couple more days I think...

Cheers,
Jeff Rafter


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Mozilla getStyle GetStyleData JavaScript etc

2005-02-04 Thread couloir007


The Code below apparently is an Adobe specific way of setting fill
color.  I believe GetStyleData would be the Mozilla equivalent.  Not
sure though since I can't get it to work.  Does anyone know how to do
this in Mozilla?  I've had some limited success altering CSS
attributes, but would like to avoind it if possible.  Thank you.

svgobj = document.getElementById(id);
svgstyle = svgobj.getStyle();
svgstyle.setProperty('fill', 'yellow');





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/