Skip to content

TileCache

Inheritance Hierarchy

Members Summary

Public Constructors Summary

Name
N/A

Protected Constructors Summary

Name
TileCache(String)

Public Properties Summary

Name Return Type Description
CacheId String Gets or sets the id of the TileCache.
ExpirationTime TimeSpan N/A
TileAccessMode TileAccessMode Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete

Protected Properties Summary

Name Return Type Description
N/A N/A N/A

Public Methods Summary

Name
ClearCache()
DeleteTile(Tile)
Equals(Object)
GetHashCode()
GetTile(Int32,Int64,Int64)
GetType()
SaveTile(Tile)
ToString()

Protected Methods Summary

Name
ClearCacheCore()
DeleteTileCore(Tile)
Finalize()
GetTileCore(Int32,Int64,Int64)
MemberwiseClone()
OnGettingCacheTile(GettingCacheImageBitmapTileCacheEventArgs)
OnGottenCacheTile(GottenCacheImageBitmapTileCacheEventArgs)
SaveTileCore(Tile)

Public Events Summary

Name Event Arguments Description
GottenCacheTile GottenCacheImageBitmapTileCacheEventArgs N/A
GettingCacheTile GettingCacheImageBitmapTileCacheEventArgs N/A

Members Detail

Public Constructors

Name
N/A

Protected Constructors

TileCache(String)

Summary

This is the constructor of the class.

Remarks

N/A

Return Value

Type Description
N/A

Parameters

Name Type Description
cacheId String This is the cache identifier which marks its difference with other TileCache.

Public Properties

CacheId

Summary

Gets or sets the id of the TileCache.

Remarks

N/A

Return Value

String


ExpirationTime

Summary

N/A

Remarks

N/A

Return Value

TimeSpan


TileAccessMode

Summary

Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete

Remarks

If you want it to take effect, you need set the Read property false.

Return Value

TileAccessMode


Protected Properties

Public Methods

ClearCache()

Summary

This method will clear all the tiles in the tileCache.

Remarks

This method will not take effect when the Read is set to true.

Return Value

Type Description
Void N/A

Parameters

Name Type Description
N/A N/A N/A

DeleteTile(Tile)

Summary

This method will delete the target tileView passed in.

Remarks

This method will not take effect when the Read is set to true.

Return Value

Type Description
Void N/A

Parameters

Name Type Description
tile Tile The target tileView to be deleted.

Equals(Object)

Summary

N/A

Remarks

N/A

Return Value

Type Description
Boolean N/A

Parameters

Name Type Description
obj Object N/A

GetHashCode()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Int32 N/A

Parameters

Name Type Description
N/A N/A N/A

GetTile(Int32,Int64,Int64)

Summary

This method returns the BitmapTile corresponding to passed in row and column.

Remarks

N/A

Return Value

Type Description
Tile Returns the BitmapTile corresponding to the passed in row and column.

Parameters

Name Type Description
zoom Int32 N/A
column Int64 The target column for the tileView to fetch.
row Int64 The target row for the tileView to fetch.

GetType()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Type N/A

Parameters

Name Type Description
N/A N/A N/A

SaveTile(Tile)

Summary

This method will save the target tileView passed in.

Remarks

This method will not take effect when the Read is set to true.

Return Value

Type Description
Void N/A

Parameters

Name Type Description
tile Tile The target tileView to be saved.

ToString()

Summary

N/A

Remarks

N/A

Return Value

Type Description
String N/A

Parameters

Name Type Description
N/A N/A N/A

Protected Methods

ClearCacheCore()

Summary

This abstract method will clear all the tiles in the tileCache, for each sub TileCache class must implement this method.

Remarks

This method will not take effect when the Read is set to true.

Return Value

Type Description
Void N/A

Parameters

Name Type Description
N/A N/A N/A

DeleteTileCore(Tile)

Summary

This abstract method will delete the target tileView passed in, for each sub TileCache class must implement this method.

Remarks

This method will not take effect when the Read is set to true.

Return Value

Type Description
Void N/A

Parameters

Name Type Description
tile Tile The target tileView to be deleted.

Finalize()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Void N/A

Parameters

Name Type Description
N/A N/A N/A

GetTileCore(Int32,Int64,Int64)

Summary

This abstract method returns the BitmapTile corresponding to passed in row and column. Each concrete TileCache need to implement this logic to get tileView from a row and column.

Remarks

N/A

Return Value

Type Description
Tile Returns the BitmapTile corresponding to the passed in row and column.

Parameters

Name Type Description
zoom Int32 N/A
column Int64 The target column for the tileView to fetch.
row Int64 The target row for the tileView to fetch.

MemberwiseClone()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Object N/A

Parameters

Name Type Description
N/A N/A N/A

OnGettingCacheTile(GettingCacheImageBitmapTileCacheEventArgs)

Summary

N/A

Remarks

N/A

Return Value

Type Description
Void N/A

Parameters

Name Type Description
e GettingCacheImageBitmapTileCacheEventArgs N/A

OnGottenCacheTile(GottenCacheImageBitmapTileCacheEventArgs)

Summary

N/A

Remarks

N/A

Return Value

Type Description
Void N/A

Parameters

Name Type Description
e GottenCacheImageBitmapTileCacheEventArgs N/A

SaveTileCore(Tile)

Summary

This abstract method will save the target tileView passed in, for each sub TileCache class must implement this method.

Remarks

This method will not take effect when the Read is set to true.

Return Value

Type Description
Void N/A

Parameters

Name Type Description
tile Tile The target tileView to be saved.

Public Events

GottenCacheTile

N/A

Remarks

N/A

Event Arguments

GottenCacheImageBitmapTileCacheEventArgs

GettingCacheTile

N/A

Remarks

N/A

Event Arguments

GettingCacheImageBitmapTileCacheEventArgs