public interface LabelPeer extends ComponentPeer
Label
.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
Modifier and Type | Method and Description |
---|---|
void |
setAlignment(int alignment)
Sets the alignment of the label text.
|
void |
setText(String label)
Sets the text to be displayed on the label.
|
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
void setText(String label)
label
- the text to be displayed on the labelLabel.setText(java.lang.String)
void setAlignment(int alignment)
alignment
- the alignment of the label textLabel.setAlignment(int)
,
Label.CENTER
,
Label.RIGHT
,
Label.LEFT
Dracula Javadoc Sample, Made with Allan Im.