PageRenderTime 21ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/mt4j/input/inputProcessors/componentProcessors/unistrokeProcessor/UnistrokeEvent.java

http://mt4j.googlecode.com/
Java | 36 lines | 27 code | 9 blank | 0 comment | 0 complexity | a480a34a1860f4a18c17f7c7766e547f MD5 | raw file
 1package org.mt4j.input.inputProcessors.componentProcessors.unistrokeProcessor;
 2
 3
 4import org.mt4j.components.interfaces.IMTComponent3D;
 5import org.mt4j.components.visibleComponents.shapes.MTPolygon;
 6import org.mt4j.input.inputData.InputCursor;
 7import org.mt4j.input.inputProcessors.IInputProcessor;
 8import org.mt4j.input.inputProcessors.MTGestureEvent;
 9import org.mt4j.input.inputProcessors.componentProcessors.unistrokeProcessor.UnistrokeUtils.UnistrokeGesture;
10
11public class UnistrokeEvent extends MTGestureEvent{
12	private MTPolygon visualization;
13	private UnistrokeGesture gesture;
14	private InputCursor cursor;
15
16	public UnistrokeEvent(IInputProcessor source, int id, IMTComponent3D targetComponent, MTPolygon visualization, UnistrokeGesture gesture, InputCursor inputCursor) {
17		super(source, id, targetComponent);
18		this.visualization = visualization;
19		this.gesture = gesture;
20		this.cursor = inputCursor;
21	}
22
23	public MTPolygon getVisualization() {
24		return this.visualization;
25	}
26	
27	public UnistrokeGesture getGesture(){
28		return this.gesture;
29	}
30
31	public InputCursor getCursor() {
32		return cursor;
33	}
34
35
36}