com.charliemouse.cambozola

Class PercentArea

public class PercentArea extends Object

com/charliemouse/cambozola/PercentArea.java Copyright (C) Andy Wilcock, 2003. Available from http://www.charliemouse.com Cambozola is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Cambozola is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Cambozola; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Field Summary
static intDOWN
static intLEFT
static intRIGHT
static intUP
Constructor Summary
PercentArea()
Method Summary
RectanglegetArea(int width, int height)
doublegetHeight()
doublegetWidth()
booleanpanHorizontal(int dir)
booleanpanVertical(int dir)
voidreset()
booleansetBounds(double ax1, double ay1, double ax2, double ay2)
booleansetBoundsAspect(double cx, double cy, double w, double h)
StringtoString()
booleanzoomIn()
booleanzoomOut()

Field Detail

DOWN

public static final int DOWN

LEFT

public static final int LEFT

RIGHT

public static final int RIGHT

UP

public static final int UP

Constructor Detail

PercentArea

public PercentArea()

Method Detail

getArea

public Rectangle getArea(int width, int height)

getHeight

public double getHeight()

getWidth

public double getWidth()

panHorizontal

public boolean panHorizontal(int dir)

panVertical

public boolean panVertical(int dir)

reset

public void reset()

setBounds

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

setBoundsAspect

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

toString

public String toString()

zoomIn

public boolean zoomIn()

zoomOut

public boolean zoomOut()