Label position

0 votes
asked Jul 25, 2018 in Question / help by MarcV (340 points)

Hello,

Is it possible to move te label-position? Sometimes they ar located on the line.

commented Jul 25, 2018 by albert (3,520 points)
Please add your plantuml code to the question.

Please specify the plantuml version you are using (java -Djava.awt.headless=true -jar plantuml.jar  -version).

2 Answers

0 votes
answered Jul 25, 2018 by MarcV (340 points)
This is the version

PlantUML version 1.2018.08 (Sun Jun 24 14:31:00 CEST 2018)
(GPL source distribution)
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) 64-Bit Server VM
Java Version: 1.8.0_181-b13
Operating System: Windows 10
Dot version: dot - graphviz version 2.38.0 (20140413.2041)
Installation seems OK. File generation OK

The code:

@startuml
skinparam linetype ortho
left to right direction
skinparam classArrowFontSize 7
skinparam classAttributeFontSize  8
scale 1.4
F1604 "PV" -->  "CI1" F1604C
F1604C "CO1" -->  "X1" F1604CU
F1604CU "CO1" -->  "OP" F1604V
L1603 "PV" -->  "CI1" L1603C
L1603C "OP" -->  "PI1" L1603Y1
L1603Y1 "PV" -->  "CI1" F1604CU
LB1133 "LO2" -->  "SD" L1603C
class F1604{
ANINNIM
01/11/4
}
hide F1604 circle
hide F1604 methods
class F1604C{
REGCLNIM
01/11/10
}
hide F1604C circle
hide F1604C methods
class F1604CU{
REGCLNIM
01/11/38
}
hide F1604CU circle
hide F1604CU methods
class F1604V{
ANOUTNIM
01/11/5
}
hide F1604V circle
hide F1604V methods
class L1603{
ANINNIM
01/11/14
}
hide L1603 circle
hide L1603 methods
class L1603C{
REGCLNIM
01/11/22
}
hide L1603C circle
hide L1603C methods
class L1603Y1{
REGPVNIM
01/11/7
}
hide L1603Y1 circle
hide L1603Y1 methods
class LB1133{
LOGICNIM
01/11/33
}
hide LB1133 circle
hide LB1133 methods
@enduml
commented Jul 25, 2018 by albert (3,520 points)
Please add this to the question, it is part of the question, not an answer (and delete the answer).
commented Jul 25, 2018 by MarcV (340 points)
If I do, I get the message: 'Maximum length is 8000 characters'
commented Jul 26, 2018 by albert (3,520 points)
OK understood. Size problem is probably due to the size of the image. The chosen "solution" question + answer is in this case the best possible.
+1 vote
answered Mar 22, 2022 by belwood

One workaround, add newlines:

L1603Y1 "\nPV" --> "CI1" F1604CU

LB1133 "\nLO2" --> "SD" L1603C

...