--- /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
+package org.simantics.g2d.notification;\r
+\r
+import java.awt.geom.Rectangle2D;\r
+\r
+import org.simantics.scenegraph.g2d.G2DParentNode;\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ *\r
+ * @see AbstractNotification\r
+ * @see MessageNotification a basic notification for showing a message along\r
+ * with an image.\r
+ * @see PositionedMessage\r
+ */\r
+public interface INotification extends Comparable<INotification> {\r
+\r
+ long getCreationTime();\r
+\r
+ /**\r
+ * Update the scenegraph to properly paint this notification.\r
+ * \r
+ * @param the parent node of the notification\r
+ */\r
+ void update(G2DParentNode parent);\r
+\r
+ /**\r
+ * @param r\r
+ */\r
+ void setBounds(Rectangle2D r);\r
+\r
+ /**\r
+ * @param p\r
+ */\r
+ void setProgress(double p);\r
+\r
+ /**\r
+ * Get rectangle that contains the whole notification.\r
+ * \r
+ * @return bounds\r
+ */\r
+ //Rectangle2D getBounds(Graphics2D g);\r
+\r
+}\r