OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Defining new arrow styles (for database diagrams)

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Draw
View previous topic :: View next topic  
Author Message
GazzaJ
Newbie
Newbie


Joined: 13 Jul 2004
Posts: 1

PostPosted: Tue Jul 13, 2004 1:27 am    Post subject: Defining new arrow styles (for database diagrams) Reply with quote

Is there a way of defining new arrow styles. I am drawing a database model so need the crow's feet arrow ending.

I see you can load arrowheads from an soe file. Has anyone created any custom arrow styles for OpenOffice Draw?
Back to top
View user's profile Send private message
ftack
Moderator
Moderator


Joined: 27 Jan 2003
Posts: 2748
Location: Belgium

PostPosted: Tue Jul 13, 2004 2:39 am    Post subject: Reply with quote

Help is obscure in this, but first draw an arrowhead the way you want it and make sure it is one single object. Orient the basis of the arrow horizontally to the bottom. Then select Format - Line and click "Add" on the Arrow styles tab.
Back to top
View user's profile Send private message
machp
Newbie
Newbie


Joined: 11 Aug 2004
Posts: 1

PostPosted: Wed Aug 11, 2004 6:26 am    Post subject: Reply with quote

The internal format of arrow styles is rather obscure. It seems that objects are always filled. Even a self-defined line arrow '>' becomes a solid triangle. The arrow end points are closed automatically. Closing the polygon by drawing a third segment over the second and a fourth over the first results in nothing at all. The segments are XOR-ed away by each other.

Draw is a splendid tool for making UML diagrams. However it lacks the UML arrow styles.
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 4021
Location: Lawrence, Kansas, USA

PostPosted: Wed Aug 11, 2004 6:49 am    Post subject: Reply with quote

I have had moderate success using an approach like this for "hollow" arrowhead shapes.

Draw fills your polygon. Your arrowhead must be a closed polygon, so that it can be filled.

Suppose, to represent a certian OOo Interface from some OOo service, you need the UML circle "arrowhead" symbol?

Draw will fill your circle.

But what if the shape wern't a circle? What if it were shaped, say, like the letter C, but with the gap so small that you don't really notice it? This is a closed polygon whose exterior traverses the outside curve of the C, and then backtraces the inside curve of the C to form a closed polygon.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
gizmo
OOo Advocate
OOo Advocate


Joined: 13 Oct 2004
Posts: 249
Location: Everywhere

PostPosted: Sat Apr 23, 2005 12:30 pm    Post subject: Reply with quote

Hey folks,

DannyB wrote:
But what if the shape wern't a circle? What if it were shaped, say, like the letter C, but with the gap so small that you don't really notice it? This is a closed polygon whose exterior traverses the outside curve of the C, and then backtraces the inside curve of the C to form a closed polygon.


yes, that seems to work fine, even if you set the gap to zero width. I've created the UML white diamond that way:

<draw:marker draw:name="unfilled diamond" svg:viewBox="0 0 2334 4000" svg:d="m0 2000 1167-2000 1167 2000-1167 2000v-500l833-1500-833-1500-833 1500 833 1500v500z"/>

But I found no way to build it from a couple of lines. I couldn't join them to a closed polygon. Only the tool for closed polygons did it.

Bye,

-el-
Back to top
View user's profile Send private message Visit poster's website
mscscotch
Newbie
Newbie


Joined: 15 Apr 2005
Posts: 3

PostPosted: Mon Jul 25, 2005 11:50 am    Post subject: Easy way to get the symbol you want. Reply with quote

Just wanted to give more tips on how to get the symbol you want.

If you drop in a special text character,
Convert to polygon,
then draw a small rectangle across it where you want a hard to see gap.
Now select both object and right click - shapes ->subtract.
You know have an object thats a polygon but it won't fill.

Then follow the directions above to add the style.
Remember when you go to use the style if it isn't thick enough you can change the size per line end.

I successfully did this with an infiniti symbol.
But had to scale it to .20" from the default .12"

Alex
Back to top
View user's profile Send private message
Cheakamus
Newbie
Newbie


Joined: 24 Dec 2003
Posts: 1
Location: North Vancouver, BC

PostPosted: Fri Jun 22, 2007 2:05 pm    Post subject: Re: Defining new arrow styles (for database diagrams) Reply with quote

GazzaJ wrote:
Is there a way of defining new arrow styles. I am drawing a database model so need the crow's feet arrow ending.

I see you can load arrowheads from an soe file. Has anyone created any custom arrow styles for OpenOffice Draw?


I created an odg file with polygons for the four common crow's feet arrows. You can get it at http://www.thinktek.ca/articles/article2.php
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Draw All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group