APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

pack-priv final Class XLabelPeer

extends XComponentPeer
implements LabelPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.LabelPeer, java.awt.peer.ComponentPeer
Imports
java.awt.*, java.awt.peer.*

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv FontMetrics
pack-priv String
pack-priv Font
pack-priv static final int
TEXT_XPAD

Create the label

pack-priv static final int
Inherited from sun.awt.X11.XComponentPeer:
backgroundBACKGROUND_COLORbHasFocusboundsOperationdarkShadowfontforegroundFOREGROUND_COLORHIGHLIGHT_COLORisLayoutinglightShadowpaintPendingselectColorSHADOW_COLORsystemColors

Constructor Summary

AccessConstructor and Description
pack-priv
XLabelPeer(Label target)

Method Summary

Modifier and TypeMethod and Description
pack-priv FontMetrics
public Dimension
pack-priv void
paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

Paint the label

pack-priv void
preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XComponentPeer.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

public void
setAlignment(final int alignment)

Implements java.awt.peer.LabelPeer.setAlignment.

Sets the alignment of the label text.

public void
setText(String label)

Implements java.awt.peer.LabelPeer.setText.

Sets the text to be displayed on the label.

Inherited from sun.awt.X11.XComponentPeer:
addDropTargetapplyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdraw3DOvaldraw3DOvaldraw3DRectdraw3DRectdrawMotif3DRectdrawScrollbarendLayoutendValidateflipfocusGainedfocusLostgetBackBuffergetBackBufferCapsgetFontgetFontMetricsgetGraphicsgetGUIcolorsgetInsetsgetParentTopLevelgetPeerBackgroundgetPeerFontgetPeerForegroundgetPeerSizegetPreferredSizegetRGBvalsgetSystemColorsgetWinBackgroundhandleEventhandleF10JavaKeyEventhandleJavaFocusEventhandleJavaInputMethodEventhandleJavaKeyEventhandleJavaMouseEventhandleJavaMouseWheelEventhandleJavaWindowFocusEventhandlesWheelScrollinghasFocushideisEnabledisEventDisabledisFocusableisInitialReshapeisObscuredisPaintPendingisReparentSupportedlayoutnotifyTextComponentChangeoperationToStringpaintpostInitprintpSetCursorpSetCursorremoveDropTargetreparentrequestFocusreshapesetBackgroundsetBoundssetBoundsOperationsetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsDataupdateMotifColorswrapInSequenced

Field Detail

alignmentback to summary
pack-priv int alignment
cachedFontMetricsback to summary
pack-priv FontMetrics cachedFontMetrics
labelback to summary
pack-priv String label
oldfontback to summary
pack-priv Font oldfont
TEXT_XPADback to summary
pack-priv static final int TEXT_XPAD

Create the label

TEXT_YPADback to summary
pack-priv static final int TEXT_YPAD

Constructor Detail

XLabelPeerback to summary
pack-priv XLabelPeer(Label target)

Method Detail

getFontMetricsback to summary
pack-priv FontMetrics getFontMetrics()
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Minimum size.

Annotations
@Override
paintPeerback to summary
pack-priv void paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

Paint the label

Annotations
@Override
preInitback to summary
pack-priv void preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XComponentPeer.preInit.

Doc from sun.awt.X11.XBaseWindow.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

Annotations
@Override
setAlignmentback to summary
public void setAlignment(final int alignment)

Implements java.awt.peer.LabelPeer.setAlignment.

Doc from java.awt.peer.LabelPeer.setAlignment.

Sets the alignment of the label text.

Annotations
@Override
setTextback to summary
public void setText(String label)

Implements java.awt.peer.LabelPeer.setText.

Doc from java.awt.peer.LabelPeer.setText.

Sets the text to be displayed on the label.

Annotations
@Override