Skip to main content



      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 02:51 Go to next message
Eclipse UserFriend
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: Tue, 06 February 2018 22:10] by Moderator

Re: [Sirius]Make port label to be vertical [message #1781261 is a reply to message #1781216] Mon, 05 February 2018 03:43 Go to previous message
Eclipse UserFriend
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
Previous Topic:[ANN] Sirius 5.1.1
Next Topic:Disable default context menu and properties
Goto Forum:
  


Current Time: Tue Jul 08 03:49:27 EDT 2025

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

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

Back to the top