com.charliemouse.cambozola
Class PercentArea
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
PercentArea
public PercentArea()
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