KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id: DrawComponent.java 1635 2005-08-26 19:28:30Z nozkiller $
6  */

7 package com.nightlabs.editor2d;
8
9 import java.awt.Rectangle JavaDoc;
10 import java.awt.geom.AffineTransform JavaDoc;
11 import java.beans.PropertyChangeListener JavaDoc;
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 JavaDoc 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 JavaDoc PROP_AFFINE_TRANSFORM = "affineTransform";
25     public static final String JavaDoc PROP_BOUNDS = "bounds";
26     public static final String JavaDoc PROP_HEIGHT = "height";
27     public static final String JavaDoc PROP_WIDTH = "width";
28     public static final String JavaDoc PROP_NAME = "name";
29     public static final String JavaDoc PROP_ID = "id";
30     public static final String JavaDoc PROP_PARENT = "parent";
31     public static final String JavaDoc PROP_RENDERER = "renderer";
32     public static final String JavaDoc PROP_RENDER_MODE = "renderMode";
33     public static final String JavaDoc PROP_ROTATION = "rotation";
34     public static final String JavaDoc PROP_ROTATION_X = "rotationX";
35     public static final String JavaDoc PROP_ROTATION_Y = "rotationY";
36     public static final String JavaDoc PROP_X = "x";
37     public static final String JavaDoc PROP_Y = "y";
38     public static final String JavaDoc PROP_HORIZONTAL_GUIDE = "horizontalGuide";
39     public static final String JavaDoc PROP_VERTICAL_GUIDE = "verticalGuide";
40     public static final String JavaDoc PROP_TMP_ROTATION_X = "tmpRotationX";
41     public static final String JavaDoc PROP_TMP_ROTATION_Y = "tmpRotationY";
42     public static final String JavaDoc PROP_LANGUAGE_ID = "languageID";
43     
44     public static final String JavaDoc DEFAULT_LANGUAGE_ID = I18nText.DEFAULT_LANGUAGEID;
45     
46     void addPropertyChangeListener(PropertyChangeListener JavaDoc pcl);
47     void removePropertyChangeListener(PropertyChangeListener JavaDoc pcl);
48     
49     long getId();
50     void setId(long value);
51
52     String JavaDoc getName();
53     void setName(String JavaDoc name);
54     
55     void setLanguageId(String JavaDoc languageId);
56     String JavaDoc 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 JavaDoc getBounds();
89     void setBounds(Rectangle JavaDoc bounds);
90
91     void transform(AffineTransform JavaDoc at);
92
93     AffineTransform JavaDoc getAffineTransform();
94
95     void setAffineTransform(AffineTransform JavaDoc 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 JavaDoc getTypeName();
115
116     MultiLayerDrawComponent getRoot();
117     
118     void setLocation(int x, int y);
119 } // DrawComponent
120
Popular Tags