net.beeger.squareness.util
Class SquarenessBorderFactory

java.lang.Object
  extended by net.beeger.squareness.util.SquarenessBorderFactory

public class SquarenessBorderFactory
extends java.lang.Object

The SquarenessBorderFactory is a static factory that creates all the borders that are needed by the Look And Feel.


Constructor Summary
SquarenessBorderFactory()
           
 
Method Summary
static javax.swing.border.Border getButtonNonRolloverBorder()
          Return the non rollover border for buttons
Used for non rollover buttons on tool bars.
static javax.swing.border.Border getButtonRolloverBorder()
          Return the rollover border for buttons
Used for rollover buttons on tool bars.
static javax.swing.border.Border getControlBorderWithMargin()
          Return the border for the controls.
The returned border also contains an outer border with the color of the parent of the component for which it is used, which creates a little space between neighboring components.
static javax.swing.border.Border getControlBorderWithoutMargin()
          Return the border for the controls.
The same as getControlBorderWithMargin() but without the inner margin border.
static javax.swing.border.Border getInternalFrameBorder()
          Return the border for the controls.
The same as getControlBorderWithMargin() but without the inner margin border.
static javax.swing.border.Border getMenuItemBorder()
          Return the border for menu items.
static javax.swing.border.Border getNonSpacingControlBorderWithMargin()
          Return the border for the controls.
The same as getControlBorderWithMargin() but without the parent color outer border.
static javax.swing.border.Border getNonSpacingControlBorderWithoutMargin()
          Return the border for the controls.
The same as getControlBorderWithMargin() but without the inner margin border.
static javax.swing.border.Border getProgressBarBorder()
           
static javax.swing.border.Border getTableHeaderCellBorder()
          Return the border for table headers.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquarenessBorderFactory

public SquarenessBorderFactory()
Method Detail

getControlBorderWithMargin

public static javax.swing.border.Border getControlBorderWithMargin()
Return the border for the controls.
The returned border also contains an outer border with the color of the parent of the component for which it is used, which creates a little space between neighboring components.

Returns:
The border for the controls.

getNonSpacingControlBorderWithMargin

public static javax.swing.border.Border getNonSpacingControlBorderWithMargin()
Return the border for the controls.
The same as getControlBorderWithMargin() but without the parent color outer border.

Returns:
The border for the controls.

getControlBorderWithoutMargin

public static javax.swing.border.Border getControlBorderWithoutMargin()
Return the border for the controls.
The same as getControlBorderWithMargin() but without the inner margin border.

Returns:
The border for the controls.

getProgressBarBorder

public static javax.swing.border.Border getProgressBarBorder()

getNonSpacingControlBorderWithoutMargin

public static javax.swing.border.Border getNonSpacingControlBorderWithoutMargin()
Return the border for the controls.
The same as getControlBorderWithMargin() but without the inner margin border.

Returns:
The border for the controls.

getButtonRolloverBorder

public static javax.swing.border.Border getButtonRolloverBorder()
Return the rollover border for buttons
Used for rollover buttons on tool bars.

Returns:
The created border.

getButtonNonRolloverBorder

public static javax.swing.border.Border getButtonNonRolloverBorder()
Return the non rollover border for buttons
Used for non rollover buttons on tool bars.

Returns:
The created border.

getTableHeaderCellBorder

public static javax.swing.border.Border getTableHeaderCellBorder()
Return the border for table headers.

Returns:
The created border.

getMenuItemBorder

public static javax.swing.border.Border getMenuItemBorder()
Return the border for menu items.

Returns:
The created border.

getInternalFrameBorder

public static javax.swing.border.Border getInternalFrameBorder()
Return the border for the controls.
The same as getControlBorderWithMargin() but without the inner margin border.

Returns:
The border for the controls.