]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.g2d/src/org/simantics/g2d/notification/INotification.java
G2DParentNode handles "undefined" child bounds separately
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / notification / INotification.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.g2d.notification;
13
14 import java.awt.geom.Rectangle2D;
15
16 import org.simantics.scenegraph.g2d.G2DParentNode;
17
18 /**
19  * @author Tuukka Lehtonen
20  *
21  * @see AbstractNotification
22  * @see MessageNotification a basic notification for showing a message along
23  *      with an image.
24  * @see PositionedMessage
25  */
26 public interface INotification extends Comparable<INotification> {
27
28     long getCreationTime();
29
30     /**
31      * Update the scenegraph to properly paint this notification.
32      * 
33      * @param the parent node of the notification
34      */
35     void update(G2DParentNode parent);
36
37     /**
38      * @param r
39      */
40     void setBounds(Rectangle2D r);
41
42     /**
43      * @param p
44      */
45     void setProgress(double p);
46
47     /**
48      * Get rectangle that contains the whole notification.
49      * 
50      * @return bounds
51      */
52     //Rectangle2D getBounds(Graphics2D g);
53
54 }