Yes, if you want to draw a line, you create a line object and then add it to the document. The Draw and Impress chapters of my book are available as a free download, and it contains numerous examples of shapes and lines and such.

J�rgen Schmidt wrote:

Hi Senthil,

no your understanding is wrong, when using the OOo API you work more or less directly on documents of the different application areas. If you want to draw lines, circles and other stuff directly in a canvas you have to use Java APIs directly.

Juergen

Senthilkumar Mehalingam wrote:

Hi Juergen,

Thanks for the reply. I have now subscribed to the mailing list [EMAIL PROTECTED]

I took a look at the SDK examples(http://api.openoffice.org/docs/DevelopersGuide/Drawing/Drawing.htm and in that 9.3.2 Shapes) but they I presume are for drawing/adding shapes on a document, not for drawing lines, circles and stuff directly on a canvas(and I am trying to find how to draw lines, ovals, rectangles, arrows and text boxes using a Java API for the drawing(or presentation) tool so I think I will be doing on a canvas if I am using the drawing tool).

Can you please let me know if my understanding is correct or not?

Thanks a lot.

Sincerely
Senthil

P.S. My apologies if this is a very elementary question for this group.


From: J�rgen Schmidt <[EMAIL PROTECTED]>
To: Senthilkumar Mehalingam <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: newbie drawing question
Date: Mon, 09 May 2005 09:41:58 +0200

Hi,

do you have subscribed to the mailing list? If no, please subscibe to the mailing list and ask your question on the mailing list. This has the advantage that you will get faster an answer when for example people you have contacted directly are not available.
To your question:
Please take a look to the SDK examples (<sdk>/examples/DevelopersGuide/Drawing), they show the use of the API to draw shapes and other graphic objects.


I hope this helps

Juergen

Senthilkumar Mehalingam wrote:

Hi All,

I am a beginner to OpenOffice.org.

I am trying to make it possible by the user to insert structures
like MS Office's  organisation chart  in the Drawing and
Presentation documents so as to make drawing such structures in OO a
command rather than the user manually trying to do it

I am trying to implement functionality by which a user can choose
the number and
shapes(say 3 rectangles) and their hierarchy. One on top as parent
having two children.  Just as MS Office has an organisation chart I
want to know how the wizard(I presume there is a wizard in Office to
create an Organisation Chart.  I want to see how the steps work in
creaing the chart to get ideas for how to build a graphic of a graph
or tree).

Can anybody please suggest me the correct direction and the correct
method to do this.

Thanks a lot



Sincerely
Senthil

P.S. My apologies for posting again but I sent this on May 4 and did not see it in the mailing list till today May 7.




--
Juergen Schmidt, Technical Lead Software Engineering
                 OpenOffice.org/StarOffice SDK
_______________________________________________________
Sun Microsystems GmbH         [EMAIL PROTECTED]
Sachsenfeld 4, 20097 Hamburg  http://sun.com/staroffice
Germany +49/40 23646-984      http://api.openoffice.org







-- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to