Class TextRegionEventFilter

  • All Implemented Interfaces:
    IEventFilter

    public class TextRegionEventFilter
    extends java.lang.Object
    implements IEventFilter
    This IEventFilter implementation only accepts text render events within the specified rectangular region.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(IEventData data, EventType type)
      This method checks an event and decides whether it should be processed further (corresponds to true return value), or filtered out (corresponds to false return value).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filterRect

        private final Rectangle filterRect
    • Constructor Detail

      • TextRegionEventFilter

        public TextRegionEventFilter​(Rectangle filterRect)
        Constructs a filter instance.
        Parameters:
        filterRect - the rectangle to filter text against
    • Method Detail

      • accept

        public boolean accept​(IEventData data,
                              EventType type)
        Description copied from interface: IEventFilter
        This method checks an event and decides whether it should be processed further (corresponds to true return value), or filtered out (corresponds to false return value).
        Specified by:
        accept in interface IEventFilter
        Parameters:
        data - event data
        type - event type
        Returns:
        true to process event further, false to filter event out