org.rubato.composer.view2d
Class WindowConfig

java.lang.Object
  extended by org.rubato.composer.view2d.WindowConfig

public final class WindowConfig
extends java.lang.Object


Field Summary
 int height
           
 double tickX
           
 double tickY
           
 int width
           
 double x_max
           
 double x_min
           
 double y_max
           
 double y_min
           
 
Constructor Summary
WindowConfig()
           
 
Method Summary
 void copy(WindowConfig config)
           
 double screenToWorldX(int x)
           
 double screenToWorldY(int y)
           
 void setLimits(double xmin, double xmax, double ymin, double ymax)
           
 void setSize(int w, int h)
           
 void translate(int dx, int dy, WindowConfig config)
           
 int worldToScreenX(double x)
           
 int worldToScreenY(double y)
           
 void zoom(double fx, double fy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x_min

public double x_min

x_max

public double x_max

y_min

public double y_min

y_max

public double y_max

width

public int width

height

public int height

tickX

public double tickX

tickY

public double tickY
Constructor Detail

WindowConfig

public WindowConfig()
Method Detail

setLimits

public void setLimits(double xmin,
                      double xmax,
                      double ymin,
                      double ymax)

setSize

public void setSize(int w,
                    int h)

zoom

public void zoom(double fx,
                 double fy)

screenToWorldX

public double screenToWorldX(int x)

screenToWorldY

public double screenToWorldY(int y)

worldToScreenX

public int worldToScreenX(double x)

worldToScreenY

public int worldToScreenY(double y)

copy

public void copy(WindowConfig config)

translate

public void translate(int dx,
                      int dy,
                      WindowConfig config)