I found the answer many pages later in the book. They gives 2 ways to implement the Composite Pattern witch this UML refers to.
Add the methods add, remove, getChild in all the leaves classes (Line, Rectangle and Text), and make them do nothing or throw exception if they are used (for exemple, if you want to add child to Text, you are forbidden).
Remove the abstract methods add, remove, getChild from the Graphic class, and keep the concrete methods in the Picture class (composite).
I personally think the second one is the way to go. It's way more simpler to do and it don't make confusion.
Thanks for the replies