Inwards/Outwards arrow to/from a class from/to nowhere.

+1 vote
asked Aug 8, 2017 by Prashant (280 points)
Hi,

 

Is there a way we can create an inwards arrow to a class in the class diagram, which is coming from nowhere.

And simmilary outward arrow(s).

For example as :

       |-------------|

 --->|  Class A  |----->

       |________|----->

1 Answer

+1 vote
answered Jan 26 by hukameniz (5,250 points)
selected Jan 31 by Prashant
 
Best answer

Using this hack:

@startuml
skinparam shadowing false

skinparam rectangle {
        BackgroundColor<<PLACEHOLDER>> transparent
        BorderThickness<<PLACEHOLDER>> .1
        BorderColor<<PLACEHOLDER>> transparent
              FontColor<<PLACEHOLDER>> transparent
               FontSize<<PLACEHOLDER>> 0
    StereotypeFontColor<<PLACEHOLDER>> transparent
     StereotypeFontSize<<PLACEHOLDER>> 0
Shadowing<<PLACEHOLDER>> false
}

rectangle a <<PLACEHOLDER>> {
}

class b

a -> b
@enduml

you may be able to do what you want, you may need to change some of the parameters though because they seem to not work by now.

...