Simulcast 4.2

gov.nasa.gsfc.aisb.simulcast.util
Class SinglePoleMapParms

java.lang.Object
  extended by gov.nasa.gsfc.aisb.simulcast.util.SinglePoleMapParms
All Implemented Interfaces:
MapParms

public class SinglePoleMapParms
extends java.lang.Object
implements MapParms


Constructor Summary
SinglePoleMapParms(boolean north, int width, int height)
          SinglePoleMapParms.
SinglePoleMapParms(XmlParser parser)
           
 
Method Summary
 void drawBorder(java.awt.Graphics g)
          drawBorder.
 void drawGrid(java.awt.Graphics g)
          drawGrid.
 void drawImage(java.awt.Graphics g, java.awt.Image image)
          drawImage.
 void drawLine(java.awt.Graphics g, double lat0, double lon0, double lat1, double lon1)
          drawLine.
 void drawPoint(java.awt.Graphics g, double lat, double lon, int size)
          drawPoint.
 void drawText(java.awt.Graphics g, double lat, double lon, java.lang.String text)
          drawText.
 void fillPoly(java.awt.Graphics g, double lat0, double lon0, double lat1, double lon1, double lat2, double lon2, double lat3, double lon3)
          fillPoly.
 java.lang.String getAreaFilter()
          getAreaFilter.
 int getHeight()
          getHeight.
 double[] getLatLon(int x, int y)
          getLatLon.
 java.awt.Rectangle getViewport()
          getViewport.
 int getWidth()
          getWidth.
 boolean isVisible(double lat, double lon)
          isVisible.
 boolean isVisible(double minLat, double maxLat, double minLon, double maxLon)
           
 boolean isVisible(Geo.Extents extents)
           
 boolean isZoomable()
          isZoomable.
 java.awt.Rectangle resize(int width, int height)
          resize.
 java.awt.Rectangle zoom(double startStbdLat, double startStbdLon, double startPortLat, double startPortLon, double stopStbdLat, double stopStbdLon, double stopPortLat, double stopPortLon)
          zoom.
 java.awt.Rectangle zoom(double factor, int x, int y)
           
 java.awt.Rectangle zoom(int x0, int y0, int x1, int y1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinglePoleMapParms

public SinglePoleMapParms(boolean north,
                          int width,
                          int height)
SinglePoleMapParms.


SinglePoleMapParms

public SinglePoleMapParms(XmlParser parser)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getWidth

public int getWidth()
getWidth.

Specified by:
getWidth in interface MapParms

getHeight

public int getHeight()
getHeight.

Specified by:
getHeight in interface MapParms

getViewport

public java.awt.Rectangle getViewport()
getViewport.

Specified by:
getViewport in interface MapParms

isZoomable

public boolean isZoomable()
isZoomable.

Specified by:
isZoomable in interface MapParms

getLatLon

public double[] getLatLon(int x,
                          int y)
getLatLon.

Specified by:
getLatLon in interface MapParms

getAreaFilter

public java.lang.String getAreaFilter()
getAreaFilter.

Specified by:
getAreaFilter in interface MapParms

isVisible

public boolean isVisible(double lat,
                         double lon)
isVisible.

Specified by:
isVisible in interface MapParms

isVisible

public boolean isVisible(double minLat,
                         double maxLat,
                         double minLon,
                         double maxLon)
Specified by:
isVisible in interface MapParms

isVisible

public boolean isVisible(Geo.Extents extents)
Specified by:
isVisible in interface MapParms

resize

public java.awt.Rectangle resize(int width,
                                 int height)
resize.

Specified by:
resize in interface MapParms

zoom

public java.awt.Rectangle zoom(double startStbdLat,
                               double startStbdLon,
                               double startPortLat,
                               double startPortLon,
                               double stopStbdLat,
                               double stopStbdLon,
                               double stopPortLat,
                               double stopPortLon)
zoom.

Specified by:
zoom in interface MapParms

zoom

public java.awt.Rectangle zoom(int x0,
                               int y0,
                               int x1,
                               int y1)
Specified by:
zoom in interface MapParms

zoom

public java.awt.Rectangle zoom(double factor,
                               int x,
                               int y)
Specified by:
zoom in interface MapParms

drawImage

public void drawImage(java.awt.Graphics g,
                      java.awt.Image image)
drawImage.

Specified by:
drawImage in interface MapParms

drawText

public void drawText(java.awt.Graphics g,
                     double lat,
                     double lon,
                     java.lang.String text)
drawText.

Specified by:
drawText in interface MapParms

drawPoint

public void drawPoint(java.awt.Graphics g,
                      double lat,
                      double lon,
                      int size)
drawPoint.

Specified by:
drawPoint in interface MapParms

drawLine

public void drawLine(java.awt.Graphics g,
                     double lat0,
                     double lon0,
                     double lat1,
                     double lon1)
drawLine.

Specified by:
drawLine in interface MapParms

fillPoly

public void fillPoly(java.awt.Graphics g,
                     double lat0,
                     double lon0,
                     double lat1,
                     double lon1,
                     double lat2,
                     double lon2,
                     double lat3,
                     double lon3)
fillPoly.

Specified by:
fillPoly in interface MapParms

drawGrid

public void drawGrid(java.awt.Graphics g)
drawGrid.

Specified by:
drawGrid in interface MapParms

drawBorder

public void drawBorder(java.awt.Graphics g)
drawBorder.

Specified by:
drawBorder in interface MapParms

Simulcast 4.2