1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.g2d.notification;
14 import java.awt.geom.Rectangle2D;
16 import org.simantics.scenegraph.g2d.G2DParentNode;
19 * @author Tuukka Lehtonen
21 * @see AbstractNotification
22 * @see MessageNotification a basic notification for showing a message along
24 * @see PositionedMessage
26 public interface INotification extends Comparable<INotification> {
28 long getCreationTime();
31 * Update the scenegraph to properly paint this notification.
33 * @param the parent node of the notification
35 void update(G2DParentNode parent);
40 void setBounds(Rectangle2D r);
45 void setProgress(double p);
48 * Get rectangle that contains the whole notification.
52 //Rectangle2D getBounds(Graphics2D g);