KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > MultiLayerDrawComponent


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id: MultiLayerDrawComponent.java 1634 2005-08-26 19:26:15Z nozkiller $
6  */

7 package com.nightlabs.editor2d;
8
9 import java.util.Collection JavaDoc;
10 import java.util.Map JavaDoc;
11
12 public interface MultiLayerDrawComponent
13 extends DrawComponentContainer
14 {
15   public static final String JavaDoc PROP_CURRENT_LAYER = "currentLayer";
16   
17   Layer getCurrentLayer();
18   void setCurrentLayer(Layer value);
19
20   boolean isGridEnabled();
21   void setGridEnabled(boolean value);
22   
23   boolean isRulersEnabled();
24   void setRulersEnabled(boolean value);
25
26   boolean isSnapToGeometry();
27   void setSnapToGeometry(boolean value);
28
29   double getZoom();
30   void setZoom(double value);
31
32   EditorRuler getLeftRuler();
33   void setLeftRuler(EditorRuler value);
34
35   EditorRuler getTopRuler();
36   void setTopRuler(EditorRuler value);
37
38   long getLastID();
39     void setLastID(long value);
40
41   long nextID();
42   
43   DrawComponent getDrawComponent(long id);
44
45   void registerDrawComponent(DrawComponent drawComponent);
46   void unregisterDrawComponent(DrawComponent drawComponent);
47   void unregisterDrawComponent(long id);
48
49   Collection JavaDoc getDrawComponents(Class JavaDoc type);
50   
51   Map JavaDoc getClass2DrawComponents();
52     void setClass2DrawComponents(Map JavaDoc value);
53     
54   Map JavaDoc getId2DrawComponent();
55     void setId2DrawComponent(Map JavaDoc value);
56
57 // void setRenderModeManager(RenderModeManager renderMan);
58
} // MultiLayerDrawComponent
59
Popular Tags