|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CDasherComponent
dasher.CDasherModule
dasher.CInputFilter
dasher.CClickFilter
public class CClickFilter
This is an InputFilter implementation which accepts mouse clicks and causes Dasher to zoom to the location of successive clicks.
The filter does not pay any attention to the mouse position except for when the user clicks the display, and does not decorate the display in any way.
In order to zoom smoothly to a given location, it invokes CDasherModel.ScheduleZoom, which interpolates a number of points between the current crosshair location and the point clicked by the user, and jumps to these points on each successive frame.
This filter registers itself with the name Click Mode.
| Field Summary | |
|---|---|
private CDasherView |
DasherView
Current DasherView, to be used in determining mouse co-ordinates. |
| Fields inherited from class dasher.CInputFilter |
|---|
m_Interface |
| Fields inherited from class dasher.CDasherComponent |
|---|
m_EventHandler, m_SettingsStore |
| Constructor Summary | |
|---|---|
CClickFilter(CEventHandler EventHandler,
CSettingsStore SettingsStore,
CDasherInterfaceBase Interface)
Sole constructor. |
|
| Method Summary | |
|---|---|
boolean |
DecorateView(CDasherView View)
This filter does not decorate the view. |
void |
HandleEvent(CEvent Event)
This class ignores all events. |
void |
KeyDown(long iTime,
int iId,
CDasherModel Model)
KeyDown is to be called by the Interface when the user presses a key or clicks the mouse. |
boolean |
Timer(long Time,
CDasherView m_DasherView,
CDasherModel m_DasherModel)
Timer simply calls the DasherModel's Tap_on_display method, causing it to move forward a frame if there is currently a zoom scheduled. |
| Methods inherited from class dasher.CInputFilter |
|---|
Activate, Deactivate, KeyUp |
| Methods inherited from class dasher.CDasherModule |
|---|
GetID, GetName, GetType, Ref, Unref |
| Methods inherited from class dasher.CDasherComponent |
|---|
GetBoolParameter, GetLongParameter, GetParameterName, GetParameterType, GetStringParameter, InsertEvent, SetBoolParameter, SetLongParameter, SetStringParameter, UnregisterComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CDasherView DasherView
| Constructor Detail |
|---|
public CClickFilter(CEventHandler EventHandler,
CSettingsStore SettingsStore,
CDasherInterfaceBase Interface)
EventHandler - Event handler.SettingsStore - Settings repository.Interface - Interface with which the filter should be registered.| Method Detail |
|---|
public boolean DecorateView(CDasherView View)
DecorateView in class CInputFilterView - Unused, may be null.
public boolean Timer(long Time,
CDasherView m_DasherView,
CDasherModel m_DasherModel)
Timer in class CInputFilterTime - Current system time as a Unix timestampm_DasherView - View to be used for co-ordinate transformsm_DasherModel - Model which will be instructed to advance a frame
public void KeyDown(long iTime,
int iId,
CDasherModel Model)
KeyDown in class CInputFilteriTime - Current system time as a UNIX timestamp.iId - Key/button identifier.Model - DasherModel which should be zoomed in response to clicks.public void HandleEvent(CEvent Event)
HandleEvent in class CInputFilterEvent - Event to be processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||