X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fg2d%2Fevents%2FIEventHandler.java;h=22e2966c96cc1fca043076409d0726c986a4de2a;hb=bdb7180f6425b460b8566a3223b319caf9dbc56f;hp=afa13ecdf5a2ab13e23c12b925e47bfcdcafac02;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/events/IEventHandler.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/events/IEventHandler.java index afa13ecdf..22e2966c9 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/events/IEventHandler.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/events/IEventHandler.java @@ -1,43 +1,43 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -/* - * - * @author Toni Kalajainen - */ -package org.simantics.scenegraph.g2d.events; - -/** - * @author Toni Kalajainen - */ -public interface IEventHandler { - - /** - * Returns a bit mask based on the constants in {@link EventTypes} to - * restrict which type of events should be propagated to this event handler. - * The value returned by this method must be constant, it must not change - * during the handler's life cycle. - * - * @return a bit mask defining the events to propagate to this handler - * @see EventTypes - */ - int getEventMask(); - - /** - * Process an event. If this method returns true, the event will be eaten - * and not sent to lower levels of the handler stack. - * - * @return true if the handler consumed the event. Consumed events are not - * propagated further. - */ - boolean handleEvent(Event e); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +/* + * + * @author Toni Kalajainen + */ +package org.simantics.scenegraph.g2d.events; + +/** + * @author Toni Kalajainen + */ +public interface IEventHandler { + + /** + * Returns a bit mask based on the constants in {@link EventTypes} to + * restrict which type of events should be propagated to this event handler. + * The value returned by this method must be constant, it must not change + * during the handler's life cycle. + * + * @return a bit mask defining the events to propagate to this handler + * @see EventTypes + */ + int getEventMask(); + + /** + * Process an event. If this method returns true, the event will be eaten + * and not sent to lower levels of the handler stack. + * + * @return true if the handler consumed the event. Consumed events are not + * propagated further. + */ + boolean handleEvent(Event e); + +}