Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: giny/view/Label.java


1   package giny.view;
2   
3   import java.awt.Font;
4   
5   public interface Label {
6   
7     public static int CENTER = 0;
8     public static int NORTH = 1;
9     public static int SOUTH = 2;
10    public static int WEST = 3;
11    public static int EAST = 4;
12    public static int NORTHWEST = 5;
13    public static int NORTHEAST = 6;
14    public static int SOUTHEAST = 7;
15    public static int SOUTHWEST = 8;
16    public static int SOURCE_BOUND = 9;
17    public static int TARGET_BOUND = 10;
18  
19    /**
20     * Set the Text for this Label
21     */
22    public void setText ( String text );
23  
24    /**
25     * get the text of this label
26     */
27    public String getText ();
28  
29    /**
30     * Give the Label a hint on where to draw itself.
31     * <B>NOTE:</B> This should be thought of as a hint only, not 
32     * all labels will support all positions
33     */
34    public void setPositionHint ( int position );
35  
36    /**
37     * Set the Font
38     */
39    public void setFont ( Font font );
40  
41    /**
42     * Set the Size of the label
43     */
44    public void setSize ( int points );
45  
46  }