com.charliemouse.cambozola
Class PercentArea

java.lang.Object
  extended by com.charliemouse.cambozola.PercentArea

public class PercentArea
extends java.lang.Object


Field Summary
static int DOWN
           
static int LEFT
           
static int RIGHT
           
static int UP
           
 
Constructor Summary
PercentArea()
           
 
Method Summary
 java.awt.Rectangle getArea(int width, int height)
           
 double getHeight()
           
 double getWidth()
           
 boolean panHorizontal(int dir)
           
 boolean panVertical(int dir)
           
 void reset()
           
 boolean setBounds(double ax1, double ay1, double ax2, double ay2)
           
 boolean setBoundsAspect(double cx, double cy, double w, double h)
           
 java.lang.String toString()
           
 boolean zoomIn()
           
 boolean zoomOut()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

UP

public static final int UP
See Also:
Constant Field Values

DOWN

public static final int DOWN
See Also:
Constant Field Values
Constructor Detail

PercentArea

public PercentArea()
Method Detail

setBounds

public boolean setBounds(double ax1,
                         double ay1,
                         double ax2,
                         double ay2)

setBoundsAspect

public boolean setBoundsAspect(double cx,
                               double cy,
                               double w,
                               double h)

reset

public void reset()

getWidth

public double getWidth()

getHeight

public double getHeight()

getArea

public java.awt.Rectangle getArea(int width,
                                  int height)

zoomIn

public boolean zoomIn()

zoomOut

public boolean zoomOut()

panHorizontal

public boolean panHorizontal(int dir)

panVertical

public boolean panVertical(int dir)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object