public final class BorderFactory
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static Border |
createBevelBorder(boolean raised) |
Creates a bevel border.
|
static Border |
createBevelBorder(boolean raised,
java.awt.Color color) |
Creates a bevel border.
|
static Border |
createBevelBorder(boolean raised,
java.lang.String property,
ResourceTable table) |
Creates a bevel border.
|
static Border |
createBevelBorder(boolean raised,
java.lang.String property,
Widget associated) |
Creates a bevel border.
|
static Border |
createCompositeBorder(Border... borders) |
Creates a composite border that consists of a list of specified borders - one embedded to another.
|
static Border |
createDashedBorder(java.awt.Color color,
int width,
int height) |
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(java.awt.Color color,
int width,
int height,
boolean squares) |
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(java.lang.String property,
ResourceTable table,
int width,
int height) |
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(java.lang.String property,
ResourceTable table,
int width,
int height,
boolean squares) |
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(java.lang.String property,
Widget associated,
int width,
int height) |
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(java.lang.String property,
Widget associated,
int width,
int height,
boolean squares) |
Creates a resize border rendered with dashed stroke.
|
static Border |
createEmptyBorder() |
Creates an default empty border with 0px layout.
|
static Border |
createEmptyBorder(int thickness) |
Creates an empty border with specific thickness.
|
static Border |
createEmptyBorder(int horizontal,
int vertical) |
Creates an empty border with specific thickness.
|
static Border |
createEmptyBorder(int top,
int left,
int bottom,
int right) |
Creates an empty border with specific thickness.
|
static Border |
createFancyDashedBorder(java.awt.Color color,
int width,
int height) |
Deprecated.
use createDashedBorder (color, width, height, true) method instead
|
static Border |
createImageBorder(java.awt.Insets insets,
java.awt.Image image) |
Creates an image layout.
|
static Border |
createImageBorder(java.awt.Insets borderInsets,
java.awt.Insets imageInsets,
java.awt.Image image) |
Creates an image layout.
|
static Border |
createLineBorder() |
Creates a line border with default style.
|
static Border |
createLineBorder(int thickness) |
Creates a line border with specific thickness.
|
static Border |
createLineBorder(int top,
int left,
int bottom,
int right,
java.awt.Color color) |
Creates a line border with specific insets and color.
|
static Border |
createLineBorder(int top,
int left,
int bottom,
int right,
java.lang.String property,
ResourceTable table) |
Creates a line border with specific insets and color.
|
static Border |
createLineBorder(int top,
int left,
int bottom,
int right,
java.lang.String property,
Widget associated) |
Creates a line border with specific insets and color.
|
static Border |
createLineBorder(int thickness,
java.awt.Color color) |
Creates a line border with specific thickness and color.
|
static Border |
createLineBorder(int thickness,
java.lang.String property,
ResourceTable table) |
Creates a line border with specific thickness and color.
|
static Border |
createLineBorder(int thickness,
java.lang.String property,
Widget associated) |
Creates a line border with specific thickness and color.
|
static Border |
createLineBorder(java.lang.String property,
ResourceTable table) |
Creates a line border with default style.
|
static Border |
createLineBorder(java.lang.String property,
Widget associated) |
Creates a line border with default style.
|
static Border |
createOpaqueBorder(int top,
int left,
int bottom,
int right) |
Creates an opaque border with specific thickness.
|
static Border |
createResizeBorder(int thickness) |
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
java.awt.Color color,
boolean outer) |
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
java.lang.String property,
ResourceTable table) |
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
java.lang.String property,
ResourceTable table,
boolean outer) |
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
java.lang.String property,
Widget assocaited) |
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
java.lang.String property,
Widget associated,
boolean outer) |
Creates a resize border.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
int insetWidth,
int insetHeight,
java.awt.Color fillColor,
java.awt.Color drawColor) |
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
int insetWidth,
int insetHeight,
java.lang.String fillProperty,
java.lang.String drawProperty,
ResourceTable table) |
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
int insetWidth,
int insetHeight,
java.lang.String fillProperty,
java.lang.String drawProperty,
Widget associated) |
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
java.awt.Color fillColor,
java.awt.Color drawColor) |
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
java.lang.String fillProperty,
java.lang.String drawProperty,
ResourceTable table) |
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
java.lang.String fillProperty,
java.lang.String drawProperty,
Widget associated) |
Creates an rounded-rectangle border with a specified style.
|
static Border |
createSwingBorder(Scene scene,
javax.swing.border.Border border) |
Creates a layout from a Swing border.
|
public static Border createEmptyBorder()
public static Border createEmptyBorder(int thickness)
thickness - the border thicknesspublic static Border createEmptyBorder(int horizontal, int vertical)
horizontal - the horizontal thicknessvertical - the vertical thicknesspublic static Border createEmptyBorder(int top, int left, int bottom, int right)
top - the top insetleft - the left insetbottom - the bottom insetright - the right insetpublic static Border createOpaqueBorder(int top, int left, int bottom, int right)
top - the top insetleft - the left insetbottom - the bottom insetright - the right insetpublic static Border createCompositeBorder(Border... borders)
borders - the list of borderspublic static Border createSwingBorder(Scene scene, javax.swing.border.Border border)
scene - the scene where the border is used.border - the Swing borderpublic static Border createLineBorder()
public static Border createLineBorder(java.lang.String property, Widget associated)
property - the property nameassociated - the widget used to retrieve the resource table.public static Border createLineBorder(java.lang.String property, ResourceTable table)
property - the property nametable - the resource table.public static Border createLineBorder(int thickness)
thickness - the border thicknesspublic static Border createLineBorder(int thickness, java.awt.Color color)
thickness - the border thicknesscolor - the line colorpublic static Border createLineBorder(int thickness, java.lang.String property, Widget associated)
thickness - the border thicknessproperty - the property nameassociated - the widget used to retrieve the resource table.public static Border createLineBorder(int thickness, java.lang.String property, ResourceTable table)
thickness - the border thicknessproperty - the property nametable - the resource table.public static Border createLineBorder(int top, int left, int bottom, int right, java.awt.Color color)
top - the top insetleft - the left insetbottom - the bottom insetright - the right insetcolor - the line colorpublic static Border createLineBorder(int top, int left, int bottom, int right, java.lang.String property, Widget associated)
top - the top insetleft - the left insetbottom - the bottom insetright - the right insetproperty - the property nameassociated - the widget used to retrieve the resource table.public static Border createLineBorder(int top, int left, int bottom, int right, java.lang.String property, ResourceTable table)
top - the top insetleft - the left insetbottom - the bottom insetright - the right insetproperty - the property nametable - the resource table.public static Border createBevelBorder(boolean raised)
raised - if true, then it is a raised-bevel border; if false, then it is a lowered-bevel layoutpublic static Border createBevelBorder(boolean raised, java.awt.Color color)
raised - if true, then it is a raised-bevel layout; if false, then it is a lowered-bevel bordercolor - the border colorpublic static Border createBevelBorder(boolean raised, java.lang.String property, ResourceTable table)
raised - if true, then it is a raised-bevel layout; if false, then
it is a lowered-bevel borderproperty - the property nametable - the resource table.public static Border createBevelBorder(boolean raised, java.lang.String property, Widget associated)
raised - if true, then it is a raised-bevel layout; if false, then
it is a lowered-bevel borderproperty - the property nameassociated - the widget used to retrieve the resource table.public static Border createImageBorder(java.awt.Insets insets, java.awt.Image image)
insets - the border insetsimage - the border imagepublic static Border createImageBorder(java.awt.Insets borderInsets, java.awt.Insets imageInsets, java.awt.Image image)
borderInsets - the border insetsimageInsets - the image insetsimage - the border imagepublic static Border createRoundedBorder(int arcWidth, int arcHeight, java.awt.Color fillColor, java.awt.Color drawColor)
arcWidth - the arc widtharcHeight - the arc heightfillColor - the fill colordrawColor - the draw colorpublic static Border createRoundedBorder(int arcWidth, int arcHeight, java.lang.String fillProperty, java.lang.String drawProperty, Widget associated)
arcWidth - the arc widtharcHeight - the arc heightfillProperty - the property name for the fill colordrawProperty - the property name for the draw colorassociated - the widget used to retrieve the resource table.public static Border createRoundedBorder(int arcWidth, int arcHeight, java.lang.String fillProperty, java.lang.String drawProperty, ResourceTable table)
arcWidth - the arc widtharcHeight - the arc heightfillProperty - the property name for the fill colordrawProperty - the property name for the draw colortable - the resource table.public static Border createRoundedBorder(int arcWidth, int arcHeight, int insetWidth, int insetHeight, java.awt.Color fillColor, java.awt.Color drawColor)
arcWidth - the arc widtharcHeight - the arc heightinsetWidth - the inset widthinsetHeight - the inset heightfillColor - the fill colordrawColor - the draw colorpublic static Border createRoundedBorder(int arcWidth, int arcHeight, int insetWidth, int insetHeight, java.lang.String fillProperty, java.lang.String drawProperty, ResourceTable table)
arcWidth - the arc widtharcHeight - the arc heightinsetWidth - the inset widthinsetHeight - the inset heightfillProperty - the property name for the fill colordrawProperty - the property name for the draw colortable - the resource table.public static Border createRoundedBorder(int arcWidth, int arcHeight, int insetWidth, int insetHeight, java.lang.String fillProperty, java.lang.String drawProperty, Widget associated)
arcWidth - the arc widtharcHeight - the arc heightinsetWidth - the inset widthinsetHeight - the inset heightfillProperty - the property name for the fill colordrawProperty - the property name for the draw colorassociated - the widget used to retrieve the resource table.public static Border createResizeBorder(int thickness)
thickness - the thickness of the borderpublic static Border createResizeBorder(int thickness, java.lang.String property, Widget assocaited)
thickness - the thickness of the borderproperty - the property name for the border colorassociated - the widget used to retrieve the resource table.public static Border createResizeBorder(int thickness, java.lang.String property, ResourceTable table)
thickness - the thickness of the borderdrawProperty - the property name for the border colortable - the resource table.public static Border createResizeBorder(int thickness, java.awt.Color color, boolean outer)
thickness - the thickness of the bordercolor - the border colorouter - if true, then the rectangle encapsulate the squares too; if false, then the rectangle encapsulates the widget client area onlypublic static Border createResizeBorder(int thickness, java.lang.String property, Widget associated, boolean outer)
thickness - the thickness of the borderproperty - the property name for the border colorassociated - the widget used to retrieve the resource table.outer - if true, then the rectangle encapsulate the squares too; if false, then the rectangle encapsulates the widget client area onlypublic static Border createResizeBorder(int thickness, java.lang.String property, ResourceTable table, boolean outer)
thickness - the thickness of the borderproperty - the property name for the border colortable - the resource table.outer - if true, then the rectangle encapsulate the squares too; if false, then the rectangle encapsulates the widget client area onlypublic static Border createDashedBorder(java.awt.Color color, int width, int height)
color - the border colorwidth - the inset widthheight - the inset heightpublic static Border createDashedBorder(java.lang.String property, Widget associated, int width, int height)
property - the property name for the border colorassociated - the widget used to retrieve the resource table.width - the inset widthheight - the inset heightpublic static Border createDashedBorder(java.lang.String property, ResourceTable table, int width, int height)
property - the property name for the border colortable - the resource table.width - the inset widthheight - the inset heightpublic static Border createDashedBorder(java.awt.Color color, int width, int height, boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - thepublic static Border createDashedBorder(java.lang.String property, Widget associated, int width, int height, boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - thepublic static Border createDashedBorder(java.lang.String property, ResourceTable table, int width, int height, boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - thepublic static Border createFancyDashedBorder(java.awt.Color color, int width, int height)
color - the border colorwidth - the inset widthheight - the inset heightBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.