public interface ILabel
JLabel
.
Provides numerous builder-style utility methods and overrides tool tip creation and placement to return the label's text as tool tip if it's truncated (due to not fitting into its size). Positions tool tips exactly over the label text, uses the label's font for tool tips and also avoids showing empty tool tips.
Modifier and Type | Method and Description |
---|---|
ILabel |
allBorder(int width)
Sets an empty border with the specified width of all sides and returns the label.
|
ILabel |
allBorder(int top,
int left,
int bottom,
int right)
Sets an empty border with the specified widths on all sides and returns the label.
|
javax.swing.JLabel |
asLabel()
Casts this instance to
JLabel . |
ILabel |
boldFont()
Changes the label's font to bold and returns the label.
|
ILabel |
bottomBorder(int bottom)
Sets an empty border with the specified width of the bottom and returns the label.
|
ILabel |
color(java.awt.Color color)
Sets the specified color as the foreground color and returns the label.
|
ILabel |
horizontalBorder(int leftRight)
Sets an empty border with the specified width of the left and right and returns the label.
|
ILabel |
italicFont()
Changes the label's font to italic and returns the label.
|
ILabel |
leftBorder(int left)
Sets an empty border with the specified width of the left and returns the label.
|
ILabel |
rightBorder(int right)
Sets an empty border with the specified width of the right and returns the label.
|
ILabel |
topBorder(int top)
Sets an empty border with the specified width of the top and returns the label.
|
ILabel |
verticalBorder(int topBottom)
Sets an empty border with the specified width of the bottom and top and returns the label.
|
javax.swing.JLabel asLabel()
JLabel
.this
as a JLabel
ILabel allBorder(int width)
width
- width of all sidesthis
for chainingILabel leftBorder(int left)
left
- width of the leftthis
for chainingILabel rightBorder(int right)
right
- width of the rightthis
for chainingILabel topBorder(int top)
top
- width of the topthis
for chainingILabel bottomBorder(int bottom)
bottom
- width of the bottomthis
for chainingILabel allBorder(int top, int left, int bottom, int right)
top
- width of the topleft
- width of the leftbottom
- width of the bottomright
- width of the rightthis
for chainingILabel verticalBorder(int topBottom)
topBottom
- width of the top and bottomthis
for chainingILabel horizontalBorder(int leftRight)
leftRight
- width of the left and rightthis
for chainingILabel color(java.awt.Color color)
color
- color to be set as the foreground colorthis
for chainingILabel boldFont()
this
for chainingILabel italicFont()
this
for chaining
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.