UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.satin.event
Class BasicStrokeEventFilter

java.lang.Object
  |
  +--edu.berkeley.guir.lib.satin.event.BasicSatinEventFilter
        |
        +--edu.berkeley.guir.lib.satin.event.BasicStrokeEventFilter
All Implemented Interfaces:
Cloneable, EventFilter, SatinEventFilter, Serializable, StrokeEventFilter

public class BasicStrokeEventFilter
extends BasicSatinEventFilter
implements StrokeEventFilter, Serializable

An AND filter for stroke events.

This software is distributed under the Berkeley Software License.

 Revisions:  - SATIN-v1.0-1.0.0, Aug 25 1999, JH
               Created class
             - SATIN-v2.1-1.0.0, Aug 11 2000, JH
               Touched for SATIN release
 

Since:
JDK 1.2
Version:
SATIN-v2.1-1.0.0, Aug 11 2000
Author:
Jason Hong ( jasonh@cs.berkeley.edu )
See Also:
Serialized Form

Constructor Summary
BasicStrokeEventFilter()
          Accepts all.
BasicStrokeEventFilter(boolean left, boolean middle, boolean right)
          Set the values in the filter.
 
Method Summary
 Object clone()
           
protected  BasicStrokeEventFilter clone(BasicStrokeEventFilter f)
           
 boolean isEventAccepted(EventObject evt)
          Accept this event or not?
 boolean isEventAccepted(StrokeEvent evt)
           
 boolean isLeftButtonAccepted()
          Check if the left button is Accepted.
 boolean isMiddleButtonAccepted()
          Check if the middle button is Accepted.
 boolean isRightButtonAccepted()
          Check if the right button is Accepted.
 void setAcceptLeftButton(boolean flag)
          Set whether the left button is Accepted or not.
 void setAcceptMiddleButton(boolean flag)
          Set whether the middle button is Accepted or not.
 void setAcceptRightButton(boolean flag)
          Set whether the right button is Accepted or not.
 String toString()
           
 
Methods inherited from class edu.berkeley.guir.lib.satin.event.BasicSatinEventFilter
clone, isConsumedAccepted, isEventAccepted, setAcceptConsumed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.berkeley.guir.lib.satin.event.SatinEventFilter
isConsumedAccepted, setAcceptConsumed
 

Constructor Detail

BasicStrokeEventFilter

public BasicStrokeEventFilter()
Accepts all.

BasicStrokeEventFilter

public BasicStrokeEventFilter(boolean left,
                              boolean middle,
                              boolean right)
Set the values in the filter.
Method Detail

isLeftButtonAccepted

public boolean isLeftButtonAccepted()
Description copied from interface: StrokeEventFilter
Check if the left button is Accepted.
Specified by:
isLeftButtonAccepted in interface StrokeEventFilter

isMiddleButtonAccepted

public boolean isMiddleButtonAccepted()
Description copied from interface: StrokeEventFilter
Check if the middle button is Accepted.
Specified by:
isMiddleButtonAccepted in interface StrokeEventFilter

isRightButtonAccepted

public boolean isRightButtonAccepted()
Description copied from interface: StrokeEventFilter
Check if the right button is Accepted.
Specified by:
isRightButtonAccepted in interface StrokeEventFilter

setAcceptLeftButton

public void setAcceptLeftButton(boolean flag)
Description copied from interface: StrokeEventFilter
Set whether the left button is Accepted or not.
Specified by:
setAcceptLeftButton in interface StrokeEventFilter

setAcceptMiddleButton

public void setAcceptMiddleButton(boolean flag)
Description copied from interface: StrokeEventFilter
Set whether the middle button is Accepted or not.
Specified by:
setAcceptMiddleButton in interface StrokeEventFilter

setAcceptRightButton

public void setAcceptRightButton(boolean flag)
Description copied from interface: StrokeEventFilter
Set whether the right button is Accepted or not.
Specified by:
setAcceptRightButton in interface StrokeEventFilter

isEventAccepted

public boolean isEventAccepted(StrokeEvent evt)

isEventAccepted

public boolean isEventAccepted(EventObject evt)
Description copied from interface: EventFilter
Accept this event or not?
Specified by:
isEventAccepted in interface EventFilter
Overrides:
isEventAccepted in class BasicSatinEventFilter

clone

public Object clone()
Overrides:
clone in class BasicSatinEventFilter

clone

protected BasicStrokeEventFilter clone(BasicStrokeEventFilter f)

toString

public String toString()
Overrides:
toString in class BasicSatinEventFilter

Copyright Information