jp.go.aist.dmrc.platform.beans.gui.event
クラス PFMouseButtonEventFilter

java.lang.Object
  上位を拡張 jp.go.aist.dmrc.platform.beans.gui.event.PFInputEventFilter
      上位を拡張 jp.go.aist.dmrc.platform.beans.gui.event.PFMouseButtonEventFilter
すべての実装されたインタフェース:
java.io.Serializable, PFComponent, PFXMLSerializable, PFEventSource, PFMouseButtonEventSource

public class PFMouseButtonEventFilter
extends PFInputEventFilter
implements PFMouseButtonEventSource, PFXMLSerializable

マウスボタンイベントのイベント内容によって新たなイベントを発生させるための イベントフィルタリングを行うコンポーネント。

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

フィールドの概要
 
クラス jp.go.aist.dmrc.platform.beans.gui.event.PFInputEventFilter から継承されたフィールド
componentID, componentKey, eventMaskList
 
コンストラクタの概要
PFMouseButtonEventFilter()
          マウスイベントフィルタコンポーネントを生成する。
 
メソッドの概要
 void addEventFilter(int eventType, int mouseButton, int mouseModifiers, int clickCount, int eventNo)
          マウスボタンイベントのフィルタを追加する。
 void addMouseModifiers(int eventNo, int mouseModifiers)
          マウスボタンイベントフィルタに修飾キーを追加する。
 void addPFMouseButtonListener(PFMouseButtonListener lis)
          引数で与えられたイベントリスナを登録し、 マウスボタンイベント発生時に処理を行う対象とする。
 void clearEventFilter()
          マウスボタンイベントのフィルタをクリアする。
 void clearMouseButtonModifiers(int eventNo)
          マウスボタンイベントフィルタの修飾キーをクリアする。
 java.lang.String getComponentName()
          コンポーネント名称を取得する。
static int getMouseClickEventType()
          マウスクリックイベントの種別を取得する。
static int getMouseLeftButton()
          マウス左ボタンの種別を取得する。
static int getMouseMiddleButton()
          マウス中ボタンの種別を取得する。
static int getMousePressEventType()
          マウスプレスイベントの種別を取得する。
static int getMouseReleaseEventType()
          マウスリリースイベントの種別を取得する。
static int getMouseRightButton()
          マウス右ボタンの種別を取得する。
 java.util.Iterator getPFMouseButtonListenerList()
          マウスボタンイベントリスナ配列を取得する。
 void localeUpdated()
          ロケール変更に対応する。
 void notifyEvent(PFMouseButtonEvent event)
          イベントを受け取る。
 void readXML(PFXMLLoader in)
          コンポーネントのXML入力.
 void removeEventFilter(int eventNo)
          マウスボタンイベントのフィルタを削除する。
 void removeMouseModifiers(int eventNo, int mouseModifiers)
          マウスボタンイベントフィルタの修飾キーを削除する。
 void removePFMouseButtonListener(PFMouseButtonListener lis)
          引数で与えられたイベントリスナを削除し、 マウスボタンイベント発生時に処理を行う対象から外す。
 void writeXML(PFXMLGenerator out)
          コンポーネントのXML出力.
 
クラス jp.go.aist.dmrc.platform.beans.gui.event.PFInputEventFilter から継承されたメソッド
getAltGraphKeyModifier, getAltKeyModifier, getComponentID, getComponentKey, getComponentKeys, getComponentPublicName, getComponentString, getCtrlKeyModifier, getMetaKeyModifier, getShiftKeyModifier, isAllowPullTransfer, isAllowPushTransfer, isAllowRemoteInvocation, setAllowPullTransfer, setAllowPushTransfer, setAllowRemoteInvocation, setComponentID, setComponentKey, setComponentKeys, setComponentPublicName
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PFMouseButtonEventFilter

public PFMouseButtonEventFilter()
マウスイベントフィルタコンポーネントを生成する。

メソッドの詳細

getComponentName

public java.lang.String getComponentName()
コンポーネント名称を取得する。

定義:
インタフェース PFComponent 内の getComponentName
戻り値:
コンポーネント名

getPFMouseButtonListenerList

public java.util.Iterator getPFMouseButtonListenerList()
マウスボタンイベントリスナ配列を取得する。

定義:
インタフェース PFMouseButtonEventSource 内の getPFMouseButtonListenerList
戻り値:
イベントリスナイテレータ

addPFMouseButtonListener

public void addPFMouseButtonListener(PFMouseButtonListener lis)
引数で与えられたイベントリスナを登録し、 マウスボタンイベント発生時に処理を行う対象とする。

定義:
インタフェース PFMouseButtonEventSource 内の addPFMouseButtonListener
パラメータ:
lis - 追加対象イベントリスナ

removePFMouseButtonListener

public void removePFMouseButtonListener(PFMouseButtonListener lis)
引数で与えられたイベントリスナを削除し、 マウスボタンイベント発生時に処理を行う対象から外す。

定義:
インタフェース PFMouseButtonEventSource 内の removePFMouseButtonListener
パラメータ:
lis - 削除対象イベントリスナ

localeUpdated

public void localeUpdated()
ロケール変更に対応する。

定義:
インタフェース PFComponent 内の localeUpdated

notifyEvent

public void notifyEvent(PFMouseButtonEvent event)
                 throws PFMethodException,
                        PFRuntimeException
イベントを受け取る。

パラメータ:
event - マウスボタンイベント
例外:
PFMethodException - メソッド起動時のエラー
PFRuntimeException - 予期しない実行時エラー

addEventFilter

public void addEventFilter(int eventType,
                           int mouseButton,
                           int mouseModifiers,
                           int clickCount,
                           int eventNo)
マウスボタンイベントのフィルタを追加する。

パラメータ:
eventType - イベント識別(無指定:0)
mouseButton - マウスボタン(無指定:0)
mouseModifiers - マウス修飾キー(無指定:0)
clickCount - クリック回数(無指定:0)
eventNo - 発生させるイベントNO

removeEventFilter

public void removeEventFilter(int eventNo)
マウスボタンイベントのフィルタを削除する。

パラメータ:
eventNo - 発生させるイベントNO

clearEventFilter

public void clearEventFilter()
マウスボタンイベントのフィルタをクリアする。


addMouseModifiers

public void addMouseModifiers(int eventNo,
                              int mouseModifiers)
マウスボタンイベントフィルタに修飾キーを追加する。

パラメータ:
eventNo - 追加対象のイベントNO
mouseModifiers - 追加修飾キー

removeMouseModifiers

public void removeMouseModifiers(int eventNo,
                                 int mouseModifiers)
マウスボタンイベントフィルタの修飾キーを削除する。

パラメータ:
eventNo - 削除対象のイベントNO
mouseModifiers - 削除修飾キー

clearMouseButtonModifiers

public void clearMouseButtonModifiers(int eventNo)
マウスボタンイベントフィルタの修飾キーをクリアする。

パラメータ:
eventNo - クリア対象のイベントNO

getMousePressEventType

public static int getMousePressEventType()
マウスプレスイベントの種別を取得する。

戻り値:
マウスプレスイベント識別

getMouseReleaseEventType

public static int getMouseReleaseEventType()
マウスリリースイベントの種別を取得する。

戻り値:
マウスリリースイベント識別

getMouseClickEventType

public static int getMouseClickEventType()
マウスクリックイベントの種別を取得する。

戻り値:
マウスクリックイベント識別

getMouseLeftButton

public static int getMouseLeftButton()
マウス左ボタンの種別を取得する。

戻り値:
マウス左ボタン

getMouseMiddleButton

public static int getMouseMiddleButton()
マウス中ボタンの種別を取得する。

戻り値:
マウス中ボタン

getMouseRightButton

public static int getMouseRightButton()
マウス右ボタンの種別を取得する。

戻り値:
マウス右ボタン

readXML

public void readXML(PFXMLLoader in)
コンポーネントのXML入力.

定義:
インタフェース PFXMLSerializable 内の readXML
パラメータ:
in - XML入力ユーティリティ

writeXML

public void writeXML(PFXMLGenerator out)
              throws java.io.IOException
コンポーネントのXML出力.

定義:
インタフェース PFXMLSerializable 内の writeXML
パラメータ:
out - XML出力ユーティリティ
例外:
java.io.IOException