|
Re: Connector z-order [message #240813 is a reply to message #240808] |
Fri, 18 January 2008 18:12 |
Eclipse User |
|
|
|
Originally posted by: sebukoleth.gmail.com
Drew Frantz wrote:
> What is the trick to making connectors stay in back of the z-order instead
> of the front? Sometimes when I expand shapes I would prefer the shape to be
> in front of all connectors. This happens when I expand a shape and it covers
> other shapes in the vincinity and there are connectors drawn to the other
> shapes (not the one I expanded).
>
>
public MyRootEditpart extends ScalableFreeformRootEditPart {
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane pane = new FreeformLayeredPane();
Layer layer = new ConnectionLayer();
layer.setPreferredSize(new Dimension(5, 5));
pane.add(layer, CONNECTION_LAYER);
layer = new FreeformLayer();
layer.setLayoutManager(new FreeformLayout());
pane.add(layer, PRIMARY_LAYER);
return pane;
}
Now the connection layer will be in the back of all shapes. So all
connections will stay in the back. Down part to this? Shapes can hide
connections.
Sebu
|
|
|
|
|
Re: Connector z-order [message #240890 is a reply to message #240882] |
Tue, 22 January 2008 18:13 |
Eclipse User |
|
|
|
Originally posted by: sebukoleth.gmail.com
Anagha wrote:
> Can u tell me
> what is CONNECTION_LAYER and PRIMARY_LAYER in it ?
Don't have auto-complete IDE? :) These are constants defined in
org.eclipse.gef.LayerConstants
Sebu
|
|
|
Powered by
FUDForum. Page generated in 0.03457 seconds