public class PercentArea
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DOWN |
static int |
LEFT |
static int |
RIGHT |
static int |
UP |
Constructor and Description |
---|
PercentArea() |
Modifier and Type | Method and Description |
---|---|
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() |
public static final int LEFT
public static final int RIGHT
public static final int UP
public static final int DOWN
public boolean setBounds(double ax1, double ay1, double ax2, double ay2)
public boolean setBoundsAspect(double cx, double cy, double w, double h)
public void reset()
public double getWidth()
public double getHeight()
public java.awt.Rectangle getArea(int width, int height)
public boolean zoomIn()
public boolean zoomOut()
public boolean panHorizontal(int dir)
public boolean panVertical(int dir)
public java.lang.String toString()
toString
in class java.lang.Object