Package org.jzy3d.plot3d.rendering.view
Class ViewportConfiguration
java.lang.Object
org.jzy3d.plot3d.rendering.view.ViewportConfiguration
A
ViewportConfiguration
states how a particular GL rendering should occupy a canvas area.
It is define by a width and height, and support an X and Y offset- Author:
- Martin Pernollet
-
Field Summary
-
Constructor Summary
ConstructorDescriptionViewportConfiguration
(int width, int height) ViewportConfiguration
(int width, int height, int x, int y) ViewportConfiguration
(ICanvas canvas) A viewport configuration that occupies the complete canvas area. -
Method Summary
-
Field Details
-
width
protected int width -
height
protected int height -
x
protected int x -
y
protected int y -
mode
-
-
Constructor Details
-
ViewportConfiguration
public ViewportConfiguration(int width, int height) -
ViewportConfiguration
public ViewportConfiguration(int width, int height, int x, int y) -
ViewportConfiguration
A viewport configuration that occupies the complete canvas area.
-
-
Method Details
-
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getX
public int getX() -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
ratio
public float ratio()computes width/height -
getMode
-
setMode
-
toString
-
clone
-
toArray
public int[] toArray()
-