|
|
|
Re: modifying the look of an activity [message #1220 is a reply to message #1196] |
Tue, 30 September 2008 11:05 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Dali, if you "just" need to do that, then you can go and provide your
own edit parts:
http://wiki.eclipse.org/STP/BPMN_Component/Samples#Provide_y our_own_edit_parts
The sample provides a different background color for text annotations.
You can do the same thing for an activity.
Thanks,
Antoine
Dali wrote:
> Hi till ,
>
> the problem with this issue is that i need to create an annotation
> before i can decorate my bpmn object.
>
> in my case i need just to make some basic decoration (background
> color,..) before displaying my object.
>
> Best Regards ,
>
> Dali
|
|
|
|
Re: modifying the look of an activity [message #1292 is a reply to message #1270] |
Wed, 01 October 2008 10:14 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Why, yes, of course, you just need to do something like:
protected void paintFigure(Graphics graphics) {
super.paintFigure(graphics);
/** CONDITION HERE **/
if (needSpecialLookAndFeel()) {
IMapMode mm = MapModeUtil.getMapMode(this);
int lineWidth = mm.LPtoDP(1);
graphics.setForegroundColor(getForegroundColor());
graphics.setBackgroundColor(getBackgroundColor());
Rectangle toFill = getBounds().getCopy();
toFill.height -= lineWidth * 2;
toFill.width -= lineWidth;
toFill.x += lineWidth;
toFill.y += lineWidth;
graphics.fillGradient(toFill, false);
}
/** END OF CODE THAT CUSTOMIZES THE LOOK AND FEEL **/
}
Once you have the edit part you can do whatever you want with it.
Thanks,
Antoine
Dali wrote:
> Hi Antoine ,
>
> The issue seems good but is it possible to apply decoration for specific
> type of activity not for all the activity .
>
> Best Regards ,
>
> Dali.
>
|
|
|
|
Re: modifying the look of an activity [message #1845 is a reply to message #1312] |
Thu, 02 October 2008 15:26 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Dali, please look in the plugin.xml file of the example.
faroun wrote:
> Hi Antoine ,
>
> can u tell me please when is performed the call to the
> BpmnEditPartProvider (is it on the generateView() call ?) .
> i'm getting no modification on the look and feel of my objects.
>
> Best Regards ,
>
> Dali
>
|
|
|
Powered by
FUDForum. Page generated in 0.05236 seconds