Layout (extension point)

From BioUML platform
Jump to: navigation, search
Identifier
ru.biosoft.graph.layout
Plugin
ru.biosoft.graph
Registry
GraphPlugin

Description

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

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.

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.

See also

Personal tools
Namespaces

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