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

public final Class XIconWindow

extends XBaseWindow
Class Inheritance
Imports
java.awt.AlphaComposite, .Dimension, .Graphics, .Graphics2D, .GraphicsConfiguration, .Image, .Rectangle, .SystemColor, java.awt.image.BufferedImage, .ColorModel, .DataBuffer, .DataBufferByte, .DataBufferInt, .DataBufferUShort, .ImageObserver, .WritableRaster, sun.awt.IconInfo, sun.awt.image.ImageRepresentation, .ToolkitImage, sun.util.logging.PlatformLogger

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv long
pack-priv long
pack-priv int
private static final PlatformLogger
pack-priv XDecoratedPeer
pack-priv Dimension
Inherited from sun.awt.X11.XBaseWindow:
BACKGROUND_PIXMAPBACKING_STOREBIT_GRAVITYBORDER_PIXELBOUNDSchildrenCOLORMAPDEF_LOCATIONDELAYEDDEPTHEMBEDDEDembeddedEVENT_MASKheightmappedmaxBoundsMIN_SIZEOVERRIDE_REDIRECTPARENTPARENT_WINDOWparentWindowSAVE_UNDERstate_lockVALUE_MASKVISIBLEvisibleVISUALVISUAL_CLASSwidthwindowxy

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private Dimension
calcIconSize(int widthHint, int heightHint)

pack-priv Dimension
getIconSize(int widthHint, int heightHint)

Returns: preferred icon size calculated from specific icon

private XIconSize[]
getIconSizes()

Returns: array of XIconsSize structures, caller must free this array after use.

pack-priv void
instantPreInit(XCreateWindowParams params)

Overrides sun.awt.X11.XBaseWindow.instantPreInit.

Called for delayed inits during construction

pack-priv static int
paddedwidth(int number, int boundary)

pack-priv void
replaceImage(Image img)

This function replaces iconPixmap handle with new image It does not replace window's hints, so it should be called only from setIconImage()

pack-priv void
replaceMask(Image img)

This function replaces iconPixmap handle with new image It does not replace window's hints, so it should be called only from setIconImage()

pack-priv void
pack-priv void
setIconImages(List<IconInfo> icons)

Sets icon image by selecting one of the images from the list.

Inherited from sun.awt.X11.XBaseWindow:
awtLockawtLockNotifyAllawtLockWaitawtUnlockcheckInitialisedcheckParamscontainscontainsGlobaldestroydispatchEventdispatchToWindowflushgetAbsoluteXgetAbsoluteYgetBoundsgetChildrengetContentWindowgetContentXWindowgetDelayedParamsgetHeightgetHintsgetParentWindowgetScalegetScreengetScreenNumbergetScreenOfWindowgetSizegetStateLockgetToplevelXWindowgetWidthgetWindowgetWMHintsgetWMNamegetXgetXAWTRootWindowgetYgrabInputhandleButtonPressReleasehandleClientMessagehandleConfigureNotifyEventhandleCreateNotifyhandleDestroyNotifyhandleExposeEventhandleKeyPresshandleKeyReleasehandleMapNotifyEventhandleMotionNotifyhandlePropertyNotifyhandleReparentNotifyEventhandleUnmapNotifyEventhandleVisibilityEventhandleXCrossingEventinitinitinitClientLeaderisDisposedisEventDisabledisFullReleaseisGrabbedEventisMappedisMinSizeSetisVisiblepostInitpostInitpreInitpreInitscaleDownscaleUpsetDisposedsetSizeHintssetWMClasssetWMHintstoFronttoGlobaltoGlobaltoGlobaltoLocaltoLocaltoOtherWindowtoStringungrabInputungrabInputImplupdateWMNamexGetInputFocusxRequestFocusxRequestFocusxSetBoundsxSetBoundsxSetVisible

Field Detail

iconHeightback to summary
pack-priv int iconHeight
iconMaskback to summary
pack-priv long iconMask
iconPixmapback to summary
pack-priv long iconPixmap
iconWidthback to summary
pack-priv int iconWidth
logback to summary
private static final PlatformLogger log

Hides sun.awt.X11.XBaseWindow.log.

parentback to summary
pack-priv XDecoratedPeer parent
sizeback to summary
pack-priv Dimension size

Constructor Detail

XIconWindowback to summary
pack-priv XIconWindow(XDecoratedPeer parent)

Method Detail

calcIconSizeback to summary
private Dimension calcIconSize(int widthHint, int heightHint)
getIconSizeback to summary
pack-priv Dimension getIconSize(int widthHint, int heightHint)
Returns:Dimension

preferred icon size calculated from specific icon

getIconSizesback to summary
private XIconSize[] getIconSizes()
Returns:XIconSize[]

array of XIconsSize structures, caller must free this array after use.

instantPreInitback to summary
pack-priv void instantPreInit(XCreateWindowParams params)

Overrides sun.awt.X11.XBaseWindow.instantPreInit.

Doc from sun.awt.X11.XBaseWindow.instantPreInit.

Called for delayed inits during construction

Annotations
@Override
paddedwidthback to summary
pack-priv static int paddedwidth(int number, int boundary)
replaceImageback to summary
pack-priv void replaceImage(Image img)

This function replaces iconPixmap handle with new image It does not replace window's hints, so it should be called only from setIconImage()

replaceMaskback to summary
pack-priv void replaceMask(Image img)

This function replaces iconPixmap handle with new image It does not replace window's hints, so it should be called only from setIconImage()

setIconImageback to summary
pack-priv void setIconImage(Image img)
setIconImagesback to summary
pack-priv void setIconImages(List<IconInfo> icons)

Sets icon image by selecting one of the images from the list. The selected image is the one having the best matching size.