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

Quick Search    Search Deep

org.greenstone.gatherer.gui
Class BorderFactory  view BorderFactory download BorderFactory.java

java.lang.Object
  extended byorg.greenstone.gatherer.gui.BorderFactory

public class BorderFactory
extends java.lang.Object

Gatherers own version of the javax.swing.BorderFactory which has two major differences: firstly the titled borders returned are org.greenstone.gatherer.gui.border.TitledBorders which are aware who their parents are and are -not- ever shared. The second difference is that I haven't been so much of a biarch as to use a private contructor so as prevent any other programmer in the world from extending my class. Jaded? Me? Nah.

Version:
2.3

Constructor Summary
BorderFactory()
           
 
Method Summary
static javax.swing.border.Border createBevelBorder(int type)
          Creates a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
static javax.swing.border.Border createBevelBorder(int type, java.awt.Color highlight, java.awt.Color shadow)
          Creates a beveled border of the specified type, using the specified highlighting and shadowing.
static javax.swing.border.Border createBevelBorder(int type, java.awt.Color highlightOuter, java.awt.Color highlightInner, java.awt.Color shadowOuter, java.awt.Color shadowInner)
          Creates a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.
static javax.swing.border.CompoundBorder createCompoundBorder()
          Creates a compound border with a null inside edge and a null outside edge.
static javax.swing.border.CompoundBorder createCompoundBorder(javax.swing.border.Border outsideBorder, javax.swing.border.Border insideBorder)
          Creates a compound border specifying the border objects to use for the outside and inside edges.
static javax.swing.border.Border createEmptyBorder()
          Creates an empty border that takes up no space.
static javax.swing.border.Border createEmptyBorder(int top, int left, int bottom, int right)
          Creates an empty border that takes up space but which does no drawing, specifying the width of the top, left, bottom, and right sides.
static javax.swing.border.Border createEtchedBorder()
          Creates a border with an "etched" look using the component's current background color for highlighting and shading.
static javax.swing.border.Border createEtchedBorder(java.awt.Color highlight, java.awt.Color shadow)
          Creates a border with an "etched" look using the specified highlighting and shading colors.
static javax.swing.border.Border createEtchedBorder(int type)
          Creates a border with an "etched" look using the component's current background color for highlighting and shading.
static javax.swing.border.Border createEtchedBorder(int type, java.awt.Color highlight, java.awt.Color shadow)
          Creates a border with an "etched" look using the specified highlighting and shading colors.
static javax.swing.border.Border createLineBorder(java.awt.Color color)
          Creates a line border withe the specified color.
static javax.swing.border.Border createLineBorder(java.awt.Color color, int thickness)
          Creates a line border with the specified color and width.
static javax.swing.border.Border createLoweredBevelBorder()
          Creates a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
static javax.swing.border.MatteBorder createMatteBorder(int top, int left, int bottom, int right, java.awt.Color color)
          Creates a matte-look border using a solid color.
static javax.swing.border.MatteBorder createMatteBorder(int top, int left, int bottom, int right, javax.swing.Icon tileIcon)
          Creates a matte-look border that consists of multiple tiles of a specified icon.
static javax.swing.border.Border createRaisedBevelBorder()
          Creates a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border)
          Creates 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 (leading) and using the default font, and text color.
static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border, java.lang.String title)
          Adds a title to an existing border, specifying the text of the title, using the default positioning (sitting on the top line) and default justification (leading) and using the default font and text color determined by the current look and feel.
static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border, java.lang.String title, int justification, int position)
          Adds 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.
static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border, java.lang.String title, int justification, int position, java.awt.Font font)
          Adds 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.
static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border, java.lang.String title, int justification, int position, java.awt.Font font, java.awt.Color color)
          Adds a title to an existing border, specifying the text of the title along with its positioning, font, and color.
static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(java.lang.String title)
          Creates 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 (leading) and using the default font and text color determined by the current look and feel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderFactory

public BorderFactory()
Method Detail

createBevelBorder

public static javax.swing.border.Border createBevelBorder(int type)
Creates a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.


createBevelBorder

