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

public final Class XPropertyCache

extends Object
Class Inheritance
Imports
java.util.*

Implements abstract X window property caching mechanism. The caching is performed using storeCache method, the cached data can be retrieved using getCacheEntry method.

Note

current caching is disabled because of the big variate of uncovered access to properties/changes of properties. Once the access to properties is rewritten using general mechanisms, caching will be enabled.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static Map<Long, Map<XAtom, XPropertyCache.PropertyCacheEntry>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
clearCache(long window)

public static void
clearCache(long window, XAtom property)

public static XPropertyCache.PropertyCacheEntry
getCacheEntry(long window, XAtom property)

public static boolean
isCached(long window, XAtom property)

public static boolean
public static void
storeCache(XPropertyCache.PropertyCacheEntry entry, long window, XAtom property)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

windowToMapback to summary
private static Map<Long, Map<XAtom, XPropertyCache.PropertyCacheEntry>> windowToMap

Constructor Detail

XPropertyCacheback to summary
public XPropertyCache()

Method Detail

clearCacheback to summary
public static void clearCache(long window)
clearCacheback to summary
public static void clearCache(long window, XAtom property)
getCacheEntryback to summary
public static XPropertyCache.PropertyCacheEntry getCacheEntry(long window, XAtom property)
isCachedback to summary
public static boolean isCached(long window, XAtom property)
isCachingSupportedback to summary
public static boolean isCachingSupported()
storeCacheback to summary
public static void storeCache(XPropertyCache.PropertyCacheEntry entry, long window, XAtom property)
sun.awt.X11 back to summary

pack-priv final Class XPropertyCache.PropertyCacheEntry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final long
private final long
private final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
PropertyCacheEntry(int format, int numberOfItems, long bytesAfter, long data, int dataLength)

Method Summary

Modifier and TypeMethod and Description
public long
public long
public int
public int
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytesAfterback to summary
private final long bytesAfter
databack to summary
private final long data
dataLengthback to summary
private final int dataLength
formatback to summary
private final int format
numberOfItemsback to summary
private final int numberOfItems

Constructor Detail

PropertyCacheEntryback to summary
public PropertyCacheEntry(int format, int numberOfItems, long bytesAfter, long data, int dataLength)

Method Detail

getBytesAfterback to summary
public long getBytesAfter()
getDataback to summary
public long getData()
getDataLengthback to summary
public int getDataLength()
getFormatback to summary
public int getFormat()
getNumberOfItemsback to summary
public int getNumberOfItems()