public class MultiLineLabel extends Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
CENTER |
static int |
FLAT |
static int |
LEFT |
static int |
RAISED |
static int |
RIGHT |
static int |
SUNKEN |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
MultiLineLabel() |
MultiLineLabel(String text) |
MultiLineLabel(String text,
int align) |
MultiLineLabel(String text,
int align,
int relief) |
Modifier and Type | Method and Description |
---|---|
int |
getAlignment() |
int |
getMarginHeight() |
int |
getMarginWidth() |
Dimension |
getMinimumSize() |
Dimension |
getPreferredSize() |
int |
getRelief() |
String |
getText() |
boolean |
isOpaque() |
void |
paint(Graphics g) |
void |
setAlignment(int align) |
void |
setBackground(Color color) |
void |
setFont(Font font) |
void |
setForeground(Color color) |
void |
setMarginHeight(int marginHeight) |
void |
setMarginWidth(int marginWidth) |
void |
setOpaque(boolean opaque) |
void |
setRelief(int relief) |
void |
setText(String text) |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public static final int CENTER
public static final int LEFT
public static final int RIGHT
public static final int FLAT
public static final int SUNKEN
public static final int RAISED
public MultiLineLabel()
public MultiLineLabel(String text)
public MultiLineLabel(String text, int align)
public MultiLineLabel(String text, int align, int relief)
public void setOpaque(boolean opaque)
public void setForeground(Color color)
setForeground
in class Component
public void setBackground(Color color)
setBackground
in class Component
public void setText(String text)
public String getText()
public void setAlignment(int align)
public int getAlignment()
public void setRelief(int relief)
public int getRelief()
public void setMarginWidth(int marginWidth)
public int getMarginWidth()
public void setMarginHeight(int marginHeight)
public int getMarginHeight()
public Dimension getMinimumSize()
getMinimumSize
in class Component
public Dimension getPreferredSize()
getPreferredSize
in class Component