KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > border > SBorder


1 /*
2  * $Id: SBorder.java,v 1.6 2005/05/27 09:17:33 blueshift Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings.border;
15
16 import org.wings.style.CSSAttributeSet;
17
18 import java.awt.*;
19 import java.io.Serializable JavaDoc;
20
21 /**
22  * This is the interface for Borders.
23  *
24  * @author <a HREF="mailto:haaf@mercatis.de">Armin Haaf</a>
25  * @version $Revision: 1.6 $
26  */

27 public interface SBorder extends Serializable JavaDoc {
28     /**
29      * Sets the insets of this border. Insets describe the amount
30      * of space 'around' the bordered component.
31      *
32      * @see #getInsets()
33      */

34     void setInsets(Insets insets);
35
36     /**
37      * Returns the insets of this border.
38      *
39      * @return Insets specification of the border.
40      * @see #setInsets
41      */

42     Insets getInsets();
43
44     /**
45      * Get the color of the border.
46      *
47      * @return color
48      */

49     Color getColor();
50
51     /**
52      * Get the color of this border.
53      *
54      * @param color the color
55      */

56     void setColor(Color color);
57
58     /**
59      * Get the thickness in pixel for this border.
60      *
61      * @return thickness
62      * @see #setThickness(int)
63      */

64     public int getThickness();
65
66     /**
67      * Set the thickness in pixel for this border.
68      *
69      * @see #getThickness()
70      */

71     public void setThickness(int thickness);
72
73     CSSAttributeSet getAttributes();
74 }
75
Popular Tags