public class AWTImageViewport extends AbstractViewportManager implements IImageViewport
AWTImageViewport
allows displaying a 2d Image
within an
OpenGL2 viewport.Modifier and Type | Field and Description |
---|---|
protected int |
imageHeight |
protected Image |
imageObj |
protected int |
imageWidth |
lastViewPort, mode, ratioHeight, ratioWidth, screenBottom, screenGridDisplayed, screenHeight, screenLeft, screenSquaredDim, screenWidth, screenXOffset, screenYOffset
Constructor and Description |
---|
AWTImageViewport() |
Modifier and Type | Method and Description |
---|---|
Image |
getImage()
Return the image rendered by the
AWTImageViewport |
Dimension |
getMinimumSize()
Return the minimum size for this graphic.
|
Dimension |
getPreferedSize()
Return the prefered size for this graphic.
|
void |
render(com.jogamp.opengl.GL gl,
com.jogamp.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) |
applyViewport, getLastViewPort, getMode, getRectangle, renderSubScreenGrid, setScreenGridDisplayed, setViewPort, setViewPort, setViewPort, setViewportMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastViewPort, getMode, setViewPort, setViewPort, setViewPort, setViewportMode
protected Image imageObj
protected int imageHeight
protected int imageWidth
public void render(com.jogamp.opengl.GL gl, com.jogamp.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
Copyright © 2016. All rights reserved.