| Summary: | Issue with text display after zooming the diagram | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | samim <samimriaz> | ||||||
| Component: | Core | Assignee: | Project Inbox <graphiti-inbox> | ||||||
| Status: | CLOSED INVALID | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | michael.wenz | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
samim
Hm, there must be some special circumstances in your case to get that behaviour. I tried to reproduce, but was not able to do so with any of our examples. If this was a general issue I guess we would have seem more bugs like this one. Do you have any more concrete hints how to reproduce? A (small) example would be very helpful. Michael Hi, Please try with a polygon and a slight longer name.Set the text to center align. (In reply to comment #1) > Hm, there must be some special circumstances in your case to get that > behaviour. I tried to reproduce, but was not able to do so with any of our > examples. If this was a general issue I guess we would have seem more bugs like > this one. > > Do you have any more concrete hints how to reproduce? A (small) example would > be very helpful. > > Michael Sorry, but after playing around with a Polygons and Texts that just fit into I'm still puzzled... Could you append a screenshot and maybe a snippet that creates the shape? Michael Created attachment 203159 [details]
diagram with 100% resolution
This is a diagram with 100% resolution.
Created attachment 203160 [details]
Diagram 150% diagram size
This diagram has 150 resolution and you can see the 'S' is not there in the word PROCES in the 150% resolution diagram
Thanks, I can see the effect on the screenshot. It might also be caused by a to small text object in the diagram (scaling during resize might make parts disappear). How is the size of the text field calculated? Hi , Sorry for the late reply.The resize is not done by us.Its provided at the top of the workbench.So its not handled by us.It happens only in 150% zoom and in no other values. (In reply to comment #7) > Hi , > Sorry for the late reply.The resize is not done by us.Its provided at the > top of the workbench.So its not handled by us.It happens only in 150% zoom and > in no other values. This was a slight misunderstanding, I think. I was asking about how the size of the text graphics algorithm is calculated? So, this is about the text field in the diagram holding the test the'S' is missing. This is the code we use in AddXYZfeture class which extends from AbstractAddShapefeture. Shape shape = peCreateService.createShape(containerShape, false); MultiText text = null; // create and set text graphics algorithm for PC Name text = gaService.createDefaultMultiText(getDiagram(), shape, name); text.setForeground(manageColor(PROCESS_COMPONENT_TEXT_FOREGROUND)); text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER); text.setVerticalAlignment(Orientation.ALIGNMENT_TOP); text.getFont().setBold(true); gaService.setLocationAndSize(text, 0, 0, width, height); // create link and wire it link(shape, addedPC); (In reply to comment #9) > gaService.setLocationAndSize(text, 0, 0, width, height); Ok, thanks. And where do width and height come from? How are they calculated? (In reply to comment #10) > (In reply to comment #9) > > gaService.setLocationAndSize(text, 0, 0, width, height); > Ok, thanks. And where do width and height come from? How are they calculated? Since you haven't replied for a rather long time, I close this bugzilla. Simply reopen it in case the topic is still valid. |