gzz.vob
Class Vob.RenderInfo

java.lang.Object
  |
  +--gzz.vob.Vob.RenderInfo
Enclosing class:
Vob

public abstract static class Vob.RenderInfo
extends java.lang.Object

An interface which provides information about the current rendering context. This is given as a parameter to Vob.render() and can be used to get various parameters.


Constructor Summary
Vob.RenderInfo()
           
 
Method Summary
abstract  float getAspectRatio()
           
abstract  java.awt.Color getBgColor()
          The background color of the canvas where we're being drawn.
abstract  void getClipRect(java.awt.Rectangle into)
          Get the rectangle a vob in this coordsys should clip.
abstract  void getExtRect(java.awt.Rectangle into)
           
abstract  java.awt.Color getMixedFgColor()
          Get the default foreground color, already mixed with the background color in the correct proportion.
abstract  void invert(float xs, float ys, float[] xyout)
          Perform the inverse transformation, if possible.
abstract  void xform_horiz(float x, float y, java.awt.Point into)
           
abstract  void xform_vert(float x, float y, java.awt.Point into)
           
abstract  void xform(float x, float y, java.awt.Point into)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vob.RenderInfo

public Vob.RenderInfo()
Method Detail

getBgColor

public abstract java.awt.Color getBgColor()
The background color of the canvas where we're being drawn. What about background images?!?


getMixedFgColor

public abstract java.awt.Color getMixedFgColor()
Get the default foreground color, already mixed with the background color in the correct proportion. This is the color that the java.awt.Graphics object passed to Vob.render should have set as its foreground.


xform

public abstract void xform(float x,
                           float y,
                           java.awt.Point into)

xform_horiz

public abstract void xform_horiz(float x,
                                 float y,
                                 java.awt.Point into)

xform_vert

public abstract void xform_vert(float x,
                                float y,
                                java.awt.Point into)

getExtRect

public abstract void getExtRect(java.awt.Rectangle into)

getClipRect

public abstract void getClipRect(java.awt.Rectangle into)
Get the rectangle a vob in this coordsys should clip.


getAspectRatio

public abstract float getAspectRatio()

invert

public abstract void invert(float xs,
                            float ys,
                            float[] xyout)
Perform the inverse transformation, if possible. Into the (-1..1, -1..1) cs