|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jview.JImageComponent
jview.JAntarctica
public class JAntarctica
Displays a stereographic projection of antarctica. The formulars governing a stereographic projection projection are
x = R·sin(λ)
y = R·cos(λ),
R = cos(φ)/(1-sin(φ))
for Antarctica. Thus with inversions
tan(λ) = x/y
sin(φ) = (k²-1)/(k²+1),
k = (x²+y²)
This class provides methods for converting geographical coordinates in x-y of
a stereographic projection, but does not display anything except antarctica.
The image of antarctica is loaded on init. This image is copyrgiht under
Australian Antarctic Division 2002 Kingston Tasmania 7050. Downloaded from Antarctica and scaled to fit.
| Nested Class Summary | |
|---|---|
static class |
JAntarctica.Show
Shows the earth in a mercator projection. |
| Nested classes/interfaces inherited from class jview.JImageComponent |
|---|
JImageComponent.Display |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private static String |
DEFANTARCTICA
The location of the mercator map. |
private static double |
DEFRADIUS
The default scale factor in x. |
private static String |
DEFURLRESOURCES
The url-resources. |
private static double |
DEFXORIGIN
The default origin in x. |
private static double |
DEFYORIGIN
The default origin in y. |
private ResourceSupplying |
info
My properties. |
static String |
KEY_ANTARCTICA
The key to the location of the mercator map as an image. |
static String |
KEY_RADIUS
The scale factor in x if coordinates are given in degrees. |
static String |
KEY_XORIGIN
The x-position of the zero point in geographical coordinates. |
static String |
KEY_YORIGIN
The y-position of the zero point in geographical coordinates. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JAntarctica(ResourceSupplying info)
Constructs a new JMosaic with at least one of the row and column numbers specified. |
|
| Method Summary | |
|---|---|
ResourceSupplying |
getComposedProperties()
Returns my properties. |
Point2D |
getGeography(Point pix)
Inverses the getPixel(double, double) method using the input coordinates on the
image. |
Point |
getPixel(double lambda,
double phi)
Calculates the position on the mercator image of a geographical position on earth. |
void |
init()
Loads the image on init. |
void |
setComposedProperties(ResourceSupplying prop)
Sets the proberties of the mosaic and defines its layout as grid layout. |
| Methods inherited from class jview.JImageComponent |
|---|
createBufferedImage, getImage, getPreferredSize, paintComponent, setImage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_ANTARCTICA
public static final String KEY_XORIGIN
public static final String KEY_YORIGIN
public static final String KEY_RADIUS
private static final String DEFURLRESOURCES
private static final String DEFANTARCTICA
private static final double DEFRADIUS
private static final double DEFXORIGIN
private static final double DEFYORIGIN
private ResourceSupplying info
| Constructor Detail |
|---|
public JAntarctica(ResourceSupplying info)
| Method Detail |
|---|
public ResourceSupplying getComposedProperties()
getComposedProperties in interface ResourceComposedpublic void setComposedProperties(ResourceSupplying prop)
setComposedProperties in interface ResourceAwarepublic void init()
init in interface Initializable
public Point getPixel(double lambda,
double phi)
lambda - Geographical longitude in degrees.phi - Geographical lattitude in degrees.public Point2D getGeography(Point pix)
getPixel(double, double) method using the input coordinates on the
image.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||