public final class BorderFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Border |
createBevelBorder(boolean raised)
Creates a bevel border.
|
static Border |
createBevelBorder(boolean raised,
Color color)
Creates a bevel border.
|
static Border |
createBevelBorder(boolean raised,
String property,
ResourceTable table)
Creates a bevel border.
|
static Border |
createBevelBorder(boolean raised,
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(Color color,
int width,
int height)
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(Color color,
int width,
int height,
boolean squares)
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(String property,
ResourceTable table,
int width,
int height)
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(String property,
ResourceTable table,
int width,
int height,
boolean squares)
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(String property,
Widget associated,
int width,
int height)
Creates a resize border rendered with dashed stroke.
|
static Border |
createDashedBorder(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(Color color,
int width,
int height)
Deprecated.
use createDashedBorder (color, width, height, true) method instead
|
static Border |
createImageBorder(Insets insets,
Image image)
Creates an image layout.
|
static Border |
createImageBorder(Insets borderInsets,
Insets imageInsets,
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 thickness,
Color color)
Creates a line border with specific thickness and color.
|
static Border |
createLineBorder(int top,
int left,
int bottom,
int right,
Color color)
Creates a line border with specific insets and color.
|
static Border |
createLineBorder(int top,
int left,
int bottom,
int right,
String property,
ResourceTable table)
Creates a line border with specific insets and color.
|
static Border |
createLineBorder(int top,
int left,
int bottom,
int right,
String property,
Widget associated)
Creates a line border with specific insets and color.
|
static Border |
createLineBorder(int thickness,
String property,
ResourceTable table)
Creates a line border with specific thickness and color.
|
static Border |
createLineBorder(int thickness,
String property,
Widget associated)
Creates a line border with specific thickness and color.
|
static Border |
createLineBorder(String property,
ResourceTable table)
Creates a line border with default style.
|
static Border |
createLineBorder(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,
Color color,
boolean outer)
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
String property,
ResourceTable table)
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
String property,
ResourceTable table,
boolean outer)
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
String property,
Widget assocaited)
Creates a resize border.
|
static Border |
createResizeBorder(int thickness,
String property,
Widget associated,
boolean outer)
Creates a resize border.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
Color fillColor,
Color drawColor)
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
int insetWidth,
int insetHeight,
Color fillColor,
Color drawColor)
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
int insetWidth,
int insetHeight,
String fillProperty,
String drawProperty,
ResourceTable table)
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
int insetWidth,
int insetHeight,
String fillProperty,
String drawProperty,
Widget associated)
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
String fillProperty,
String drawProperty,
ResourceTable table)
Creates an rounded-rectangle border with a specified style.
|
static Border |
createRoundedBorder(int arcWidth,
int arcHeight,
String fillProperty,
String drawProperty,
Widget associated)
Creates an rounded-rectangle border with a specified style.
|
static Border |
createSwingBorder(Scene scene,
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, Border border)
scene - the scene where the border is used.border - the Swing borderpublic static Border createLineBorder()
public static Border createLineBorder(String property, Widget associated)
property - the property nameassociated - the widget used to retrieve the resource table.public static Border createLineBorder(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, Color color)
thickness - the border thicknesscolor - the line colorpublic static Border createLineBorder(int thickness, 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, 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, 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, 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, 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, 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, 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, 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(Insets insets, Image image)
insets - the border insetsimage - the border imagepublic static Border createImageBorder(Insets borderInsets, Insets imageInsets, Image image)
borderInsets - the border insetsimageInsets - the image insetsimage - the border imagepublic static Border createRoundedBorder(int arcWidth, int arcHeight, Color fillColor, Color drawColor)
arcWidth - the arc widtharcHeight - the arc heightfillColor - the fill colordrawColor - the draw colorpublic static Border createRoundedBorder(int arcWidth, int arcHeight, String fillProperty, 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, String fillProperty, 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, Color fillColor, 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, String fillProperty, 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, String fillProperty, 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, 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, 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, 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, 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, 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(Color color, int width, int height)
color - the border colorwidth - the inset widthheight - the inset heightpublic static Border createDashedBorder(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(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(Color color, int width, int height, boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - thepublic static Border createDashedBorder(String property, Widget associated, int width, int height, boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - thepublic static Border createDashedBorder(String property, ResourceTable table, int width, int height, boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - thepublic static Border createFancyDashedBorder(Color color, int width, int height)
color - the border colorwidth - the inset widthheight - the inset heightBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.