|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
org.bounce.QLabel
public class QLabel
Extend the JLabel class, this label allows for multiple lines.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JLabel |
---|
JLabel.AccessibleJLabel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JLabel |
---|
labelFor |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
QLabel()
Constructor, calls the super constructor. |
|
QLabel(Icon image)
Constructor, calls the super constructor. |
|
QLabel(Icon image,
int horizontalAlignment)
Constructor, calls the super constructor. |
|
QLabel(String text)
Constructor, calls the super constructor. |
|
QLabel(String text,
Icon image,
int horizontalAlignment)
Constructor, calls the super constructor. |
|
QLabel(String text,
int horizontalAlignment)
Constructor, calls the super constructor. |
Method Summary | |
---|---|
int |
getMaximumLines()
Get the maximum number of lines used for the label text. |
int |
getMinimumLines()
Get the minimum number of lines used for the label text. |
void |
setLines(int lines)
Set the number of lines used for the label text. |
void |
setMaximumLines(int lines)
Sets the maximum number of possible lines on this label. |
void |
setMinimumLines(int lines)
Sets the minimum number of possible lines on this label. |
void |
updateUI()
Sets the look and feel to the Bounce Label UI look and feel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QLabel()
public QLabel(Icon image)
image
- the icon image.public QLabel(Icon image, int horizontalAlignment)
image
- the icon image.horizontalAlignment
- the horizontal alignment.public QLabel(String text)
text
- the label text.public QLabel(String text, Icon image, int horizontalAlignment)
text
- the label text.image
- the icon image.horizontalAlignment
- the horizontal alignment.public QLabel(String text, int horizontalAlignment)
text
- the label text.horizontalAlignment
- the horizontal alignment.Method Detail |
---|
public void updateUI()
updateUI
in class JLabel
public void setMaximumLines(int lines)
lines
- the number of lines.
IllegalArgumentException
- if lines
is smaller than the minimum number of lines.public int getMaximumLines()
public void setMinimumLines(int lines)
lines
- the number of lines.
IllegalArgumentException
- if lines
is bigger than the maximum number of lines.public int getMinimumLines()
public void setLines(int lines)
lines
- the number of lines.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |