KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id: EditorGuide.java 1607 2005-08-23 16:04:49Z nozkiller $
6  */

7 package com.nightlabs.editor2d;
8
9 import java.beans.PropertyChangeListener JavaDoc;
10 import java.beans.PropertyChangeSupport JavaDoc;
11 import java.util.Map JavaDoc;
12 import java.util.Set JavaDoc;
13
14 public interface EditorGuide
15 {
16   /**
17    * Property used to notify listeners when the parts attached to a guide are changed
18    */

19   public static final String JavaDoc PROPERTY_CHILDREN = "subparts changed"; //$NON-NLS-1$
20
/**
21    * Property used to notify listeners when the guide is re-positioned
22    */

23   public static final String JavaDoc PROPERTY_POSITION = "position changed"; //$NON-NLS-1$
24

25   public Set JavaDoc getParts();
26   
27   boolean isHorizontal();
28   void setHorizontal(boolean value);
29
30   int getPosition();
31   void setPosition(int value);
32
33   Map JavaDoc getMap();
34   void setMap(Map JavaDoc value);
35
36   void attachPart(DrawComponent drawComponent, int alignment);
37   void detachPart(DrawComponent drawComponent);
38
39   int getAlignment(DrawComponent drawComponent);
40
41   void addPropertyChangeListener(PropertyChangeListener JavaDoc listener);
42   void removePropertyChangeListener(PropertyChangeListener JavaDoc listener);
43
44 } // EditorGuide
45
Popular Tags