It is possible to create Java implementation describing what model element or presentation element should a Legend Item adorn in a diagram.
See AdornComponentsOfInterestInDiagramValidator.java example implementation in the <program installation directory>\openapi\examples\legendItem directory. |
Also see: Legends