Compartment background [message #170049] |
Sun, 27 January 2008 15:42 |
Eclipse User |
|
|
|
Originally posted by: gxquarel.txin.it
How can I add a background image on a compartment?
Thanks
Giovanni
|
|
|
Re: Compartment background [message #170250 is a reply to message #170049] |
Tue, 29 January 2008 02:34 |
Eclipse User |
|
|
|
Originally posted by: zhanglei07.sei.pku.edu.cn
Try to look up your compartment editpart
public class xxxCompartment_for_OperandEditPart extends
ShapeCompartmentEditPart {
....
public IFigure createFigure() {
ResizableCompartmentFigure result = (ResizableCompartmentFigure)
super.createFigure();
result.setTitleVisibility(false);
// try to add your background here
return (IFigure) result;
}
}
zhanglei
peking university
zhanglei07@sei.pku.edu.cn
"Giovanni" <gxquarel@txin.it> wrote in message
news:fni8p4$109$1@build.eclipse.org...
> How can I add a background image on a compartment?
> Thanks
>
> Giovanni
>
|
|
|
Re: Compartment background [message #170256 is a reply to message #170049] |
Tue, 29 January 2008 02:52 |
Eclipse User |
|
|
|
Originally posted by: zhanglei07.sei.pku.edu.cn
Try to look up your compartment editpart
public class xxxCompartment_for_OperandEditPart extends
ShapeCompartmentEditPart {
....
public IFigure createFigure() {
ResizableCompartmentFigure result = (ResizableCompartmentFigure)
super.createFigure();
result.setTitleVisibility(false);
// try to add your background here
return (IFigure) result;
}
}
zhanglei
peking university
zhanglei07@sei.pku.edu.cn
"Giovanni" <gxquarel@txin.it> wrote in message
news:fni8p4$109$1@build.eclipse.org...
> How can I add a background image on a compartment?
> Thanks
>
> Giovanni
>
|
|
|
Powered by
FUDForum. Page generated in 2.03229 seconds