Package com.charliemouse.cambozola
Class PercentArea
- java.lang.Object
-
- com.charliemouse.cambozola.PercentArea
-
public class PercentArea extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PercentArea()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
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
-
-
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 classjava.lang.Object
-
-