/[classpath]/classpath/javax/swing/BorderFactory.java
ViewVC logotype

Diff of /classpath/javax/swing/BorderFactory.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Sun Jun 8 11:20:06 2003 UTC revision 1.4 by mkoch, Sun Jun 8 14:43:06 2003 UTC
# Line 51  import javax.swing.border.TitledBorder; Line 51  import javax.swing.border.TitledBorder;
51    
52  public class BorderFactory  public class BorderFactory
53  {  {
54      /**
55       * Creates a line border withe the specified color.
56       *
57       * @param color A color to use for the line.
58       *
59       * @return The Border object
60       */
61    public static Border createLineBorder(Color color)    public static Border createLineBorder(Color color)
62    { /*    {
     Creates a line border withe the specified color.  
   
     Parameters:  
     color - a Color to use for the lineReturns:  
     the Border object  
 createLineBorder  
     */  
63      return null;      return null;
64   }    }
   
 public static Border createLineBorder(Color color,  
                                       int thickness)  
   { /*  
   
     Creates a line border withe the specified color and width. The width applies to all 4 sides of the border. To specify widths individually for the top, bottom, left, and right, use createMatteBorder(int,int,int,int,Color).  
65    
66      Parameters:    /**
67      color - a Color to use for the linethickness - an int specifying the width in pixelsReturns:     * Creates a line border withe the specified color and width. The width applies to all 4 sides of the border. To specify widths individually for the top, bottom, left, and right, use createMatteBorder(int,int,int,int,Color).
68      the Border object     *
69  createRaisedBevelBorder     * @param color A color to use for the line.
70      */     * @param thickness An int specifying the width in pixels.
71       *
72       * @return The Border object
73       */
74      public static Border createLineBorder (Color color, int thickness)
75      {
76      return null;      return null;
77    }    }
78    
79      /**
80  public static Border createRaisedBevelBorder()     * Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.)
81    { /*     *
82       * @return The Border object
83      Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.)     */
84      public static Border createRaisedBevelBorder ()
85      Returns:    {
     the Border object  
 createLoweredBevelBorder  
   
     */  
86      return null;      return null;
87   }    }
   
 public static Border createLoweredBevelBorder()  
   { /*  
   
     Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.)  
   
     Returns:  
     the Border object  
 createBevelBorder  
88    
89      */    /**
90       * Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.)
91       *
92       * @return The Border object
93       */
94      public static Border createLoweredBevelBorder ()
95      {
96      return null;      return null;
97   }    }
   
 public static Border createBevelBorder(int type)  
   
   { /*  
     Create a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.).  
   
     Parameters:  
     type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDReturns:  
     the Border object  
 createBevelBorder  
98    
99      */    /**
100       * Create a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.).
101       *
102       * @param type An int specifying either BevelBorder.LOWERED or BevelBorder.RAISED
103       *
104       * @Return The Border object
105       */
106      public static Border createBevelBorder (int type)
107      {
108      return null;      return null;
109   }    }
   
 public static Border createBevelBorder(int type,  
                                        Color highlight,  
                                        Color shadow)  
   { /*  
   
     Create a beveled border of the specified type, using the specified highlighting and shadowing. The outer edge of the highlighted area uses a brighter shade of the highlight color. The inner edge of the shadow area uses a brighter shade of the shadaw color.  
   
     Parameters:  
     type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDhighlight - a Color object for highlightsshadow - a Color object for shadowsReturns:  
     the Border object  
 createBevelBorder  
110    
111      */    /**
112       * Create a beveled border of the specified type, using the specified highlighting and shadowing. The outer edge of the highlighted area uses a brighter shade of the highlight color. The inner edge of the shadow area uses a brighter shade of the shadaw color.
113       *
114       * @param type An int specifying either BevelBorder.LOWERED or BevelBorder.RAISED
115       * @param highlight A Color object for highlights
116       * @param shadow A Color object for shadows
117       *
118       * @return The Border object
119      */
120      public static Border createBevelBorder (int type, Color highlight,
121                                              Color shadow)
122      {
123      return null;      return null;
124   }    }
   
 public static Border createBevelBorder(int type,  
                                        Color highlightOuter,  
                                        Color highlightInner,  
                                        Color shadowOuter,  
                                        Color shadowInner)  
   { /*  
   
     Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.  
125    
126      Parameters:    /**
127      type - an int specifying either BevelBorder.LOWERED or BevelBorder.LOWEREDhighlightOuter - a Color object for the outer edge of the highlight areahighlightInner - a Color object for the inner edge of the highlight areashadowOuter - a Color object for the outer edge of the shadow areashadowInner - a Color object for the inner edge of the shadow areaReturns:     * Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.
128      the Border object     *
129  createEtchedBorder     * @param type An int specifying either BevelBorder.LOWERED or BevelBorder.RAISED
130      */     * @param highlightOuter A Color object for the outer edge of the highlight area
131       * @param highlightInner A Color object for the inner edge of the highlight area
132       * @param shadowOuter A Color object for the outer edge of the shadow area
133       * @param shadowInner A Color object for the inner edge of the shadow area
134       *
135       * @return The Border object
136       */
137      public static Border createBevelBorder (int type, Color highlightOuter,
138                                              Color highlightInner,
139                                              Color shadowOuter, Color shadowInner)
140      {
141      return null;      return null;
142   }    }
   
   
 public static Border createEtchedBorder()  
   { /*  
   
     Create a border with an "etched" look using the component's current background color for highlighting and shading.  
   
     Returns:  
     the Border object  
 createEtchedBorder  
143    
144      */    /**
145       * Create a border with an "etched" look using the component's current background color for highlighting and shading.
146       *
147       * @return The Border object
148       */
149      public static Border createEtchedBorder ()
150      {
151      return null;      return null;
152   }    }
   
 public static Border createEtchedBorder(Color highlight,  
                                         Color shadow)  
   { /*  
   
     Create a border with an "etched" look using the specified highlighting and shading colors.  
   
     Parameters:  
     highlight - a Color object for the border highlightsshadow - a Color object for the border shadowsReturns:  
     the Border object  
 createTitledBorder  
153    
154      */    /**
155       * Create a border with an "etched" look using the specified highlighting and shading colors.
156       *
157       * @param highlight A Color object for the border highlights
158       * @param shadow A Color object for the border shadows
159       *
160       * @return The Border object
161       */
162      public static Border createEtchedBorder (Color highlight, Color shadow)
163      {
164      return null;      return null;
165   }    }
   
   public static TitledBorder createTitledBorder(String title)  
   { /*  
     Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel.  
   
     Parameters:  
     title - a String containing the text of the titleReturns:  
     the TitledBorder object  
 createTitledBorder  
166    
167      */    /**
168       * Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel.
169       *
170       * @param title A String containing the text of the title
171       *
172       * @return The TitledBorder object
173       */
174      public static TitledBorder createTitledBorder (String title)
175      {
176      return null;      return null;
177   }    }
   
   public static TitledBorder createTitledBorder(Border border)  
   { /*  
   
     Create a new title border with an empty title specifying the border object, using the default text position (sitting on the top line) and default justification (left) and using the default font, text color, and border determined by the current look and feel. (The Motif and Windows look and feels use an etched border; The Java look and feel use a gray border.)  
   
     Parameters:  
     border - the Border object to add the title toReturns:  
     the TitledBorder object  
 createTitledBorder  
178    
179      */    /**
180       * Create a new title border with an empty title specifying the border object, using the default text position (sitting on the top line) and default justification (left) and using the default font, text color, and border determined by the current look and feel. (The Motif and Windows look and feels use an etched border; The Java look and feel use a gray border.)
181       *
182       * @param border The Border object to add the title to
183       *
184       * @return The TitledBorder object
185       */
186      public static TitledBorder createTitledBorder (Border border)
187      {
188      return null;      return null;
189   }    }
   
 public static TitledBorder createTitledBorder(Border border,  
                                               String title)  
   { /*  
   
     Add a title to an existing border, specifying the text of the title, using the default positioning (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel.  
   
     Parameters:  
     border - the Border object to add the title totitle - a String containing the text of the titleReturns:  
     the TitledBorder object  
 createTitledBorder  
190    
191      */    /**
192       * Add a title to an existing border, specifying the text of the title, using the default positioning (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel.
193       *
194       * border - the Border object to add the title totitle - a String containing the text of the title
195       *
196       * @return The TitledBorder object
197       */
198      public static TitledBorder createTitledBorder (Border border, String title)
199      {
200      return null;      return null;
201   }    }
   
 public static TitledBorder createTitledBorder(Border border,  
                                               String title,  
                                               int titleJustification,  
                                               int titlePosition)  
   { /*  
   
     Add a title to an existing border, specifying the text of the title along with its positioning, using the default font and text color determined by the current look and feel.  
   
     Parameters:  
     border - the Border object to add the title totitle - a String containing the text of the titletitleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).Returns:  
     the TitledBorder object  
 createTitledBorder  
202    
203      */    /**
204       * Add a title to an existing border, specifying the text of the title along with its positioning, using the default font and text color determined by the current look and feel.
205       *
206       * @param border The Border object to add the title to
207       * @param title A String containing the text of the title
208       * @param titleJustification An int specifying the left/right position of
209       * the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or
210       * TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
211       * @param titlePosition An int specifying the vertical position of the text
212       * in relation to the border -- one of: TitledBorder.ABOVE_TOP,
213       * TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP,
214       * TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line),
215       * TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
216       *
217       * @return The TitledBorder object
218       */
219      public static TitledBorder createTitledBorder (Border border, String title,
220                                                    int titleJustification,
221                                                    int titlePosition)
222      {
223      return null;      return null;
224   }    }
   
 public static TitledBorder createTitledBorder(Border border,  
                                               String title,  
                                               int titleJustification,  
                                               int titlePosition,  
                                               Font titleFont)  
   { /*  
   
     Add a title to an existing border, specifying the text of the title along with its positioning and font, using the default text color determined by the current look and feel.  
   
     Parameters:  
     border - the Border object to add the title totitle - a String containing the text of the titletitleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).titleFont - a Font object specifying the title fontReturns:  
     the TitledBorder object  
 createTitledBorder  
225    
226      */    /**
227       * Add a title to an existing border, specifying the text of the title along with its positioning and font, using the default text color determined by the current look and feel.
228       *
229       * @param border - the Border object to add the title to
230       * @param title - a String containing the text of the title
231       * @param titleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
232       * @param titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
233       * @param titleFont - a Font object specifying the title font
234       *
235       * @return The TitledBorder object
236       */
237      public static TitledBorder createTitledBorder (Border border, String title,
238                                                     int titleJustification,
239                                                     int titlePosition,
240                                                     Font titleFont)
241      {
242      return null;      return null;
243   }    }
   
 public static TitledBorder createTitledBorder(Border border,  
                                               String title,  
                                               int titleJustification,  
                                               int titlePosition,  
                                               Font titleFont,  
                                               Color titleColor)  
   { /*  
   
     Add a title to an existing border, specifying the text of the title along with its positioning, font, and color.  
   
     Parameters:  
     border - the Border object to add the title totitle - a String containing the text of the titletitleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).titleFont - a Font object specifying the title fonttitleColor - a Color object specifying the title colorReturns:  
     the TitledBorder object  
 createEmptyBorder  
244    
245      */    /**
246       * Add a title to an existing border, specifying the text of the title along with its positioning, font, and color.
247       *
248       * @param border - the Border object to add the title to
249       * @param title - a String containing the text of the title
250       * @param titleJustification - an int specifying the left/right position of the title -- one of TitledBorder.LEFT, TitledBorder.CENTER, or TitledBorder.RIGHT, TitledBorder.DEFAULT_JUSTIFICATION (left).
251       * @param titlePosition - an int specifying the vertical position of the text in relation to the border -- one of: TitledBorder.ABOVE_TOP, TitledBorder.TOP (sitting on the top line), TitledBorder.BELOW_TOP, TitledBorder.ABOVE_BOTTOM, TitledBorder.BOTTOM (sitting on the bottom line), TitledBorder.BELOW_BOTTOM, or TitledBorder.DEFAULT_POSITION (top).
252       * @param titleFont - a Font object specifying the title font
253       * @param titleColor - a Color object specifying the title color
254       *
255       * @return The TitledBorder object
256       */
257      public static TitledBorder createTitledBorder (Border border,
258                                                     String title,
259                                                     int titleJustification,
260                                                     int titlePosition,
261                                                     Font titleFont,
262                                                     Color titleColor)
263      {
264      return null;      return null;
265   }    }
   
 public static Border createEmptyBorder()  
   { /*  
   
     Creates an empty border that takes up no space. (The width of the top, bottom, left, and right sides are all zero.)  
   
     Returns:  
     the Border object  
 createEmptyBorder  
266    
267      */    /**
268       * Creates an empty border that takes up no space. (The width of the top, bottom, left, and right sides are all zero.)
269       *
270       * @return The Border object
271       */
272      public static Border createEmptyBorder ()
273      {
274      return null;      return null;
275   }    }
   
 public static Border createEmptyBorder(int top,  
                                        int left,  
                                        int bottom,  
                                        int right)  
   { /*  
   
     Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides.  
   
     Parameters:  
     top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelsReturns:  
     the Border object  
 createCompoundBorder  
276    
277      */    /**
278       * Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides.
279       *
280       * @param top An int specifying the width of the top in pixels
281       * @param left An int specifying the width of the left side in pixels
282       * @param bottom An int specifying the width of the right side in pixels
283       * @param right An int specifying the width of the bottom in pixels
284       *
285       * @return The Border object
286       */
287      public static Border createEmptyBorder (int top, int left, int bottom,int right)
288      {
289      return null;      return null;
290   }    }
   
 public static CompoundBorder createCompoundBorder()  
   { /*  
   
     Create a compound border with a null inside edge and a null outside edge.  
291    
292      Returns:    /**
293      the CompoundBorder object     * Create a compound border with a null inside edge and a null outside edge.
294  createCompoundBorder     *
295      */     * @return The CompoundBorder object
296       */
297      public static CompoundBorder createCompoundBorder ()
298      {
299      return null;      return null;
300   }    }
   
   
 public static CompoundBorder createCompoundBorder(Border outsideBorder,  
                                                   Border insideBorder)  
   { /*  
   
     Create a compound border specifying the border objects to use for the outside and inside edges.  
301    
302      Parameters:    /**
303      outsideBorder - a Border object for the outer edge of the compound borderinsideBorder - a Border object for the inner edge of the compound borderReturns:     * Create a compound border specifying the border objects to use for the outside and inside edges.
304      the CompoundBorder object     *
305  createMatteBorder     * @param outsideBorder A Border object for the outer edge of the compound border
306      */     * @param insideBorder A Border object for the inner edge of the compound border
307       *
308       * @return The CompoundBorder object
309       */
310      public static CompoundBorder createCompoundBorder (Border outsideBorder, Border insideBorder)
311      {
312      return null;      return null;
313   }    }
   
   
 public static MatteBorder createMatteBorder(int top,  
                                             int left,  
                                             int bottom,  
                                             int right,  
                                             Color color)  
   { /*  
   
     Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.)  
   
     Parameters:  
     top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelscolor - a Color to use for the borderReturns:  
     the MatteBorder object  
 createMatteBorder  
314    
315      */    /**
316       * Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.)
317       *
318       * @param top An int specifying the width of the top in pixels
319       * @param left An int specifying the width of the left side in pixels
320       * @param bottom An int specifying the width of the right side in pixels
321       * @param right An int specifying the width of the bottom in pixelscolor - a Color to use for the border
322       *
323       * @return The MatteBorder object
324       */
325      public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color)
326      {
327      return null;      return null;
328   }    }
   
 public static MatteBorder createMatteBorder(int top,  
                                             int left,  
                                             int bottom,  
                                             int right,  
                                             Icon tileIcon)  
   { /*  
   
     Create a matte-look border that consists of multiple tiles of a specified icon. Multiple copies of the icon are placed side-by-side to fill up the border area.  
   
     Note:  
     If the icon doesn't load, the border area is painted gray.  
   
     Parameters:  
     top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelstileIcon - the Icon object used for the border tilesReturns:  
     the MatteBorder object  
329    
330      */    /**
331       * Create a matte-look border that consists of multiple tiles of a specified icon. Multiple copies of the icon are placed side-by-side to fill up the border area.
332       *
333       * Note:
334       * If the icon doesn't load, the border area is painted gray.
335       *
336       * @param top An int specifying the width of the top in pixels
337       * @param left An int specifying the width of the left side in pixels
338       * @param bottom An int specifying the width of the right side in pixels
339       * @param right An int specifying the width of the bottom in pixels
340       * @param tileIcon The Icon object used for the border tiles
341       *
342       * @return The MatteBorder object
343       */
344      public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Icon tileIcon)
345      {
346      return null;      return null;
347   }    }
   
348  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26