cancel
Showing results for 
Search instead for 
Did you mean: 

ErrorEnd event label position overlaps icons

payner
Champ in-the-making
Champ in-the-making
Hi
In Activiti version 5.21.0, I am using ProcessDiagramGenerator to create an image from a Bpmn file and am finding that label for ErrorEnd events are being rendered over the event image itself.

For example:
[IMG=346x255]http://www.mediafire.com/convkey/9e2c/btjmp5y3r9p7le44g.jpg[/IMG]

Is this a known issue?

This is being generated from JDK1.6 using:
[java]
    final double scaleFactor = 1.0;
    ProcessDiagramGenerator diagramGenerator = new DefaultProcessDiagramGenerator(scaleFactor);
    InputStream generatedImageStream = diagramGenerator.generateJpgDiagram(bpmnModel, scaleFactor);
[/java]   

Does the way textY variable to position the label need to be changed in DefaultProcessDiagramCanvas.drawLabel()?
I have attached a simple unit test showing this issue.
2 REPLIES 2

payner
Champ in-the-making
Champ in-the-making
Perhaps DefaultProcessDiagramGenerator should be changed to use the position of the bottom of bpmn element on the canvas rather than the top, before adding a multi-line text label?
e.g.
public void drawLabel(String text, GraphicInfo graphicInfo, boolean centered){


int textY = (int) (graphicInfo.getY() + graphicInfo.getHeight());

}
instead of

public void drawLabel(String text, GraphicInfo graphicInfo, boolean centered){


int textY = (int) graphicInfo.getY();

}

gdharley
Elite Collaborator
Elite Collaborator

Making the change suggested by Payner results in:

This seems to be a reasonable result.

Are you able to make this change to your environment?

Thanks,
Greg


 

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.