|
org.netbeans.api.visual 2.23.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.visual.border.BorderFactory
public final class BorderFactory
This class is a factory of all built-in implementation of borders. Instances of built-in borders can be shared by multiple widgets.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Border createEmptyBorder()
public static Border createEmptyBorder(int thickness)
thickness - the border thickness
public static Border createEmptyBorder(int horizontal,
int vertical)
horizontal - the horizontal thicknessvertical - the vertical thickness
public static Border createEmptyBorder(int top,
int left,
int bottom,
int right)
top - the top insetleft - the left insetbottom - the bottom insetright - the right inset
public static Border createOpaqueBorder(int top,
int left,
int bottom,
int right)
top - the top insetleft - the left insetbottom - the bottom insetright - the right inset
public static Border createCompositeBorder(Border... borders)
borders - the list of borders
public static Border createSwingBorder(Scene scene,
Border border)
scene - the scene where the border is used.border - the Swing border
public 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 thickness
public static Border createLineBorder(int thickness,
Color color)
thickness - the border thicknesscolor - the line color
public 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 color
public 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 layout
public 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 color
public 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 image
public static Border createImageBorder(Insets borderInsets,
Insets imageInsets,
Image image)
borderInsets - the border insetsimageInsets - the image insetsimage - the border image
public static Border createRoundedBorder(int arcWidth,
int arcHeight,
Color fillColor,
Color drawColor)
arcWidth - the arc widtharcHeight - the arc heightfillColor - the fill colordrawColor - the draw color
public 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 color
public 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 border
public 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 only
public 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 only
public 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 only
public static Border createDashedBorder(Color color,
int width,
int height)
color - the border colorwidth - the inset widthheight - the inset height
public 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 height
public 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 height
public static Border createDashedBorder(Color color,
int width,
int height,
boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - the
public static Border createDashedBorder(String property,
Widget associated,
int width,
int height,
boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - the
public static Border createDashedBorder(String property,
ResourceTable table,
int width,
int height,
boolean squares)
color - the border colorwidth - the inset widthheight - the inset heightsquares - the
public static Border createFancyDashedBorder(Color color,
int width,
int height)
color - the border colorwidth - the inset widthheight - the inset height
|
org.netbeans.api.visual 2.23.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||