|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.View2D
public class View2D
View implementation that sets OpenGL into a two dimensional drawing mode.
API Stability: Stable.
Constructor Summary | |
---|---|
View2D(Visible drawable)
Same as View2D(drawable, -1d, 1d, -1d, 1d). |
|
View2D(Visible drawable,
double left,
double right,
double bottom,
double top)
Constructs a View2D. |
Method Summary | |
---|---|
void |
deinit(Context opt)
Deinitializes this View. |
double |
getBottom()
Provides the bottom of the cliping pane. |
double |
getLeft()
Provides the left of the cliping pane. |
double |
getRight()
Provides the right of the cliping pane. |
double |
getTop()
Provides the top of the cliping pane. |
Visible |
getVisible()
Provides the Visible object that should be rendered in the viewport. |
void |
init(Context opt)
Initializes this View. |
void |
view(Context options,
java.awt.Rectangle viewport)
Disables lighting, sets the projection matrix to an indentity matrix and sets the model view matrix via a call to GL.gluOrtho2D using the clipping values given in the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public View2D(Visible drawable)
drawable
- the Visible to use for this View. This may be null,
indicating that the default Visible for the renderer should be used
instead.public View2D(Visible drawable, double left, double right, double bottom, double top)
left
- the left edge of the clipping plane.right
- the right edge of the clipping plane.bottom
- the bottom edge of the clipping plane.top
- the top edge of the clipping plane.drawable
- the Visible to use for this View. This may be null,
indicating that the default Visible for the renderer should be used
instead.Method Detail |
---|
public double getLeft()
public double getRight()
public double getBottom()
public double getTop()
public void init(Context opt)
View
init
in interface View
opt
- the Context object providing data on how rendering should
proceed.public void deinit(Context opt)
View
deinit
in interface View
opt
- the Context object providing data on how rendering should
proceed.public void view(Context options, java.awt.Rectangle viewport)
view
in interface View
options
- the Context object containing rendering attributes to use.viewport
- the Rectangle describing the region of the window this
view will be displayed in. Remember that the coordinates are from the
lower left corner, not the upper left.public Visible getVisible()
View
getVisible
in interface View
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |