Difference between revisions of "Layout (extension point)"

From BioUML platform
Jump to: navigation, search
(Created page with "{{Extension point|layout|ru.biosoft.graph|registry=ru.biosoft.graph.GraphPlugin}} === Description === This extension point allows you to register your own {{Type link|diagram}...")
 

Latest revision as of 15:37, 14 June 2013

Identifier
ru.biosoft.graph.layout
Plugin
ru.biosoft.graph
Registry
GraphPlugin

[edit] Description

This extension point allows you to register your own Type-diagram-icon.png diagram layouting algorithm.

[edit] Configuration Markup

<!ELEMENT graphLayouter (property*)>
<!ATTLIST graphLayouter
     title        CDATA #REQUIRED
     class        CDATA #REQUIRED
     description  CDATA #REQUIRED
>
title
User-friendly title of layouting algorithm.
class
Layouter class (must implement the Layouter interface).
description
Layouting algorithm description.

Property sub-elements can be used to alter layouter default options defined in code.

<!ELEMENT property>
<!ATTLIST property
     name         CDATA #REQUIRED
     value        CDATA #REQUIRED
>
name
name of layouter options bean property.
value
default value of layouter options bean property.

[edit] Example

<graphLayouter title="Hierarchic layout" class="ru.biosoft.graph.HierarchicLayouter" description="Hierarchic layout">
   <property name="verticalOrientation" value="false"/>
   <property name="layerDeltaX" value="40"/>
   <property name="layerDeltaY" value="40"/>
</graphLayouter>

This extension defines the layouter named "Hierarchic layout" implemented in the class HierarchicLayouter with some default options changed.

[edit] See also

Personal tools
Namespaces

Variants
Actions
BioUML platform
Community
Modelling
Analysis & Workflows
Collaborative research
Development
Virtual biology
Wiki
Toolbox