[Logo] VUE Users Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Login] Login 
If this is your first visit to the new VUE forums, you can login using the same username and password you currently use on VUE's website. If you need an account, please create one through VUE's website. If you have problems, please contact us via the contact form on http://vue.tufts.edu
shapes in stylesheet  XML
Forum Index » General Discussion
Author Message
Jack Tanner


Joined: 08/08/2008 11:36:13
Messages: 34
Offline

I've defined my own ontology, and a custom stylesheet. I'd like to set shapes to go with the different node types. I see in the Elements.zip example that "oval" is one valid shape. What are others?

P.S. It would be helpful if this forum had a search function.
Daniel Heller


Joined: 08/08/2008 11:36:13
Messages: 24
Offline


here a few to try:

ellipse
rect
triangle
flag
shield
diamond
pentagon
hexagon
octagon
round-rect

hope this helps :)
Jack Tanner


Joined: 08/08/2008 11:36:13
Messages: 34
Offline

Where in the source are these defined? Grep is of no help.
Jack Tanner


Joined: 08/08/2008 11:36:13
Messages: 34
Offline

This doesn't seem to work. The stylesheet-defined background is applied to new node appearance, but not shape. I tried rect, oval, triangle, and flag, like so:

node.foo {
shape: rect;
background: #DDDDDD;
}

Also, two enhancement requests to improve the user experience related to ontologies and styling. First, please make it so that if multiple nodes are selected, the 'Add to Selected Node' command is still available (and operates over all selected nodes). Second, please make it so that the 'Add to Selected Node' command applies the ontology stylesheet.
Daniel Heller


Joined: 08/08/2008 11:36:13
Messages: 24
Offline



Did you drag the node onto the VUE map? (You should see the new shape then)

Thanks for the feature requests as these help determine priorites on new work. Some of your requests are already in our queue including add to selected node for multiple nodes (sorry this didn't make it into VUE yet)

It seems to me add to selected node should apply the current style sheet properties, so this will likely get filed as a bug.

I'll attempt to contact you offline and will plan to update this thread once we have a resolution.

on the source question:

VueResources.properties contains cssName properties for all our node tools -- I've very recently seen this work with several stylesheet ontology combinations, so again lets discuss offline if possible (you should receive an emailf rom me soon)

VueResources.properties can be found in src/tufts/vue

hope this helps,

Dan Heller
Daniel Heller


Joined: 08/08/2008 11:36:13
Messages: 24
Offline


update on add to selected node updates css properties - looks like current behavior is not neccesarily a bug.

I'll add this as a feature request in our system.

I think one issue here is that multiple ontological types can be applied to a single node and so your feature might lead to "overwriting" styles applied initially through the panel...

thanks!

Dan Heller
Jack Tanner


Joined: 08/08/2008 11:36:13
Messages: 34
Offline

I could've sworn I'd tried to drag an ontology node to the map... It does work now.

Regarding applying multiple ontological types to a single node -- if a node has no ontological type, it's clear that new ontological styling can be applied. But if the node already has an ontological type, it can get the new ontological type either in addition to or in place of the existing ontological type. If the new type replaces the existing one, the new styling is clearly appropriate. But if it is added to the existing one, I really don't know what the styling should be. Perhaps in that case the stylesheet can specify how to handle nodes that have this particular combination of ontological types (although I'm not sure how to specify that in CSS). If the stylesheet does not specify that (or even if it does), the Node Info panel could allow the user to set the preferred style based on the node's ontological memberships.

By the way, Node Info could be renamed Properties and placed at the bottom of the node right-click menu. That would be conventional.
Jack Tanner


Joined: 08/08/2008 11:36:13
Messages: 34
Offline

Still, there's one place where style should apply and does not. In the panel that lists loaded ontologies, once an ontology and its stylesheet are loaded, there's a list of ontology elements paired with icons. These icons should communicate the style of the node. At present, their shapes are always round-rect, although their background color changes.
Daniel Heller


Joined: 08/08/2008 11:36:13
Messages: 24
Offline


Thanks very much for all your comments. Very glad you were able to see the style change from the css file.

We have one task in our system to enable the full "preview style" in the window and another to create a generic display (+ images) the second taks having precedence for VUE 2.0 - actually the color change was intended to be disabled in the release, i've updated current code to reflect that, but priorities and changes to the ontology system for new functionality may very well lead to the full functionality you've requested in our next version. I've updated the current task in our system to reflect your comment, as this will help determine priorites and interest, again very helpful!
David Topps


Joined: 08/08/2008 11:36:13
Messages: 1
Offline

Daniel Heller wrote:
here a few to try:

ellipse
rect
triangle
flag
shield
diamond
pentagon
hexagon
octagon
round-rect



Gotta a couple of dumb questions re this... I don't see the pentagon shape in the dropdown, and what does shield look like? And is it possible to create/add other shapes? Some suggestions... a simple cloud icon (as in an idea or network cloud); a barrel shape (like the old TV screen); Cylinder; curved sheet (like the outer face of a cylinder with the back half cut off;
Brian Goodmon


Joined: 03/18/2009 10:38:09
Messages: 154
Offline

The currently available shapes are:
round-rect
rect
ellipse
diamond
hexagon
octagon
flag
triangle (upwards-pointing triangle)
shield (downwards-pointing triangle)
rhombus
chevron

Looks like pentagon was partially implemented but never finished. I put it on my list of things to get to someday. There's also a left-pointing flag that was partially implemented. It's on the list too... but it's a long list.
 
Forum Index » General Discussion
Go to:   
Powered by JForum 2.1.8 © JForum Team