public static javax.swing.border.Border createBevelBorder(int type,
                                                          java.awt.Color highlight,
                                                          java.awt.Color shadow)
Creates a beveled border of the specified type, using the specified highlighting and shadowing.


createBevelBorder

public static javax.swing.border.Border createBevelBorder(int type,
                                                          java.awt.Color highlightOuter,
                                                          java.awt.Color highlightInner,
                                                          java.awt.Color shadowOuter,
                                                          java.awt.Color shadowInner)
Creates a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.


createCompoundBorder

public static javax.swing.border.CompoundBorder createCompoundBorder()
Creates a compound border with a null inside edge and a null outside edge.


createCompoundBorder

public static javax.swing.border.CompoundBorder createCompoundBorder(javax.swing.border.Border outsideBorder,
                                                                     javax.swing.border.Border insideBorder)
Creates a compound border specifying the border objects to use for the outside and inside edges.


createEmptyBorder

public static javax.swing.border.Border createEmptyBorder()
Creates an empty border that takes up no space.


createEmptyBorder

public static javax.swing.border.Border createEmptyBorder(int top,
                                                          int left,
                                                          int bottom,
                                                          int right)
Creates an empty border that takes up space but which does no drawing, specifying the width of the top, left, bottom, and right sides.


createEtchedBorder

public static javax.swing.border.Border createEtchedBorder()
Creates a border with an "etched" look using the component's current background color for highlighting and shading.


createEtchedBorder

public static javax.swing.border.Border createEtchedBorder(java.awt.Color highlight,
                                                           java.awt.Color shadow)
Creates a border with an "etched" look using the specified highlighting and shading colors.


createEtchedBorder

public static javax.swing.border.Border createEtchedBorder(int type)
Creates a border with an "etched" look using the component's current background color for highlighting and shading.


createEtchedBorder

public static javax.swing.border.Border createEtchedBorder(int type,
                                                           java.awt.Color highlight,
                                                           java.awt.Color shadow)
Creates a border with an "etched" look using the specified highlighting and shading colors.


createLineBorder

public static javax.swing.border.Border createLineBorder(java.awt.Color color)
Creates a line border withe the specified color.


createLineBorder

public static javax.swing.border.Border createLineBorder(java.awt.Color color,
                                                         int thickness)
Creates a line border with the specified color and width.


createLoweredBevelBorder

public static javax.swing.border.Border createLoweredBevelBorder()
Creates a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.


createMatteBorder

public static javax.swing.border.MatteBorder createMatteBorder(int top,
                                                               int left,
                                                               int bottom,
                                                               int right,
                                                               java.awt.Color color)
Creates a matte-look border using a solid color.


createMatteBorder

public static javax.swing.border.MatteBorder createMatteBorder(int top,
                                                               int left,
                                                               int bottom,
                                                               int right,
                                                               javax.swing.Icon tileIcon)
Creates a matte-look border that consists of multiple tiles of a specified icon.


createRaisedBevelBorder

public static javax.swing.border.Border createRaisedBevelBorder()
Creates a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.


createTitledBorder

public static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border)
Creates 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 (leading) and using the default font, and text color.


createTitledBorder

public static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border,
                                                                                 java.lang.String title)
Adds a title to an existing border, specifying the text of the title, using the default positioning (sitting on the top line) and default justification (leading) and using the default font and text color determined by the current look and feel.


createTitledBorder

public static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border,
                                                                                 java.lang.String title,
                                                                                 int justification,
                                                                                 int position)
Adds 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.


createTitledBorder

public static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border,
                                                                                 java.lang.String title,
                                                                                 int justification,
                                                                                 int position,
                                                                                 java.awt.Font font)
Adds 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.


createTitledBorder

public static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(javax.swing.border.Border border,
                                                                                 java.lang.String title,
                                                                                 int justification,
                                                                                 int position,
                                                                                 java.awt.Font font,
                                                                                 java.awt.Color color)
Adds a title to an existing border, specifying the text of the title along with its positioning, font, and color.


createTitledBorder

public static org.greenstone.gatherer.gui.border.TitledBorder createTitledBorder(java.lang.String title)
Creates 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 (leading) and using the default font and text color determined by the current look and feel.