|
||||||||||
| 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
com.github.croesch.micro_debug.gui.components.basic.MDLabel
public class MDLabel
An extension of JLabel that contains some default behavior that not each client should have to implement.
| 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 | |
|---|---|
MDLabel(String name)
Constructs a MDLabel with the given name. |
|
MDLabel(String name,
Icon image)
Constructs a MDLabel with the given name and the given image. |
|
MDLabel(String name,
Icon image,
int horizontalAlignment)
Constructs a MDLabel with the given name, the given image and the horizontal alignment as specified. |
|
MDLabel(String name,
Object text)
Constructs a MDLabel with the given name and the given text. |
|
MDLabel(String name,
Object text,
Icon image,
int horizontalAlignment)
Constructs a MDLabel with the given name, the given text, the given image and the horizontal alignment as
specified. |
|
MDLabel(String name,
Object text,
int horizontalAlignment)
Constructs a MDLabel with the given name, the given text and the horizontal alignment as specified. |
|
| Method Summary | |
|---|---|
void |
invert()
Inverts the background color of this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MDLabel(String name,
Object text)
MDLabel with the given name and the given text.
name - the name of this MDLabel.text - the Object thats String representation will be set as the text of the labelComponent.setName(String)
public MDLabel(String name,
Icon image,
int horizontalAlignment)
MDLabel with the given name, the given image and the horizontal alignment as specified.
name - the name of this MDLabel.image - the image to be displayed by the labelhorizontalAlignment - the horizontal alignment of this label, one of the following:
SwingConstants.LEFT, SwingConstants.CENTER,
SwingConstants.RIGHT, SwingConstants.LEADING or
SwingConstants.TRAILING
public MDLabel(String name,
Icon image)
MDLabel with the given name and the given image.
name - the name of this MDLabel.image - the image to be displayed by the label
public MDLabel(String name,
Object text,
Icon image,
int horizontalAlignment)
MDLabel with the given name, the given text, the given image and the horizontal alignment as
specified.
name - the name of this MDLabel.text - the Object thats String representation will be set as the text of the labelimage - the image to be displayed by the labelhorizontalAlignment - the horizontal alignment of this label, one of the following:
SwingConstants.LEFT, SwingConstants.CENTER,
SwingConstants.RIGHT, SwingConstants.LEADING or
SwingConstants.TRAILING
public MDLabel(String name,
Object text,
int horizontalAlignment)
MDLabel with the given name, the given text and the horizontal alignment as specified.
name - the name of this MDLabel.text - the Object thats String representation will be set as the text of the labelhorizontalAlignment - the horizontal alignment of this label, one of the following:
SwingConstants.LEFT, SwingConstants.CENTER,
SwingConstants.RIGHT, SwingConstants.LEADING or
SwingConstants.TRAILINGpublic MDLabel(String name)
MDLabel with the given name.
name - the name of this MDLabel.| Method Detail |
|---|
public final void invert()
invert in interface IInvertable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||