使用PlantUML控制箭头和对象

时间:2019-11-07 00:47:39

标签: plantuml

我有以下PlantUML图...

@startuml

left to right direction

skinparam linetype ortho

skinparam object {
    backgroundColor White
    defaultFontName Helvetica
}

object MetadataFile {
  +version: xs:decimal
  +xmlns: xs:string
}

object fileInfo
object clipID
object Pipeline
object archivedPipeline

object clipName
object sequence
object file
object id

object "description" as fileInfoDescription
object "dateTime" as fileInfoDateTime
object "uuid" as fileInfoUuid

object "description" as PipelineDescription
object "dateTime" as PipelineDateTime
object "uuid" as PipelineUuid

object Version
object MajorVersion
object MinorVersion
object PatchVersion

MetadataFile --> fileInfo
MetadataFile --> clipID
MetadataFile --> Pipeline
MetadataFile --> archivedPipeline

clipID --> clipName
clipID --> sequence
clipID --> file
clipID --> id

fileInfo --> fileInfoDescription
fileInfo --> fileInfoDateTime
fileInfo --> fileInfoUuid

Pipeline --> Version
Pipeline --> PipelineDescription
Pipeline --> PipelineDateTime
Pipeline --> PipelineUuid

Version --> MajorVersion
Version --> MinorVersion
Version --> PatchVersion

@enduml

它产生以下内容:

enter image description here

我正在尝试找出方法

  1. 使所有行离开每个对象的左侧
  2. 输入每个对象的右侧
  3. 在对象左侧的每个垂直列中对齐所有对象。

这可能吗?默认情况下,此图看起来有些混乱。它应该干净得多。 谢谢

0 个答案:

没有答案