nl.javel.gisbeans.map
Interface MapInterface

All Superinterfaces:
Serializable
All Known Implementing Classes:
Map

public interface MapInterface
extends Serializable

This interface defines the map.

Since:
JDK 1.0
Version:
1.0
Author:
Paul Jacobs

Field Summary
static byte AIRPHOTO
          AIRPHOTO
static byte ANGLEDEG
          ANGLEDEG
static byte ANGLERAD
          ANGLERAD
static byte CC
          CC
static double CENTIMETER_PER_INCH
          CENTIMETER_PER_INCH
static byte CL
          CL
static byte CR
          CR
static byte DD
          DD contant
static double DD_TO_METER
          DD_TO_METER
static byte FEET
          FEET contant
static double FEET_TO_METER
          FEET_TO_METER
static byte IMAGE
          IMAGE
static double INCH_TO_METER
          INCH_TO_METER
static byte INCHES
          INCHES contant
static double KILOMETER_TO_METER
          KILOMETER_TO_METER
static byte KILOMETERS
          KILOMETERS contant
static byte LC
          LC
static byte LINE
          LINE
static byte LL
          LL
static byte LR
          LR
static byte MAXX
          MAXX contant
static byte MAXY
          MAXY contant
static byte METERS
          METERS contant
static byte MILES
          MILES contant
static double MILES_TO_METER
          MILES_TO_METER
static byte MINX
          MINX contant
static byte MINY
          MINY contant
static byte POINT
          POINT
static byte POLYGON
          POLYGON
static byte TEXT
          TEXT
static byte UC
          UC
static byte UL
          UL
static byte UR
          UR
 
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
 

Field Detail

MINX

static final byte MINX
MINX contant

See Also:
Constant Field Values

MINY

static final byte MINY
MINY contant

See Also:
Constant Field Values

MAXX

static final byte MAXX
MAXX contant

See Also:
Constant Field Values

MAXY

static final byte MAXY
MAXY contant

See Also:
Constant Field Values

FEET

static final byte FEET
FEET contant

See Also:
Constant Field Values

INCHES

static final byte INCHES
INCHES contant

See Also:
Constant Field Values

KILOMETERS

static final byte KILOMETERS
KILOMETERS contant

See Also:
Constant Field Values

METERS

static final byte METERS
METERS contant

See Also:
Constant Field Values

MILES

static final byte MILES
MILES contant

See Also:
Constant Field Values

DD

static final byte DD
DD contant

See Also:
Constant Field Values

UL

static final byte UL
UL

See Also:
Constant Field Values

UC

static final byte UC
UC

See Also:
Constant Field Values

UR

static final byte UR
UR

See Also:
Constant Field Values

CL

static final byte CL
CL

See Also:
Constant Field Values

CC

static final byte CC
CC

See Also:
Constant Field Values

CR

static final byte CR
CR

See Also:
Constant Field Values

LL

static final byte LL
LL

See Also:
Constant Field Values

LC

static final byte LC
LC

See Also:
Constant Field Values

LR

static final byte LR
LR

See Also:
Constant Field Values

TEXT

static final byte TEXT
TEXT

See Also:
Constant Field Values

ANGLEDEG

static final byte ANGLEDEG
ANGLEDEG

See Also:
Constant Field Values

ANGLERAD

static final byte ANGLERAD
ANGLERAD

See Also:
Constant Field Values

IMAGE

static final byte IMAGE
IMAGE

See Also:
Constant Field Values

AIRPHOTO

static final byte AIRPHOTO
AIRPHOTO

See Also:
Constant Field Values

POLYGON

static final byte POLYGON
POLYGON

See Also:
Constant Field Values

POINT

static final byte POINT
POINT

See Also:
Constant Field Values

LINE

static final byte LINE
LINE

See Also:
Constant Field Values

FEET_TO_METER

static final double FEET_TO_METER
FEET_TO_METER

See Also:
Constant Field Values

INCH_TO_METER

static final double INCH_TO_METER
INCH_TO_METER

See Also:
Constant Field Values

KILOMETER_TO_METER

static final double KILOMETER_TO_METER
KILOMETER_TO_METER

See Also:
Constant Field Values

MILES_TO_METER

static final double MILES_TO_METER
MILES_TO_METER

See Also:
Constant Field Values

DD_TO_METER

static final double DD_TO_METER
DD_TO_METER

See Also:
Constant Field Values

CENTIMETER_PER_INCH

static final double CENTIMETER_PER_INCH
CENTIMETER_PER_INCH

See Also:
Constant Field Values
Method Detail

drawLegend

Graphics2D drawLegend(Graphics2D graphics)
                      throws GraphicsException,
                             RemoteException
