1 26 27 package org.nightlabs.editor2d; 28 29 import java.util.List ; 30 import java.util.Map ; 31 32 public interface MultiLayerDrawComponent 33 extends DrawComponentContainer 34 { 35 public static final String PROP_CURRENT_LAYER = "currentLayer"; 36 public static final String TYPE_ADDED = "New type added!"; 37 38 44 Layer getCurrentLayer(); 45 46 51 void setCurrentLayer(Layer value); 52 53 57 boolean isGridEnabled(); 58 59 63 void setGridEnabled(boolean value); 64 65 69 boolean isRulersEnabled(); 70 71 75 void setRulersEnabled(boolean value); 76 77 81 boolean isSnapToGeometry(); 82 83 87 void setSnapToGeometry(boolean value); 88 89 93 double getZoom(); 94 95 99 void setZoom(double value); 100 101 106 EditorRuler getLeftRuler(); 107 108 112 void setLeftRuler(EditorRuler value); 113 114 119 EditorRuler getTopRuler(); 120 121 126 void setTopRuler(EditorRuler value); 127 128 133 long getLastID(); 134 135 143 void setLastID(long value); 144 145 150 long nextID(); 151 152 157 DrawComponent getDrawComponent(long id); 158 159 169 void registerDrawComponent(DrawComponent drawComponent); 170 171 178 void unregisterDrawComponent(DrawComponent drawComponent); 179 180 187 void unregisterDrawComponent(long id); 188 189 196 List getDrawComponents(Class type); 197 198 203 Map getClass2DrawComponents(); 204 205 213 void setClass2DrawComponents(Map value); 214 215 220 Map getId2DrawComponent(); 221 222 230 void setId2DrawComponent(Map value); 231 232 } | Popular Tags |