/[fenfire]/fenfire/org/fenfire/view/View2D.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/View2D.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Thu Apr 24 14:40:33 2003 UTC revision 1.2 by tjl, Thu Apr 24 18:01:56 2003 UTC
# Line 5  import org.nongnu.libvob.VobScene; Line 5  import org.nongnu.libvob.VobScene;
5    
6  /** A view defined as a region of a 2D plane.  /** A view defined as a region of a 2D plane.
7   */   */
8  public interface View2D {  public abstract class View2D {
9      /** Render this view.      /** Render this view.
10       * There are several coordinate systems here, due to the situation; let's       * There are several coordinate systems here, due to the situation; let's
11       * clarify.       * clarify.
# Line 32  public interface View2D { Line 32  public interface View2D {
32       *                  (again, the box of this transformation)       *                  (again, the box of this transformation)
33       *                  to the plane/paper/view2d coordinates.       *                  to the plane/paper/view2d coordinates.
34       */       */
35      void render(VobScene vs,      public abstract void render(VobScene vs,
36                  Object plane,                  Object plane,
37                  int matchingParent,                  int matchingParent,
38                      int box2screen, int box2paper                      int box2screen, int box2paper
# Line 40  public interface View2D { Line 40  public interface View2D {
40    
41      /** Get the size of this plane.      /** Get the size of this plane.
42       * If the plane is infinite, wh[0] < 1 shall obtain.       * If the plane is infinite, wh[0] < 1 shall obtain.
43         * Default implementation: infinite.
44       */       */
45      void getSize(Object plane, float[] wh);      public void getSize(Object plane, float[] wh) {
46            wh[0] = -1;
47            wh[1] = -1;
48        }
49  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26