1 7 package com.nightlabs.editor2d; 8 9 import java.awt.Rectangle ; 10 import java.awt.geom.AffineTransform ; 11 import java.beans.PropertyChangeListener ; 12 13 import com.nightlabs.editor2d.render.RenderModeManager; 14 import com.nightlabs.editor2d.render.Renderer; 15 import com.nightlabs.i18n.I18nText; 16 17 public interface DrawComponent 18 { 19 public static final String TRANSFORM_CHANGED = "transform changed"; 20 21 public static final int ROTATION_X_DEFAULT = Integer.MAX_VALUE; 22 public static final int ROTATION_Y_DEFAULT = Integer.MAX_VALUE; 23 24 public static final String PROP_AFFINE_TRANSFORM = "affineTransform"; 25 public static final String PROP_BOUNDS = "bounds"; 26 public static final String PROP_HEIGHT = "height"; 27 public static final String PROP_WIDTH = "width"; 28 public static final String PROP_NAME = "name"; 29 public static final String PROP_ID = "id"; 30 public static final String PROP_PARENT = "parent"; 31 public static final String PROP_RENDERER = "renderer"; 32 public static final String PROP_RENDER_MODE = "renderMode"; 33 public static final String PROP_ROTATION = "rotation"; 34 public static final String PROP_ROTATION_X = "rotationX"; 35 public static final String PROP_ROTATION_Y = "rotationY"; 36 public static final String PROP_X = "x"; 37 public static final String PROP_Y = "y"; 38 public static final String PROP_HORIZONTAL_GUIDE = "horizontalGuide"; 39 public static final String PROP_VERTICAL_GUIDE = "verticalGuide"; 40 public static final String PROP_TMP_ROTATION_X = "tmpRotationX"; 41 public static final String PROP_TMP_ROTATION_Y = "tmpRotationY"; 42 public static final String PROP_LANGUAGE_ID = "languageID"; 43 44 public static final String DEFAULT_LANGUAGE_ID = I18nText.DEFAULT_LANGUAGEID; 45 46 void addPropertyChangeListener(PropertyChangeListener pcl); 47 void removePropertyChangeListener(PropertyChangeListener pcl); 48 49 long getId(); 50 void setId(long value); 51 52 String getName(); 53 void setName(String name); 54 55 void setLanguageId(String languageId); 56 String getLanguageId(); 57 58 I18nText getI18nText(); 59 void setI18nText(I18nText text); 60 61 int getX(); 62 void setX(int value); 63 64 int getY(); 65 void setY(int value); 66 67 int getWidth(); 68 void setWidth(int value); 69 70 int getHeight(); 71 void setHeight(int value); 72 73 double getRotation(); 74 void setRotation(double value); 75 76 EditorGuide getHorizontalGuide(); 77 void setHorizontalGuide(EditorGuide value); 78 79 EditorGuide getVerticalGuide(); 80 void setVerticalGuide(EditorGuide value); 81 82 int getRotationX(); 83 void setRotationX(int value); 84 85 int getRotationY(); 86 void setRotationY(int value); 87 88 Rectangle getBounds(); 89 void setBounds(Rectangle bounds); 90 91 void transform(AffineTransform at); 92 93 AffineTransform getAffineTransform(); 94 95 void setAffineTransform(AffineTransform at); 96 97 void setTmpRotationX(int newTmpRotationX); 98 int getTmpRotationX(); 99 100 void setTmpRotationY(int newTmpRotationY); 101 int getTmpRotationY(); 102 103 void setRenderMode(int mode); 104 int getRenderMode(); 105 106 Renderer getRenderer(); 107 108 void setRenderModeManager(RenderModeManager man); 109 RenderModeManager getRenderModeManager(); 110 111 DrawComponentContainer getParent(); 112 void setParent(DrawComponentContainer value); 113 114 String getTypeName(); 115 116 MultiLayerDrawComponent getRoot(); 117 118 void setLocation(int x, int y); 119 } | Popular Tags |