org.jzy3d.plot3d.rendering.view
Class ViewPort

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.view.ViewPort

public class ViewPort
extends Object

A ViewPort states how a particular GL rendering should occupy screen. It is define by integer width and height, and support a left

Author:
Martin

Field Summary
protected  int height
           
protected  int width
           
protected  int x
           
protected  int y
           
 
Constructor Summary
ViewPort(int width, int height)
           
ViewPort(int width, int height, int x, int y)
           
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 void setX(int x)
           
 void setY(int y)
           
static ViewPort slice(int width, int height, float left, float right)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

protected int width

height

protected int height

x

protected int x

y

protected int y
Constructor Detail

ViewPort

public ViewPort(int width,
                int height)

ViewPort

public ViewPort(int width,
                int height,
                int x,
                int y)
Method Detail

slice

public static ViewPort slice(int width,
                             int height,
                             float left,
                             float right)

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)

toString

public String toString()
Overrides:
toString in class Object