--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+/*\r
+ * 25.1.2007\r
+ */\r
+package org.simantics.utils.ui.gfx.rasterize;\r
+\r
+/**\r
+ * RasterJob\r
+ * @author Toni Kalajainen\r
+ */\r
+public class RasterJob {\r
+\r
+ public final IRasterizable raster;\r
+ public final int width;\r
+ public final int height;\r
+ public final IRasterizationListener listener;\r
+ RasterJobStatus status = RasterJobStatus.UNUSED;\r
+ \r
+ public RasterJob(IRasterizable raster, int width, int height, IRasterizationListener listener)\r
+ {\r
+ assert(raster!=null);\r
+ assert(listener!=null);\r
+ this.raster = raster;\r
+ this.width = width;\r
+ this.height = height;\r
+ this.listener = listener;\r
+ }\r
+ \r
+ public RasterJobStatus getStatus()\r
+ {\r
+ return status;\r
+ }\r
+ \r
+}\r