|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Zoomable
Defines an interface to zoomable objects.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai 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.
Malai is distributed 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.
05/11/2010
Field Summary | |
---|---|
static double |
MAX_ZOOM
The biggest zoom we can do (4.5) |
static double |
MIN_ZOOM
The smallest zoom we can do (0.25) . |
static double |
ZOOM_INCREMENT
The increment of a zooming (0.25). |
Method Summary | |
---|---|
double |
getZoom()
|
java.awt.geom.Point2D |
getZoomedPoint(double x,
double y)
Transforms the given point in a point which coordinates have been modified to take account of the zoom level. |
java.awt.geom.Point2D |
getZoomedPoint(java.awt.Point pt)
Transforms the given point in a point which coordinates have been modified to take account of the zoom level. |
void |
setZoom(double x,
double y,
double zoomingLevel)
Zooms in the zoomable object. |
Field Detail |
---|
static final double ZOOM_INCREMENT
static final double MAX_ZOOM
static final double MIN_ZOOM
Method Detail |
---|
double getZoom()
void setZoom(double x, double y, double zoomingLevel)
zoomingLevel
- The zooming level.x
- The X-coordinate of the location to zoom.y
- The Y-coordinate of the location to zoom.java.awt.geom.Point2D getZoomedPoint(double x, double y)
x
- The X-coordinate of the point to modify.y
- The Y-coordinate of the point to modify.
java.awt.geom.Point2D getZoomedPoint(java.awt.Point pt)
pt
- The point to transform.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |