|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.javel.gisbeans.map.Map
public class Map
Provides the implementation of a Map.
| Field Summary |
|---|
| Fields inherited from interface nl.javel.gisbeans.map.MapInterface |
|---|
AIRPHOTO, ANGLEDEG, ANGLERAD, CC, CENTIMETER_PER_INCH, CL, CR, DD, DD_TO_METER, FEET, FEET_TO_METER, IMAGE, INCH_TO_METER, INCHES, KILOMETER_TO_METER, KILOMETERS, LC, LINE, LL, LR, MAXX, MAXY, METERS, MILES, MILES_TO_METER, MINX, MINY, POINT, POLYGON, TEXT, UC, UL, UR |
| Constructor Summary | |
|---|---|
Map()
constructs a new Map |
|
| Method Summary | |
|---|---|
void |
addLayer(LayerInterface layer)
Setter for property layers. |
Graphics2D |
drawLegend(Graphics2D graphics)
draws the legend on a graphics object |
Graphics2D |
drawMap(Graphics2D graphics)
draws the map on a graphics object |
Graphics2D |
drawReferenceMap(Graphics2D graphics)
draws the reference map on a graphics object |
Graphics2D |
drawScalebar(Graphics2D graphics)
draws the scalebar on a graphics object |
Rectangle2D |
getExtent()
Getter for property extent |
ImageInterface |
getImage()
Getter for property image |
List |
getLayers()
Getter for property layers |
String |
getName()
Getter for property name |
ReferenceMapInterface |
getReferenceMap()
Getter for property referenceMap |
double |
getScale()
returns the sclale of the map |
double |
getUnitImageRatio()
returns the scale of the Image |
int |
getUnits()
Getter for property units |
void |
setExtent(Rectangle2D extent)
Setter for property extent. |
void |
setImage(ImageInterface image)
Setter for property image. |
void |
setLayer(int index,
LayerInterface layer)
Setter for property layers. |
void |
setLayers(List layers)
Setter for property layers. |
void |
setName(String name)
Setter for property name. |
void |
setReferenceMap(ReferenceMapInterface referenceMap)
Setter for property referenceMap. |
void |
setUnits(int units)
Setter for property units. |
void |
zoom(double zoomFactor)
zooms the map with a prticular factor |
void |
zoomPoint(Point2D pixelPosition,
double zoomFactor)
zooms the map based on a given position in the image |
void |
zoomRectangle(SerializableRectangle2D rectangle)
zooms the map based on a given rectangle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Map()
| Method Detail |
|---|
public void addLayer(LayerInterface layer)
MapInterface
addLayer in interface MapInterfacelayer - New value of property layers.MapInterface.addLayer(LayerInterface)public Graphics2D drawLegend(Graphics2D graphics)
MapInterface
drawLegend in interface MapInterfacegraphics - the graphics object
MapInterface.drawLegend(java.awt.Graphics2D)
public Graphics2D drawMap(Graphics2D graphics)
throws GraphicsException
MapInterface
drawMap in interface MapInterfacegraphics - the graphics object
GraphicsException - on drawing failureMapInterface.drawMap(Graphics2D)public Graphics2D drawReferenceMap(Graphics2D graphics)
MapInterface
drawReferenceMap in interface MapInterfacegraphics - the graphics object
MapInterface.drawReferenceMap(Graphics2D)public Graphics2D drawScalebar(Graphics2D graphics)
MapInterface
drawScalebar in interface MapInterfacegraphics - the graphics object
MapInterface.drawScalebar(Graphics2D)public Rectangle2D getExtent()
MapInterface
getExtent in interface MapInterfaceMapInterface.getExtent()public ImageInterface getImage()
MapInterface
getImage in interface MapInterfaceMapInterface.getImage()public List getLayers()
MapInterface
getLayers in interface MapInterfaceMapInterface.getLayers()public String getName()
MapInterface
getName in interface MapInterfaceMapInterface.getName()public double getScale()
MapInterface
getScale in interface MapInterfaceMapInterface.getScale()public ReferenceMapInterface getReferenceMap()
MapInterface
getReferenceMap in interface MapInterfaceMapInterface.getReferenceMap()public double getUnitImageRatio()
getUnitImageRatio in interface MapInterfacepublic int getUnits()
MapInterface
getUnits in interface MapInterfaceMapInterface.getUnits()public void setExtent(Rectangle2D extent)
MapInterface
setExtent in interface MapInterfaceextent - New value of property extent..MapInterface.setExtent(java.awt.geom.Rectangle2D)public void setImage(ImageInterface image)
MapInterface
setImage in interface MapInterfaceimage - New value of property image.MapInterface.setImage(ImageInterface)public void setLayers(List layers)
MapInterface
setLayers in interface MapInterfacelayers - New value of property layers.MapInterface.setLayers(List)
public void setLayer(int index,
LayerInterface layer)
MapInterface
setLayer in interface MapInterfaceindex - Index value of layerlayer - New value of property layers.MapInterface.setLayer(int, LayerInterface)public void setName(String name)
MapInterface
setName in interface MapInterfacename - New value of property name.MapInterface.setName(String)public void setReferenceMap(ReferenceMapInterface referenceMap)
MapInterface
setReferenceMap in interface MapInterfacereferenceMap - New value of property referenceMap.MapInterface.setReferenceMap(ReferenceMapInterface)public void setUnits(int units)
MapInterface
setUnits in interface MapInterfaceunits - New value of property units.MapInterface.setUnits(int)public void zoom(double zoomFactor)
MapInterface
zoom in interface MapInterfacezoomFactor - (0=1)MapInterface.zoom(double)
public void zoomPoint(Point2D pixelPosition,
double zoomFactor)
MapInterface
zoomPoint in interface MapInterfacepixelPosition - the position in the imagezoomFactor - the zoomFactor (0=1)#zoomPoint(java.awt.geom.Point2D,
double)public void zoomRectangle(SerializableRectangle2D rectangle)
MapInterface
zoomRectangle in interface MapInterfacerectangle - a rectangle in the map (image units)#zoomRectangle(nl.javel.gisbeans.geom.SerializableRectangle2D)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||