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:

@Override
public void paintFigure(Graphics graphics){

.......

int rotate_x = 10;// for example
int rotate_y = 10;// for example
graphics.translate(rotate_x, rotate_y);
graphics.rotate(90);
paintText();
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: 252
Registered: July 2009
Senior Member
Hi,
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.

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:[ANN] Sirius 5.1.1
Next Topic:Disable default context menu and properties
Goto Forum:
  


Current Time: Sat Mar 28 19:19:38 GMT 2020

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

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

Back to the top