|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jzy3d.plot3d.rendering.view.AWTImageViewport
public class AWTImageViewport
A AWTImageViewport
allows displaying a 2d Image
within an OpenGL2 viewport.
Field Summary | |
---|---|
protected int |
imageHeight
|
protected Image |
imageObj
|
protected int |
imageWidth
|
protected ViewportConfiguration |
lastViewPort
|
protected ViewportMode |
mode
|
protected float |
ratioHeight
|
protected float |
ratioWidth
|
protected int |
screenBottom
|
protected boolean |
screenGridDisplayed
|
protected int |
screenHeight
|
protected int |
screenLeft
|
protected int |
screenSquaredDim
|
protected int |
screenWidth
|
protected int |
screenXOffset
|
protected int |
screenYOffset
|
Constructor Summary | |
---|---|
AWTImageViewport()
|
Method Summary | |
---|---|
protected ViewportConfiguration |
applyViewport(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
Build and return a ViewportConfiguration . |
Image |
getImage()
Return the image rendered by the AWTImageViewport |
ViewportConfiguration |
getLastViewPort()
|
Dimension |
getMinimumSize()
Return the minimum size for this graphic. |
ViewportMode |
getMode()
|
Dimension |
getPreferedSize()
Return the prefered size for this graphic. |
Rectangle |
getRectangle()
Returns the (x,y) offset that was applied to make this AbstractViewportManager stand in the appropriate canvas part. and
the actual width and height of the viewport. |
void |
render(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
Renders the picture into the window, according to the viewport settings. |
void |
setImage(Image image)
|
void |
setImage(Image image,
int width,
int height)
Set the Image that will be displayed by the layer. |
void |
setImage(Image image,
int width,
int height,
ByteBuffer buffer)
|
void |
setScreenGridDisplayed(boolean status)
Set the status of the screen grid. |
void |
setViewPort(int width,
int height)
Set the view port (size of the renderer). |
void |
setViewPort(int width,
int height,
float left,
float right)
Set the view port (size of the renderer). |
void |
setViewPort(ViewportConfiguration viewport)
|
void |
setViewportMode(ViewportMode mode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jzy3d.plot3d.rendering.view.IImageViewport |
---|
getLastViewPort, getMode, setViewPort, setViewPort, setViewPort, setViewportMode |
Field Detail |
---|
protected Image imageObj
protected int imageHeight
protected int imageWidth
protected ViewportConfiguration lastViewPort
protected int screenLeft
protected int screenBottom
protected int screenXOffset
protected int screenYOffset
protected int screenWidth
protected int screenHeight
protected int screenSquaredDim
protected boolean screenGridDisplayed
protected ViewportMode mode
protected float ratioWidth
protected float ratioHeight
Constructor Detail |
---|
public AWTImageViewport()
Method Detail |
---|
public void render(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
IImageViewport
render
in interface IImageViewport
public void setImage(Image image, int width, int height)
Image
that will be displayed by the layer.
image
- public void setImage(Image image, int width, int height, ByteBuffer buffer)
public void setImage(Image image)
public Image getImage()
AWTImageViewport
public Dimension getMinimumSize()
getMinimumSize
in interface IImageViewport
public Dimension getPreferedSize()
getPreferedSize
in interface IImageViewport
public void setViewPort(int width, int height)
width
- the width of the target window.height
- the height of the target window.public ViewportMode getMode()
public void setViewportMode(ViewportMode mode)
public void setViewPort(int width, int height, float left, float right)
width
- the width of the target window.height
- the height of the target window.left
- the width's ratio where this subscreen starts in the target
window.right
- the width's ratio where this subscreen stops in the target
window.
an
- IllegalArgumentException if right is not greater than left.public void setViewPort(ViewportConfiguration viewport)
public ViewportConfiguration getLastViewPort()
protected ViewportConfiguration applyViewport(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
ViewportConfiguration
. Uses gl to
gl
- glu
- public Rectangle getRectangle()
AbstractViewportManager
stand in the appropriate canvas part. and
the actual width and height of the viewport. Only relevant after a call
to applyViewPort
.
public void setScreenGridDisplayed(boolean status)
status
- the grid is displayed if status is set to true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |