public class PFMouseButtonEventFilter extends PFInputEventFilter implements PFMouseButtonEventSource, PFXMLSerializable
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出力.
|
getAltGraphKeyModifier, getAltKeyModifier, getComponentID, getComponentKey, getComponentKeys, getComponentPublicName, getComponentString, getCtrlKeyModifier, getMetaKeyModifier, getShiftKeyModifier, isAllowPullTransfer, isAllowPushTransfer, isAllowRemoteInvocation, setAllowPullTransfer, setAllowPushTransfer, setAllowRemoteInvocation, setComponentID, setComponentKey, setComponentKeys, setComponentPublicName
public java.lang.String getComponentName()
getComponentName
インタフェース内 PFComponent
public java.util.Iterator getPFMouseButtonListenerList()
getPFMouseButtonListenerList
インタフェース内 PFMouseButtonEventSource
public void addPFMouseButtonListener(PFMouseButtonListener lis)
addPFMouseButtonListener
インタフェース内 PFMouseButtonEventSource
lis
- 追加対象イベントリスナpublic void removePFMouseButtonListener(PFMouseButtonListener lis)
removePFMouseButtonListener
インタフェース内 PFMouseButtonEventSource
lis
- 削除対象イベントリスナpublic void localeUpdated()
localeUpdated
インタフェース内 PFComponent
public void notifyEvent(PFMouseButtonEvent event) throws PFMethodException, PFRuntimeException
event
- マウスボタンイベントPFMethodException
- メソッド起動時のエラーPFRuntimeException
- 予期しない実行時エラーpublic void addEventFilter(int eventType, int mouseButton, int mouseModifiers, int clickCount, int eventNo)
eventType
- イベント識別(無指定:0)mouseButton
- マウスボタン(無指定:0)mouseModifiers
- マウス修飾キー(無指定:0)clickCount
- クリック回数(無指定:0)eventNo
- 発生させるイベントNOpublic void removeEventFilter(int eventNo)
eventNo
- 発生させるイベントNOpublic void clearEventFilter()
public void addMouseModifiers(int eventNo, int mouseModifiers)
eventNo
- 追加対象のイベントNOmouseModifiers
- 追加修飾キーpublic void removeMouseModifiers(int eventNo, int mouseModifiers)
eventNo
- 削除対象のイベントNOmouseModifiers
- 削除修飾キーpublic void clearMouseButtonModifiers(int eventNo)
eventNo
- クリア対象のイベントNOpublic static int getMousePressEventType()
public static int getMouseReleaseEventType()
public static int getMouseClickEventType()
public static int getMouseLeftButton()
public static int getMouseMiddleButton()
public static int getMouseRightButton()
public void readXML(PFXMLLoader in)
readXML
インタフェース内 PFXMLSerializable
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
writeXML
インタフェース内 PFXMLSerializable
out
- XML出力ユーティリティjava.io.IOException