Closed laeubi closed 4 years ago
The LabelMarker supports to set an orientation: "org.eclipse.swtchart.extensions.marker.LabelMarker"
public void setLabels(Map<Integer, String> labels, int orientation) {
this.labels = (labels != null) ? labels : new HashMap<Integer, String>(); if(orientation == SWT.VERTICAL) { disposeTransform(); transform = new Transform(Display.getDefault()); transform.rotate(-90); } else { transform = null; } }
This could be extended to support other rotations than -90°.
Am 11.12.19 um 06:02 schrieb Christoph Läubrich:
Currently all labels in a chromatogram are displayed with -90° rotation. Now we have made label configurable it would be good if users could also choose the rotation angle.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/eclipse/chemclipse/issues/162?email_source=notifications&email_token=AAFHUT6KBABU6C2GH367N43QYBX75A5CNFSM4JZJHH42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H7U5ORQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHUT5ZWZCF23QHUNGTT43QYBX75ANCNFSM4JZJHH4Q.
--
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@openchrom.net » http://www.openchrom.net
There is now a scale where the user can adjust the rotation in the range of 0...90 degree
Currently all labels in a chromatogram are displayed with -90° rotation. Now we have made label configurable it would be good if users could also choose the rotation angle.