|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.proj.BasicProjectionLoader
com.bbn.openmap.proj.CartesianLoader
public class CartesianLoader
ProjectionLoader to add the Cartesian projection to an OpenMap application. There are some properties you can set for the Cartesian projection, namely limits on where it can pan. If you don't set the limits, the projection will just keep going. You can use the anchorX and anchorY settings to hold the map against some of the limits.
topLimit=top coordinate limit bottomLimit=bottom coordinate limit leftLimit=left side coordinate limit rightLimit=right side coordinate limit anchorX=horizontal coordinate to set on projection before checking limits anchorY=vertical coordinate to set on projection before checking limits
BasicProjectionLoader| Field Summary | |
|---|---|
static java.lang.String |
AnchorXProperty
|
static java.lang.String |
AnchorYProperty
|
protected double |
bottomLimit
The coordinate limit of the bottom side of the projection. |
static java.lang.String |
BottomLimitProperty
|
protected double |
leftLimit
The coordinate limit of the left side of the projection. |
static java.lang.String |
LeftLimitProperty
|
protected java.awt.geom.Point2D |
limitAnchorPoint
A point that can be used for force the projection against the limits. |
protected double |
rightLimit
The coordinate limit of the right side of the projection. |
static java.lang.String |
RightLimitProperty
|
protected double |
topLimit
The coordinate limit of the top side of the projection. |
static java.lang.String |
TopLimitProperty
|
| Fields inherited from class com.bbn.openmap.proj.BasicProjectionLoader |
|---|
description, DescriptionProperty, prettyName, PrettyNameProperty, projClass |
| Fields inherited from class com.bbn.openmap.OMComponent |
|---|
i18n, propertyPrefix |
| Fields inherited from class com.bbn.openmap.MapHandlerChild |
|---|
beanContextChildSupport, isolated |
| Fields inherited from interface com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Constructor Summary | |
|---|---|
CartesianLoader()
|
|
| Method Summary | |
|---|---|
Projection |
create(java.util.Properties props)
Create the projection with the given parameters. |
double |
getBottomLimit()
|
double |
getLeftLimit()
|
java.awt.geom.Point2D |
getLimitAnchorPoint()
|
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the current values of the OMComponent. |
java.util.Properties |
getPropertyInfo(java.util.Properties props)
Method to fill in a Properties object with values reflecting the properties able to be set on this PropertyConsumer. |
double |
getRightLimit()
|
double |
getTopLimit()
|
void |
setBottomLimit(double bottomLimit)
|
void |
setLeftLimit(double leftLimit)
|
void |
setLimitAnchorPoint(java.awt.geom.Point2D limitAnchorPoint)
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent. |
void |
setRightLimit(double rightLimit)
|
void |
setTopLimit(double topLimit)
|
| Methods inherited from class com.bbn.openmap.proj.BasicProjectionLoader |
|---|
convertToLLP, getDescription, getPrettyName, getProjectionClass, setDescription, setPrettyName |
| Methods inherited from class com.bbn.openmap.OMComponent |
|---|
getPropertyPrefix, setProperties, setPropertyPrefix |
| Methods inherited from class com.bbn.openmap.MapHandlerChild |
|---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bbn.openmap.proj.ProjectionLoader |
|---|
getDescription, getPrettyName, getProjectionClass |
| Field Detail |
|---|
public static final java.lang.String TopLimitProperty
public static final java.lang.String BottomLimitProperty
public static final java.lang.String RightLimitProperty
public static final java.lang.String LeftLimitProperty
public static final java.lang.String AnchorXProperty
public static final java.lang.String AnchorYProperty
protected double leftLimit
protected double rightLimit
protected double topLimit
protected double bottomLimit
protected java.awt.geom.Point2D limitAnchorPoint
| Constructor Detail |
|---|
public CartesianLoader()
| Method Detail |
|---|
public Projection create(java.util.Properties props)
throws ProjectionException
create in interface ProjectionLoadercreate in class BasicProjectionLoaderProjectionException - if a parameter is missing or invalid
public void setProperties(java.lang.String prefix,
java.util.Properties props)
OMComponent
setProperties in interface PropertyConsumersetProperties in class BasicProjectionLoaderprefix - the token to prefix the property namesprops - the Properties objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties in interface PropertyConsumergetProperties in class BasicProjectionLoaderprops - a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.
public java.util.Properties getPropertyInfo(java.util.Properties props)
OMComponent
getPropertyInfo in interface PropertyConsumergetPropertyInfo in class BasicProjectionLoaderprops - a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
public double getBottomLimit()
public void setBottomLimit(double bottomLimit)
public double getLeftLimit()
public void setLeftLimit(double leftLimit)
public java.awt.geom.Point2D getLimitAnchorPoint()
public void setLimitAnchorPoint(java.awt.geom.Point2D limitAnchorPoint)
public double getRightLimit()
public void setRightLimit(double rightLimit)
public double getTopLimit()
public void setTopLimit(double topLimit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||