Line to/from specific class member

+1 vote
asked Mar 8, 2018 in Closed question / help by Ximon Eighteen

Hi,

Given the following diagram, how can I make the line go from member b to member g, rather than just from some point on Foo to some point on Bah?

@startuml
left to right direction

class Foo {
  a
  b
  c
  d
}

class Bah {
  e
  f
  g
  h
}

Foo --> Bah
@enduml

1 Answer

+1 vote
answered Mar 8, 2018 by plantuml (295,000 points)

You can have

@startuml
left to right direction

class Foo {
  a
  b
  c
  d
}

class Bah {
  e
  f
  g
  h
}

Foo::a --> Bah::f
@enduml

http://www.plantuml.com/plantuml/uml/DSqx3W8n38JXtgUO2-m5Kg0L1VSmUMmYXRMKc0fnToP8MtpLRslswJhy_UhISt6uORIZEb8RENgpKoHsdHCFCtm4K7fIf2JVAz-r_dEcGWVLbVaNWcBRRkicX29xFXC7Vm00

commented Mar 8, 2018 by Ximon Eighteen
Thank you very much for the quick and accurate response!
...