My nodes resized when I display them in a JSF environment

Article ID: 2331
Last updated: 29 May, 2018
Article ID: 2331
Last updated: 29 May, 2018
Revision: 3
Views: 532
Posted: 13 Jul, 2007
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

Why are my nodes resized when I display them in a JSF environment?

Answer

This is because the jvdf:diagrammerView component performs a "fit to contents" operation on the rendered data.

The jvdf:diagrammerView always respects the CSS styling information to render the nodes and links. However, it also performs an additional fit to contents transformation to fit the rendered diagram into its defined space. It still obeys all the CSS rules, including any explicit rules on size. It is an external transformation at the end that forces everything to fit according to the contents.

You can prevent the fit to contents transformation to happen by using the boundingBox attribute on the jvdf:diagramerView tag. Note that prior to 8.1 release, you will not be able to specify a zoom level that is lower than the fit to contents zoom level. This limitation has been resolved in 8.1.

When using JViews 8.0 or earlier, if you have only a few nodes and you do not want them to be resized to a larger zoom factor, consider adding some extra guidance nodes to your data source. For example, if you use Designer, you can place these nodes in the corners of the desired region and fix their location. When the jvdf:diagrammerView renders the view, it will perform the fit to contents around these guidance nodes.

To hide these extra nodes, you can make them size 1.1 or apply them the same color as the background. They will not be visually identifiable but the jvdf:diagrammerView will respect their location during the fit to contents operation.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2331
Last updated: 29 May, 2018
Revision: 3
Views: 532
Posted: 13 Jul, 2007 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category