KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > figures > BufferedFreeformLayer


1 /*
2  * Created on 07.06.2005
3  */

4 package com.nightlabs.editor2d.figures;
5
6 import org.eclipse.draw2d.Figure;
7 import org.eclipse.gef.EditPart;
8
9 /**
10  * @author Alexander Bieber <alex[AT]nightlabs[DOT]de>
11  */

12 public interface BufferedFreeformLayer {
13     /**
14      * Should force the buffer to
15      * be rebuild before painting the
16      * next time.
17      */

18     public void refresh();
19
20     /**
21      * Should try to update the buffer
22      * concerning a change in the given
23      * Figure.
24      */

25     public void refresh(Figure figure);
26
27     /**
28      * Most buffered Layers will need a
29      * EditPart (or its root Control) to
30      * know about their buffer sizes etc.
31      *
32      * @param editPart The EditPart.
33      */

34     public void init(EditPart editPart);
35 }
Popular Tags