Constructors
YxyDiagramCache
#Create a new Yxy diagram cache.
Properties
AutoCancelRendering
Gets or sets whether high quality texture rendering will be cancelled automatically if a new texture is requested.
CacheLimit
Gets or sets the cache size limit. If the number of cached textures exceeds this limit the cache will be emptied entirely. Note that changes to the cache limit won't be taken into consideration until the next texture is scheduled for caching.
Count
Gets the total number of cached textures. This includes textures of all quality levels.
Filter
Gets or sets the rounding table to use when making textures.
PrettySize
public Size PrettySize { get; }
Gets the resolution for high quality, fine textures.
QuickSize
public Size QuickSize { get; }
Gets the resolution for low quality, coarse textures.
Indexers
this[]
public IMultiResolutionTexture this[TKey key, TextureCacheAccess access = TextureCacheAccess.QuickNowPrettyLater] { get; }
Gets the texture associated with the given key. If the requested texture hasn't been created yet, it will be rendered in low resolution in the caller thread and a high resolution rendering will commence in a background thread.
Parameters:
| key (TKey) | Key to retrieve. |
| access (TextureCacheAccess = TextureCacheAccess.QuickNowPrettyLater) | Cache access. |
Returns: Cached texture.
Methods
Clear
public void Clear()
Clear all cached textures.
CreateTexture
#Creates a texture with the specified properties.
Parameters:
| size (Size) | |
| padding (int) | |
| key (int) | |
| token (CancellationToken) |
Overrides: LazyTextureCache<TKey>.CreateTexture
ProcessKey
#Override this method if you wish to perform some operation to key values such as rounding or limiting. The base implementation returns the input key.
Parameters:
| key (int) | Key to process. |
Returns: Processed key.
Overrides: LazyTextureCache<TKey>.ProcessKey