draws the legend on a graphics object

Parameters:
graphics - the graphics object
Returns:
Graphics2D
Throws:
GraphicsException - on drawing failure
RemoteException - on network failure

drawMap

Graphics2D drawMap(Graphics2D graphics)
                   throws GraphicsException,
                          RemoteException
draws the map on a graphics object

Parameters:
graphics - the graphics object
Returns:
Graphics2D
Throws:
GraphicsException - on drawing failure
RemoteException - on network failure

drawReferenceMap

Graphics2D drawReferenceMap(Graphics2D graphics)
                            throws GraphicsException,
                                   RemoteException
draws the reference map on a graphics object

Parameters:
graphics - the graphics object
Returns:
Graphics2D
Throws:
GraphicsException - on drawing failure
RemoteException - on network failure

drawScalebar

Graphics2D drawScalebar(Graphics2D graphics)
                        throws GraphicsException,
                               RemoteException
draws the scalebar on a graphics object

Parameters:
graphics - the graphics object
Returns:
Graphics2D
Throws:
GraphicsException - on drawing failure
RemoteException - on network failure

getExtent

Rectangle2D getExtent()
                      throws RemoteException
Getter for property extent

Returns:
the extent of the map
Throws:
RemoteException - on network exception

getImage

ImageInterface getImage()
                        throws RemoteException
Getter for property image

Returns:
ImageInterface the value of property image.
Throws:
RemoteException - on network exception

getLayers

List getLayers()
               throws RemoteException
Getter for property layers

Returns:
List the value of property layers.
Throws:
RemoteException - on network exception

getName

String getName()
               throws RemoteException
Getter for property name

Returns:
String the value of property extent.
Throws:
RemoteException - on network exception

getReferenceMap

ReferenceMapInterface getReferenceMap()
                                      throws RemoteException
Getter for property referenceMap

Returns:
ReferenceMap the value of property referenceMap.
Throws:
RemoteException - on network exception

getScale

double getScale()
                throws RemoteException
returns the sclale of the map

Returns:
double the scale of the map in its units
Throws:
RemoteException - on network exception

getUnitImageRatio

double getUnitImageRatio()
                         throws RemoteException
returns the scale of the Image

Returns:
double the unitPerPixel
Throws:
RemoteException - on network exception

getUnits

int getUnits()
             throws RemoteException
Getter for property units

Returns:
int the value of property units.
Throws:
RemoteException - on network exception

setExtent

void setExtent(Rectangle2D extent)
               throws RemoteException
Setter for property extent.

Parameters:
extent - New value of property extent..
Throws:
RemoteException - on network exception

setImage

void setImage(ImageInterface image)
              throws RemoteException
Setter for property image.

Parameters:
image - New value of property image.
Throws:
RemoteException - on network exception

setLayers

void setLayers(List layers)
               throws RemoteException
Setter for property layers.

Parameters:
layers - New value of property layers.
Throws:
RemoteException - on network exception

setLayer

void setLayer(int index,
              LayerInterface layer)
              throws RemoteException
Setter for property layers.

Parameters:
index - Index value of layer
layer - New value of property layers.
Throws:
RemoteException - on network exception

addLayer

void addLayer(LayerInterface layer)
              throws RemoteException
Setter for property layers.

Parameters:
layer - New value of property layers.
Throws:
RemoteException - on network exception

setName

void setName(String name)
             throws RemoteException
Setter for property name.

Parameters:
name - New value of property name.
Throws:
RemoteException - on network exception

setReferenceMap

void setReferenceMap(ReferenceMapInterface referenceMap)
                     throws RemoteException
Setter for property referenceMap.

Parameters:
referenceMap - New value of property referenceMap.
Throws:
RemoteException - on network exception

setUnits

void setUnits(int units)
              throws RemoteException
Setter for property units.

Parameters:
units - New value of property units.
Throws:
RemoteException - on network exception

zoom

void zoom(double zoomFactor)
          throws RemoteException
zooms the map with a prticular factor

Parameters:
zoomFactor - (0=1)
Throws:
RemoteException - on network exception

zoomPoint

void zoomPoint(Point2D pixelPosition,
               double zoomFactor)
               throws RemoteException
zooms the map based on a given position in the image

Parameters:
pixelPosition - the position in the image
zoomFactor - the zoomFactor (0=1)
Throws:
RemoteException - on network exception

zoomRectangle

void zoomRectangle(SerializableRectangle2D rectangle)
                   throws RemoteException
zooms the map based on a given rectangle

Parameters:
rectangle - a rectangle in the map (image units)
Throws:
RemoteException - on network exception