Class TLspAWTEventFilterBuilder
java.lang.Object
com.luciad.view.lightspeed.controller.TLspAWTEventFilterBuilder
Deprecated.
TLcdAWTEventFilterBuilder offers identical functionality; use that class instead.
A builder to create typical AWTEvent filters. These filters can be combined using the operators
and()
and or()
. By using openBrackets()
and closeBrackets()
it is possible to control which operators will be evaluated first. Operators between brackets
will be evaluated before any others, otherwise and
will be evaluated before
or
. For instance the following statement:
TLspAWTEventFilterBuilder.newBuilder().
openBrackets().
leftMouseButton().or().rightMouseButton().
closeBrackets().
and().altFilter().build();
will return a filter that will let both left or right mouse button events pass, but only if alt is down too. Without the brackets, left mouse button events would always pass but right mouse button events only when alt is down.
- Since:
- 2012.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
Deprecated.Constructor to use when extending from this class. -
Method Summary
Modifier and TypeMethodDescriptionaltFilter
(boolean aAltDown) Deprecated.Adds a alt down InputEvent filter.and()
Deprecated.Operator to be called between two filter calls to indicate the event must pass both filters.build()
Deprecated.Builds the filter.Deprecated.Ends a new subfilter, all filters and operators called between this call and the previous call toopenBrackets
will be evaluated together before operators and filters outside the brackets are evaluated.ctrlFilter
(boolean aCtrlDown) Deprecated.Adds a ctrl down InputEvent filter.customFilter
(ILcdFilter<AWTEvent> aFilter) Deprecated.Adds a custom filter.Deprecated.A filter that only allows key events to pass.Deprecated.Adds a left mouse button filter.Deprecated.Adds a middle mouse button filter.Deprecated.A filter that only allows mouse events to pass.Deprecated.A filter that only allows mouse wheel events to pass.static TLspAWTEventFilterBuilder
Deprecated.Deprecated.Starts a new subfilter, all filters and operators called between this call and the next call tocloseBrackets
will be evaluated together before operators and filters outside the brackets are evaluated.or()
Deprecated.Operator to be called between two filter calls to indicate the event must pass one of the two filters.Deprecated.Adds a right mouse button filter.shiftFilter
(boolean aShiftDown) Deprecated.Adds a shift down InputEvent filter.Deprecated.A filter that only allows touch events to pass.
-
Constructor Details
-
TLspAWTEventFilterBuilder
protected TLspAWTEventFilterBuilder()Deprecated.Constructor to use when extending from this class.
-
-
Method Details
-
newBuilder
Deprecated.- Returns:
- a new builder
-
or
Deprecated.Operator to be called between two filter calls to indicate the event must pass one of the two filters.- Returns:
- this builder.
-
and
Deprecated.Operator to be called between two filter calls to indicate the event must pass both filters.- Returns:
- this builder.
-
openBrackets
Deprecated.Starts a new subfilter, all filters and operators called between this call and the next call tocloseBrackets
will be evaluated together before operators and filters outside the brackets are evaluated.- Returns:
- the sub-filter.
-
closeBrackets
Deprecated.Ends a new subfilter, all filters and operators called between this call and the previous call toopenBrackets
will be evaluated together before operators and filters outside the brackets are evaluated.- Returns:
- the parent of the current sub-filter.
-
build
Deprecated.Builds the filter.- Returns:
- a AWTEvent filter.
-
customFilter
Deprecated.Adds a custom filter.- Parameters:
aFilter
- the filter to add to this builder.- Returns:
- this builder.
-
leftMouseButton
Deprecated.Adds a left mouse button filter.- Returns:
- this builder.
-
middleMouseButton
Deprecated.Adds a middle mouse button filter.- Returns:
- this builder.
-
rightMouseButton
Deprecated.Adds a right mouse button filter.- Returns:
- this builder.
-
ctrlFilter
Deprecated.Adds a ctrl down InputEvent filter.- Parameters:
aCtrlDown
- if true only events with a ctrl down mask pass, otherwise only events without ctrl down mask.- Returns:
- this builder.
-
altFilter
Deprecated.Adds a alt down InputEvent filter.- Parameters:
aAltDown
- if true only events with a alt down mask pass, otherwise only events without alt down mask.- Returns:
- this builder.
-
shiftFilter
Deprecated.Adds a shift down InputEvent filter.- Parameters:
aShiftDown
- if true only events with a shift down mask pass, otherwise only events without shift down mask.- Returns:
- this builder.
-
mouseWheelFilter
Deprecated.A filter that only allows mouse wheel events to pass.- Returns:
- this builder.
-
touchEvents
Deprecated.A filter that only allows touch events to pass.- Returns:
- this builder.
-
mouseEvents
Deprecated.A filter that only allows mouse events to pass.- Returns:
- this builder.
-
keyEvents
Deprecated.A filter that only allows key events to pass.- Returns:
- this builder.
-