cvj2.app.command
クラス CommandMapInput

java.lang.Object
  上位を拡張 java.util.AbstractMap<K,V>
      上位を拡張 java.util.TreeMap<InputCombination,Command>
          上位を拡張 cvj2.app.command.CommandMapInput
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Cloneable, java.util.Map<InputCombination,Command>, java.util.NavigableMap<InputCombination,Command>, java.util.SortedMap<InputCombination,Command>

public class CommandMapInput
extends java.util.TreeMap<InputCombination,Command>

コマンドと入力(キー、マウス)の結びつけ。
画面でキー入力などが発生すると、結びつけられた CommandCommandHandler で実行される。
このクラスのインスタンスは、@{link DefaultCommandMapInputCreator で生成される。

関連項目:
直列化された形式

入れ子のクラスの概要
 
クラス java.util.AbstractMap から継承された入れ子のクラス/インタフェース
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
コンストラクタの概要
CommandMapInput()
           
 
メソッドの概要
 void addCommandInput(InputCombination input, Command command)
          コマンド追加
 Command findCommand(InputCombination input)
          入力に対応するコマンドを取得
 Command[] getAllCommands()
          コマンド一覧を取得
 void removeCommandInput(InputCombination input, Command command)
          コマンド削除
 java.util.Set<InputCombination> reverseFindInputs(Command command)
          コマンドに対応する入力一覧を取得
 
クラス java.util.TreeMap から継承されたメソッド
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
クラス java.util.AbstractMap から継承されたメソッド
equals, hashCode, isEmpty, toString
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 
インタフェース java.util.Map から継承されたメソッド
equals, hashCode, isEmpty
 

コンストラクタの詳細

CommandMapInput

public CommandMapInput()
メソッドの詳細

addCommandInput

public void addCommandInput(InputCombination input,
                            Command command)
コマンド追加


removeCommandInput

public void removeCommandInput(InputCombination input,
                               Command command)
コマンド削除


reverseFindInputs

public java.util.Set<InputCombination> reverseFindInputs(Command command)
コマンドに対応する入力一覧を取得


getAllCommands

public Command[] getAllCommands()
コマンド一覧を取得


findCommand

public Command findCommand(InputCombination input)
入力に対応するコマンドを取得