|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hardcode.gdbms.engine.spatial.ViewPort
public class ViewPort
Defines a visualization of a spatial area
| Constructor Summary | |
|---|---|
ViewPort(int width,
int height,
java.awt.Graphics2D g)
Creates a new DefaultViewPort object. |
|
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
getAdjustedExtent()
Gets the extent adjusted to the width and heigth of the image |
java.awt.geom.Rectangle2D |
getExtent()
Gets the area of data to be drawn |
java.awt.Graphics2D |
getGraphics()
|
int |
getHeight()
|
java.awt.geom.AffineTransform |
getTransformationMatrix()
matrix used to 'bring' the geometries to the image rectangle |
int |
getWidth()
|
void |
setExtent(java.awt.geom.Rectangle2D extent)
Sets the area of the data to be drawn |
void |
setHeight(int h)
|
void |
setWidth(int w)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewPort(int width,
int height,
java.awt.Graphics2D g)
width - width of the image to be obtainedheight - heigth of the image to be obtainedg - Graphics where to draw| Method Detail |
|---|
public java.awt.geom.Rectangle2D getAdjustedExtent()
public java.awt.geom.Rectangle2D getExtent()
public void setExtent(java.awt.geom.Rectangle2D extent)
extent - Rectangle2Dpublic int getWidth()
public int getHeight()
public java.awt.Graphics2D getGraphics()
public void setHeight(int h)
public void setWidth(int w)
public java.awt.geom.AffineTransform getTransformationMatrix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||