Skip to content

Implementation

MATSUDA Takashi edited this page Mar 16, 2023 · 1 revision

classDiagram
  class IKeyboardService {
    +updateView()
  }
  class IKeyboardCommandHandler {
    +clearState()
    +setShiftOn(on: boolean)
    +sendText(str: String)
    +key(keyCode: int)
    +keyDown(keyCode: int)
    +keyUp(keyCode: int)
    +keyRepeat(keyCode: int)
    +showInputMethodPicker()
    +vibrate(strong: boolean): boolean
    +toast(message: String)
  }
  class IKeyboardState {
    +isCapsLockOn(): boolean
    +isShiftOn(): boolean
    +isCtrlOn(): boolean
    +isAltOn(): boolean
    +isSpecialOn(): boolean
  }
  class GestureInputMethod {
  }
  class GestueStore {
  }
  class KeyboardCommandHandler {
  }
  class KeyboardView {
    +setup()
    +update()
  }
  GestureInputMethod --o GestueStore
  GestureInputMethod --o KeyboardCommandHandler
  GestureInputMethod --o KeyboardView
  IKeyboardService <|-- GestureInputMethod
  IKeyboardCommandHandler <|-- KeyboardCommandHandler
  IKeyboardState <|-- KeyboardCommandHandler
Loading
classDiagram
  class IKeyboardService {
    +updateView()
  }
  class IKeyboardState {
    +isCapsLockOn(): boolean
    +isShiftOn(): boolean
    +isCtrlOn(): boolean
    +isAltOn(): boolean
    +isSpecialOn(): boolean
  }
  class IKeyboardCommandHandler {
    +clearState()
    +setShiftOn(on: boolean)
    +sendText(str: String)
    +key(keyCode: int)
    +keyDown(keyCode: int)
    +keyUp(keyCode: int)
    +keyRepeat(keyCode: int)
    +showInputMethodPicker()
    +vibrate(strong: boolean): boolean
    +toast(message: String)
  }
  class GestureInputMethod {
    +updateView()
  }
  class GestueStore {
    +recognize()
  }
  class KeyboardCommandHandler {
    +key(keyCode: int)
  }
  class KeyboardView {
    +updateView()
  }
  IKeyboardService <|-- GestureInputMethod
  IKeyboardState <|-- KeyboardCommandHandler
  IKeyboardCommandHandler <|-- KeyboardCommandHandler
  IKeyboardState <.. KeyboardView
  GestueStore  <.. KeyboardView : recognize()
  IKeyboardService <.. KeyboardCommandHandler : updateView()
  IKeyboardCommandHandler <.. KeyboardView : key()
  KeyboardView <.. GestureInputMethod : updateView()
  
Loading
Clone this wiki locally