|
|
Re: MidpointLocator problem [message #177663 is a reply to message #177568] |
Thu, 14 April 2005 19:28 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
A PolygonDecoration is a RotatableDecoration and requires a special locator:
ArrowLocator.
PolygonDecoration is a Polygon. You cannot call setBounds on polygon
either.
"Hao Zhang" <bjzhanghao@21cn.com> wrote in message
news:d3m3n1$slo$1@news.eclipse.org...
> Hi all,
> These codes shows a label in the middle of a connection:
> Label label=new Label();
> label.setText("test");
> conn.add(label,new MidpointLocator(conn, 0));
>
> But replace them with following code, nothing is in the middle(expecting
> an
> triangle):
> conn.add(new PolygonDecoration(),new MidpointLocator(conn, 0));
>
> why?
>
> Regards
> Hao
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02726 seconds