KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > editpolicy > MultiLayerDrawComponentXYLayoutPolicy


1 /**
2  * <p> Project: com.nightlabs.editor2d </p>
3  * <p> Copyright: Copyright (c) 2004 </p>
4  * <p> Company: NightLabs GmbH (Germany) </p>
5  * <p> Creation Date: 10.11.2004 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

8 package com.nightlabs.editor2d.editpolicy;
9
10 import org.apache.log4j.Logger;
11 import org.eclipse.draw2d.XYLayout;
12
13
14
15 public class MultiLayerDrawComponentXYLayoutPolicy
16 extends DrawComponentContainerXYLayoutPolicy
17 {
18   public static final Logger LOGGER = Logger.getLogger(MultiLayerDrawComponentXYLayoutPolicy.class);
19   
20     /**
21      * Create a new instance of this edit policy.
22      * @param layout a non-null XYLayout instance. This should be the layout of the editpart's
23      * figure where this instance is installed.
24      * @throws IllegalArgumentException if layout is null
25      * @see DiagramEditPart#createEditPolicies()
26      */

27     public MultiLayerDrawComponentXYLayoutPolicy(XYLayout layout)
28     {
29       super(layout);
30     }
31         
32 // public DrawComponentContainer getDrawComponentContainer()
33
// {
34
// MultiLayerDrawComponent mldc = (MultiLayerDrawComponent)getHost().getModel();
35
// return mldc.getCurrentLayer();
36
// }
37
}
38
39
Popular Tags