ErrorEnd event label position overlaps icons

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2016 07:42 AM
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.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2016 09:01 AM
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.
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();
…
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2016 01:44 PM
