|
org.netbeans.api.visual 2.2 | |||||||||
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 |
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 |
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 |
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 |
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 |
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(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 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 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 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, 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 createResizeBorder(int thickness)
thickness
- the thickness of the border
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 createDashedBorder(Color color, int width, int height)
color
- the border colorwidth
- 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 createFancyDashedBorder(Color color, int width, int height)
color
- the border colorwidth
- the inset widthheight
- the inset height
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |