]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/gfx/rasterize/RasterJob.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.utils.ui / src / org / simantics / utils / ui / gfx / rasterize / RasterJob.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 /*\r
13  * 25.1.2007\r
14  */\r
15 package org.simantics.utils.ui.gfx.rasterize;\r
16 \r
17 /**\r
18  * RasterJob\r
19  * @author Toni Kalajainen\r
20  */\r
21 public class RasterJob {\r
22 \r
23     public final IRasterizable raster;\r
24     public final int width;\r
25     public final int height;\r
26     public final IRasterizationListener listener;\r
27     RasterJobStatus status = RasterJobStatus.UNUSED;\r
28     \r
29     public RasterJob(IRasterizable raster, int width, int height, IRasterizationListener listener)\r
30     {\r
31         assert(raster!=null);\r
32         assert(listener!=null);\r
33         this.raster = raster;\r
34         this.width = width;\r
35         this.height = height;\r
36         this.listener = listener;\r
37     }\r
38     \r
39     public RasterJobStatus getStatus()\r
40     {\r
41         return status;\r
42     }\r
43     \r
44 }\r