javax.swing.border
11 classes of the module java.desktop.
Load them with:
using {
"javax.swing.border"
}
AbstractBorder#
abstract · extends Object · javax.swing.border.AbstractBorder
Implements: Border, Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getBaseline | getBaseline(c,width,height) | int getBaseline(Component c, int width, int height) |
getBaselineResizeBehavior | getBaselineResizeBehavior(c) | BaselineResizeBehavior getBaselineResizeBehavior(Component c) |
getBorderInsets | getBorderInsets(c)getBorderInsets([c,insets])getBorderInsets([ :c = v, :insets = v ]) | Insets getBorderInsets(Component c)Insets getBorderInsets(Component c, Insets insets) |
getInteriorRectangle | getInteriorRectangle([c,x,y,width,height])getInteriorRectangle([ :c = v, :x = v, :y = v, :width = v, :height = v ])getInteriorRectangle([c,b,x,y,width,height])getInteriorRectangle([ :c = v, :b = v, :x = v, :y = v, :width = v, :height = v ]) | Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height)static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height) |
isBorderOpaque | isBorderOpaque() | boolean isBorderOpaque() |
paintBorder | paintBorder(c,g,x,y,width,height) | void paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
The methods and fields of Object are inherited.
BevelBorder#
class · extends AbstractBorder · javax.swing.border.BevelBorder
Constructors
new BevelBorder(int bevelType) |
new BevelBorder(int bevelType, Color highlight, Color shadow) |
new BevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor) |
Ring: new BevelBorder(args) uses the constructor with the fewest parameters (at least one); new BevelBorder makes the object with the constructor without parameters; the others: (new BevelBorder).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RAISED | int | constant · static | o.RAISED |
LOWERED | int | constant · static | o.LOWERED |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getHighlightInnerColor | @getHighlightInnerColor(c) | Color getHighlightInnerColor(Component c) |
@getHighlightOuterColor | @getHighlightOuterColor(c) | Color getHighlightOuterColor(Component c) |
@getShadowInnerColor | @getShadowInnerColor(c) | Color getShadowInnerColor(Component c) |
@getShadowOuterColor | @getShadowOuterColor(c) | Color getShadowOuterColor(Component c) |
getBevelType | getBevelType() | int getBevelType() |
getHighlightInnerColor | getHighlightInnerColor() | Color getHighlightInnerColor() |
getHighlightOuterColor | getHighlightOuterColor() | Color getHighlightOuterColor() |
getShadowInnerColor | getShadowInnerColor() | Color getShadowInnerColor() |
getShadowOuterColor | getShadowOuterColor() | Color getShadowOuterColor() |
The methods and fields of AbstractBorder are inherited.
Border#
interface · javax.swing.border.Border
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getBorderInsets | getBorderInsets(c) | Insets getBorderInsets(Component c) |
isBorderOpaque | isBorderOpaque() | boolean isBorderOpaque() |
paintBorder | paintBorder(c,g,x,y,width,height) | void paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
CompoundBorder#
class · extends AbstractBorder · javax.swing.border.CompoundBorder
Constructors
new CompoundBorder() |
new CompoundBorder(Border outsideBorder, Border insideBorder) |
Ring: new CompoundBorder(args) uses the constructor with the fewest parameters (at least one); new CompoundBorder makes the object with the constructor without parameters; the others: (new CompoundBorder).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getInsideBorder | getInsideBorder() | Border getInsideBorder() |
getOutsideBorder | getOutsideBorder() | Border getOutsideBorder() |
The methods and fields of AbstractBorder are inherited.
EmptyBorder#
class · extends AbstractBorder · javax.swing.border.EmptyBorder
Implements: Serializable
Constructors
new EmptyBorder(Insets borderInsets) |
new EmptyBorder(int top, int left, int bottom, int right) |
Ring: new EmptyBorder(args) uses the constructor with the fewest parameters (at least one); new EmptyBorder makes the object with the constructor without parameters; the others: (new EmptyBorder).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getBorderInsets | @getBorderInsets(c)@getBorderInsets([c,insets])@getBorderInsets([ :c = v, :insets = v ]) | Insets getBorderInsets(Component c)Insets getBorderInsets(Component c, Insets insets) |
getBorderInsets | getBorderInsets() | Insets getBorderInsets() |
The methods and fields of AbstractBorder are inherited.
EtchedBorder#
class · extends AbstractBorder · javax.swing.border.EtchedBorder
Constructors
new EtchedBorder() |
new EtchedBorder(int etchType) |
new EtchedBorder(Color highlight, Color shadow) |
new EtchedBorder(int etchType, Color highlight, Color shadow) |
Ring: new EtchedBorder(args) uses the constructor with the fewest parameters (at least one); new EtchedBorder makes the object with the constructor without parameters; the others: (new EtchedBorder).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RAISED | int | constant · static | o.RAISED |
LOWERED | int | constant · static | o.LOWERED |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getHighlightColor | @getHighlightColor(c) | Color getHighlightColor(Component c) |
@getShadowColor | @getShadowColor(c) | Color getShadowColor(Component c) |
getEtchType | getEtchType() | int getEtchType() |
getHighlightColor | getHighlightColor() | Color getHighlightColor() |
getShadowColor | getShadowColor() | Color getShadowColor() |
The methods and fields of AbstractBorder are inherited.
LineBorder#
class · extends AbstractBorder · javax.swing.border.LineBorder
Constructors
new LineBorder(Color color) |
new LineBorder(Color color, int thickness) |
new LineBorder(Color color, int thickness, boolean roundedCorners) |
Ring: new LineBorder(args) uses the constructor with the fewest parameters (at least one); new LineBorder makes the object with the constructor without parameters; the others: (new LineBorder).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
createBlackLineBorder | createBlackLineBorder() | static Border createBlackLineBorder() |
createGrayLineBorder | createGrayLineBorder() | static Border createGrayLineBorder() |
getLineColor | getLineColor() | Color getLineColor() |
getRoundedCorners | getRoundedCorners() | boolean getRoundedCorners() |
getThickness | getThickness() | int getThickness() |
The methods and fields of AbstractBorder are inherited.
MatteBorder#
class · extends EmptyBorder · javax.swing.border.MatteBorder
Constructors
new MatteBorder(Icon tileIcon) |
new MatteBorder(Insets borderInsets, Icon tileIcon) |
new MatteBorder(Insets borderInsets, Color matteColor) |
new MatteBorder(int top, int left, int bottom, int right, Icon tileIcon) |
new MatteBorder(int top, int left, int bottom, int right, Color matteColor) |
Ring: new MatteBorder(args) uses the constructor with the fewest parameters (at least one); new MatteBorder makes the object with the constructor without parameters; the others: (new MatteBorder).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getMatteColor | getMatteColor() | Color getMatteColor() |
getTileIcon | getTileIcon() | Icon getTileIcon() |
The methods and fields of EmptyBorder are inherited.
SoftBevelBorder#
class · extends BevelBorder · javax.swing.border.SoftBevelBorder
Constructors
new SoftBevelBorder(int bevelType) |
new SoftBevelBorder(int bevelType, Color highlight, Color shadow) |
new SoftBevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor) |
Ring: new SoftBevelBorder(args) uses the constructor with the fewest parameters (at least one); new SoftBevelBorder makes the object with the constructor without parameters; the others: (new SoftBevelBorder).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of BevelBorder are inherited.
StrokeBorder#
class · extends AbstractBorder · javax.swing.border.StrokeBorder
Constructors
new StrokeBorder(BasicStroke stroke) |
new StrokeBorder(BasicStroke stroke, Paint paint) |
Ring: new StrokeBorder(args) uses the constructor with the fewest parameters (at least one); new StrokeBorder makes the object with the constructor without parameters; the others: (new StrokeBorder).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getPaint | getPaint() | Paint getPaint() |
getStroke | getStroke() | BasicStroke getStroke() |
The methods and fields of AbstractBorder are inherited.
TitledBorder#
class · extends AbstractBorder · javax.swing.border.TitledBorder
Constructors
new TitledBorder(String title) |
new TitledBorder(Border border) |
new TitledBorder(Border border, String title) |
new TitledBorder(Border border, String title, int titleJustification, int titlePosition) |
new TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont) |
new TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) |
Ring: new TitledBorder(args) uses the constructor with the fewest parameters (at least one); new TitledBorder makes the object with the constructor without parameters; the others: (new TitledBorder).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DEFAULT_POSITION | int | constant · static | o.DEFAULT_POSITION |
ABOVE_TOP | int | constant · static | o.ABOVE_TOP |
TOP | int | constant · static | o.TOP |
BELOW_TOP | int | constant · static | o.BELOW_TOP |
ABOVE_BOTTOM | int | constant · static | o.ABOVE_BOTTOM |
BOTTOM | int | constant · static | o.BOTTOM |
BELOW_BOTTOM | int | constant · static | o.BELOW_BOTTOM |
DEFAULT_JUSTIFICATION | int | constant · static | o.DEFAULT_JUSTIFICATION |
LEFT | int | constant · static | o.LEFT |
CENTER | int | constant · static | o.CENTER |
RIGHT | int | constant · static | o.RIGHT |
LEADING | int | constant · static | o.LEADING |
TRAILING | int | constant · static | o.TRAILING |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getBorder | getBorder() | Border getBorder() |
getMinimumSize | getMinimumSize(c) | Dimension getMinimumSize(Component c) |
getTitle | getTitle() | String getTitle() |
getTitleColor | getTitleColor() | Color getTitleColor() |
getTitleFont | getTitleFont() | Font getTitleFont() |
getTitleJustification | getTitleJustification() | int getTitleJustification() |
getTitlePosition | getTitlePosition() | int getTitlePosition() |
setBorder | setBorder(border) | void setBorder(Border border) |
setTitle | setTitle(title) | void setTitle(String title) |
setTitleColor | setTitleColor(titleColor) | void setTitleColor(Color titleColor) |
setTitleFont | setTitleFont(titleFont) | void setTitleFont(Font titleFont) |
setTitleJustification | setTitleJustification(titleJustification) | void setTitleJustification(int titleJustification) |
setTitlePosition | setTitlePosition(titlePosition) | void setTitlePosition(int titlePosition) |
The methods and fields of AbstractBorder are inherited.