/** * Sets the direction estimation model of the auto-dir handler. */ public void setDirectionEstimator(DirectionEstimator directionEstimator) { autoDirHandler.setDirectionEstimator(directionEstimator); }
/** * Toggles on / off direction estimation. */ public void setDirectionEstimator(boolean enabled) { autoDirHandler.setDirectionEstimator(enabled); }
/** * Private constructor. Instantiate using one of the addTo() methods. * * @param target Object whose direction should be automatically adjusted on * relevant events. * @param directionEstimator A DirectionEstimator object used for direction * estimation. */ private AutoDirectionHandler(Target target, DirectionEstimator directionEstimator) { this.target = target; this.handlerRegistration = null; setDirectionEstimator(directionEstimator); }
/** * Toggles direction estimation on (using a default estimator) and off. */ public void setDirectionEstimator(boolean enabled) { setDirectionEstimator(enabled ? WordCountDirectionEstimator.get() : null); }
/** * Toggles on / off direction estimation. */ public void setDirectionEstimator(boolean enabled) { autoDirHandler.setDirectionEstimator(enabled); }
/** * Sets the direction estimation model of the auto-dir handler. */ public void setDirectionEstimator(DirectionEstimator directionEstimator) { autoDirHandler.setDirectionEstimator(directionEstimator); }
/** * Toggles on / off direction estimation. */ public void setDirectionEstimator(boolean enabled) { autoDirHandler.setDirectionEstimator(enabled); }
/** * Sets the direction estimation model of the auto-dir handler. */ public void setDirectionEstimator(DirectionEstimator directionEstimator) { autoDirHandler.setDirectionEstimator(directionEstimator); }
/** * Private constructor. Instantiate using one of the addTo() methods. * * @param target Object whose direction should be automatically adjusted on * relevant events. * @param directionEstimator A DirectionEstimator object used for direction * estimation. */ private AutoDirectionHandler(Target target, DirectionEstimator directionEstimator) { this.target = target; this.handlerRegistration = null; setDirectionEstimator(directionEstimator); }
/** * Private constructor. Instantiate using one of the addTo() methods. * * @param target Object whose direction should be automatically adjusted on * relevant events. * @param directionEstimator A DirectionEstimator object used for direction * estimation. */ private AutoDirectionHandler(Target target, DirectionEstimator directionEstimator) { this.target = target; this.handlerRegistration = null; setDirectionEstimator(directionEstimator); }
/** * Toggles direction estimation on (using a default estimator) and off. */ public void setDirectionEstimator(boolean enabled) { setDirectionEstimator(enabled ? WordCountDirectionEstimator.get() : null); }
/** * Toggles direction estimation on (using a default estimator) and off. */ public void setDirectionEstimator(boolean enabled) { setDirectionEstimator(enabled ? WordCountDirectionEstimator.get() : null); }