C# Class CK.WordPredictor.DefaultKeyboardContextPredictionFactory

Inheritance: IKeyboardContextPredictionFactory
显示文件 Open project: Invenietis/ck-certified

Public Methods

Method Description
CreatePredictionKey ( IZone zone, int index ) : IKey
CreatePredictionZone ( IKeyboard keyboard, int count ) : IZone
DefaultKeyboardContextPredictionFactory ( IKeyboardContext keyboardContext, IWordPredictorFeature feature ) : System
RemovePredictionZone ( IKeyboard keyboard ) : void

Protected Methods

Method Description
CustomizePredictionKey ( IKey key ) : void

Sets the coordinates and dimensions of a prediction key. Automatically sets the virtualIndex to the key's index.

CustomizePredictionKey ( IKey key, int virtualIndex ) : void

Sets the coordinates and dimensions of a prediction key.

Method Details

CreatePredictionKey() public method

public CreatePredictionKey ( IZone zone, int index ) : IKey
zone IZone
index int
return IKey

CreatePredictionZone() public method

public CreatePredictionZone ( IKeyboard keyboard, int count ) : IZone
keyboard IKeyboard
count int
return IZone

CustomizePredictionKey() protected method

Sets the coordinates and dimensions of a prediction key. Automatically sets the virtualIndex to the key's index.
protected CustomizePredictionKey ( IKey key ) : void
key IKey the key to place & size
return void

CustomizePredictionKey() protected method

Sets the coordinates and dimensions of a prediction key.
protected CustomizePredictionKey ( IKey key, int virtualIndex ) : void
key IKey The key to place & size
virtualIndex int The index at which the key should be put. In most cases, the virtual index is the key's index. /// If some keys are in zones that are not placed linearly, you might want to handle indexes yourself.
return void

DefaultKeyboardContextPredictionFactory() public method

public DefaultKeyboardContextPredictionFactory ( IKeyboardContext keyboardContext, IWordPredictorFeature feature ) : System
keyboardContext IKeyboardContext
feature IWordPredictorFeature
return System

RemovePredictionZone() public method

public RemovePredictionZone ( IKeyboard keyboard ) : void
keyboard IKeyboard
return void