| java.lang.Object org.netbeans.api.visual.border.BorderFactory
BorderFactory | final public class BorderFactory (Code) | | This class is a factory of all built-in implementation of borders.
Instances of built-in borders can be shared by multiple widgets.
author: David Kaspar |
Method Summary | |
public static Border | createBevelBorder(boolean raised) Creates a bevel border. | public static Border | createBevelBorder(boolean raised, Color color) Creates a bevel border. | public static Border | createCompositeBorder(Border... borders) Creates a composite border that consists of a list of specified borders - one embedded to another. | public static Border | createDashedBorder(Color color, int width, int height) Creates a resize border rendered with dashed stroke. | public static Border | createDashedBorder(Color color, int width, int height, boolean squares) Creates a resize border rendered with dashed stroke. | public static Border | createEmptyBorder() Creates an default empty border with 0px layout. | public static Border | createEmptyBorder(int thickness) Creates an empty border with specific thickness. | public static Border | createEmptyBorder(int horizontal, int vertical) Creates an empty border with specific thickness. | public static Border | createEmptyBorder(int top, int left, int bottom, int right) Creates an empty border with specific thickness. | public static Border | createFancyDashedBorder(Color color, int width, int height) Creates a resize border rendered with fancy dashed stroke. | public static Border | createImageBorder(Insets insets, Image image) Creates an image layout. | public static Border | createImageBorder(Insets borderInsets, Insets imageInsets, Image image) Creates an image layout. | public static Border | createLineBorder() Creates a line border with default style. | public static Border | createLineBorder(int thickness) Creates a line border with specific thickness. | public static Border | createLineBorder(int thickness, Color color) Creates a line border with specific thickness and color. | public static Border | createLineBorder(int top, int left, int bottom, int right, Color color) Creates a line border with specific insets and color. | public static Border | createOpaqueBorder(int top, int left, int bottom, int right) Creates an opaque border with specific thickness. | public static Border | createResizeBorder(int thickness) Creates a resize border. | public static Border | createResizeBorder(int thickness, Color color, boolean outer) Creates a resize border. | public static Border | createRoundedBorder(int arcWidth, int arcHeight, Color fillColor, Color drawColor) Creates an rounded-rectangle border with a specified style. | public static Border | createRoundedBorder(int arcWidth, int arcHeight, int insetWidth, int insetHeight, Color fillColor, Color drawColor) Creates an rounded-rectangle border with a specified style. | public static Border | createSwingBorder(Scene scene, javax.swing.border.Border border) Creates a layout from a Swing border. |
createBevelBorder | public static Border createBevelBorder(boolean raised)(Code) | | Creates a bevel border.
The instance can be shared by multiple widgets.
Parameters: raised - if true, then it is a raised-bevel border; if false, then it is a lowered-bevel layout the bevel border |
createBevelBorder | public static Border createBevelBorder(boolean raised, Color color)(Code) | | Creates a bevel border.
The instance can be shared by multiple widgets.
Parameters: raised - if true, then it is a raised-bevel layout; if false, then it is a lowered-bevel border Parameters: color - the border color the bevel border |
createCompositeBorder | public static Border createCompositeBorder(Border... borders)(Code) | | Creates a composite border that consists of a list of specified borders - one embedded to another.
The instance can be shared by multiple widgets.
Parameters: borders - the list of borders the composite border |
createDashedBorder | public static Border createDashedBorder(Color color, int width, int height)(Code) | | Creates a resize border rendered with dashed stroke.
The instance can be shared by multiple widgets.
Parameters: color - the border color Parameters: width - the inset width Parameters: height - the inset height the dashed border |
createDashedBorder | public static Border createDashedBorder(Color color, int width, int height, boolean squares)(Code) | | Creates a resize border rendered with dashed stroke.
The instance can be shared by multiple widgets.
Parameters: color - the border color Parameters: width - the inset width Parameters: height - the inset height Parameters: squares - the the dashed border |
createEmptyBorder | public static Border createEmptyBorder()(Code) | | Creates an default empty border with 0px layout.
The instance can be shared by multiple widgets.
the empty border |
createEmptyBorder | public static Border createEmptyBorder(int thickness)(Code) | | Creates an empty border with specific thickness.
The instance can be shared by multiple widgets.
Parameters: thickness - the border thickness the empty border |
createEmptyBorder | public static Border createEmptyBorder(int horizontal, int vertical)(Code) | | Creates an empty border with specific thickness.
The instance can be shared by multiple widgets.
Parameters: horizontal - the horizontal thickness Parameters: vertical - the vertical thickness the empty border |
createEmptyBorder | public static Border createEmptyBorder(int top, int left, int bottom, int right)(Code) | | Creates an empty border with specific thickness.
The instance can be shared by multiple widgets.
Parameters: top - the top inset Parameters: left - the left inset Parameters: bottom - the bottom inset Parameters: right - the right inset the empty border |
createFancyDashedBorder | public static Border createFancyDashedBorder(Color color, int width, int height)(Code) | | Creates a resize border rendered with fancy dashed stroke.
The instance can be shared by multiple widgets.
Parameters: color - the border color Parameters: width - the inset width Parameters: height - the inset height the fancy dashed border |
createImageBorder | public static Border createImageBorder(Insets insets, Image image)(Code) | | Creates an image layout. The border is painted using a supplied Image. The image is split into 3x3 regions defined by insets.
The middle regions are tiled for supplying variable width and height of border. Central region is not painted.
The instance can be shared by multiple widgets.
Parameters: insets - the border insets Parameters: image - the border image the image border |
createImageBorder | public static Border createImageBorder(Insets borderInsets, Insets imageInsets, Image image)(Code) | | Creates an image layout. The border is painted using a supplied Image. The image is split into 3x3 regions defined by imageInsets.
The middle regions are tiled for supplying variable width and height of border. Central region is not painted.
The insets of the border is specified by borderInsets.
The instance can be shared by multiple widgets.
Parameters: borderInsets - the border insets Parameters: imageInsets - the image insets Parameters: image - the border image the image border |
createLineBorder | public static Border createLineBorder()(Code) | | Creates a line border with default style.
The instance can be shared by multiple widgets.
the line border |
createLineBorder | public static Border createLineBorder(int thickness)(Code) | | Creates a line border with specific thickness. The line is still one pixel but the layout insets are calculated from thickness.
The instance can be shared by multiple widgets.
Parameters: thickness - the border thickness the line border |
createLineBorder | public static Border createLineBorder(int thickness, Color color)(Code) | | Creates a line border with specific thickness and color. The line is still one pixel but the layout insets are calculated from thickness.
The instance can be shared by multiple widgets.
Parameters: thickness - the border thickness Parameters: color - the line color the line border |
createLineBorder | public static Border createLineBorder(int top, int left, int bottom, int right, Color color)(Code) | | Creates a line border with specific insets and color. The line is still one pixel but the layout insets are specified.
The instance can be shared by multiple widgets.
Parameters: top - the top inset Parameters: left - the left inset Parameters: bottom - the bottom inset Parameters: right - the right inset Parameters: color - the line color the line border |
createOpaqueBorder | public static Border createOpaqueBorder(int top, int left, int bottom, int right)(Code) | | Creates an opaque border with specific thickness.
The instance can be shared by multiple widgets.
Parameters: top - the top inset Parameters: left - the left inset Parameters: bottom - the bottom inset Parameters: right - the right inset the empty border |
createResizeBorder | public static Border createResizeBorder(int thickness)(Code) | | Creates a resize border. Usually used as resizing handles for ResizeAction. It renders a bounding rectangle with 8-direction squares.
The instance can be shared by multiple widgets.
Parameters: thickness - the thickness of the border the resize border |
createResizeBorder | public static Border createResizeBorder(int thickness, Color color, boolean outer)(Code) | | Creates a resize border. Usually used as resizing handles for ResizeAction. It renders a bounding rectangle with 8-direction squares.
The instance can be shared by multiple widgets.
Parameters: thickness - the thickness of the border Parameters: color - the border color Parameters: outer - if true, then the rectangle encapsulate the squares too; if false, then the rectangle encapsulates the widget client area only the resize border |
createRoundedBorder | public static Border createRoundedBorder(int arcWidth, int arcHeight, Color fillColor, Color drawColor)(Code) | | Creates an rounded-rectangle border with a specified style. Insets are calculated from arcWidth and arcHeight.
The instance can be shared by multiple widgets.
Parameters: arcWidth - the arc width Parameters: arcHeight - the arc height Parameters: fillColor - the fill color Parameters: drawColor - the draw color the rounded border |
createRoundedBorder | public static Border createRoundedBorder(int arcWidth, int arcHeight, int insetWidth, int insetHeight, Color fillColor, Color drawColor)(Code) | | Creates an rounded-rectangle border with a specified style.
The instance can be shared by multiple widgets.
Parameters: arcWidth - the arc width Parameters: arcHeight - the arc height Parameters: insetWidth - the inset width Parameters: insetHeight - the inset height Parameters: fillColor - the fill color Parameters: drawColor - the draw color the rounded border |
createSwingBorder | public static Border createSwingBorder(Scene scene, javax.swing.border.Border border)(Code) | | Creates a layout from a Swing border.
The instance can be shared by multiple widgets but cannot be used in multiple scenes.
Parameters: scene - the scene where the border is used. Parameters: border - the Swing border the border |
|
|