Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » [Sirius]Make port label to be vertical
[Sirius]Make port label to be vertical [message #1781216] Sat, 03 February 2018 07:51 Go to next message
lee lucky is currently offline lee luckyFriend
Messages: 26
Registered: October 2017
Junior Member
Hi, guys

I am researching about how to make port label to be vertical. My Sirius version is 4.1.3 and I have not found the functionality of vertical label.

I searched in the forum and someone said using graphics.rotate to make it.
And I have rotated the port label by calling graphics.rotate in #paintFigure(Graphics graphics), but the move handle and the eight resize handles are still at the old positions. The codes are like that:

public void paintFigure(Graphics graphics){


int rotate_x = 10;// for example
int rotate_y = 10;// for example
graphics.translate(rotate_x, rotate_y);
graphics.translate(-rotate_x, -rotate_y);


As the position and size has been changed because of rotation, so where should I change to the new position and size in the label's editpart?
I have tried several ways,like refresh, refreshBounds, refreshVisuals, repaint without success.

Or are there any ways in Sirius to make the port label vertical?

Could you guys give me some suggestions? Any help is greatful.
Thanks in advance.

[Updated on: Wed, 07 February 2018 03:10]

Report message to a moderator

Re: [Sirius]Make port label to be vertical [message #1781261 is a reply to message #1781216] Mon, 05 February 2018 08:43 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 270
Registered: July 2009
Senior Member
For information, the joined image seems corrupted or encrypted.

Unfortunately, I have no suggestion. Investigation would be necessary.
And currently, there is no way to do that in Sirius.



Laurent Redor - Obeo

Need training or professional services for Sirius?
Previous Topic:[ANN] Sirius 5.1.1
Next Topic:Disable default context menu and properties
Goto Forum:

Current Time: Thu Mar 04 17:18:54 GMT 2021

Powered by FUDForum. Page generated in 0.01291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top