public class ProjectionChangeVetoException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CENTER |
protected java.util.Properties |
parameters |
static java.lang.String |
PROJECTION_TYPE |
static java.lang.String |
SCALE |
Constructor and Description |
---|
ProjectionChangeVetoException()
Constructs a new projection change veto exception with
null
as its detail message and no suggested changes. |
ProjectionChangeVetoException(java.lang.String message)
Constructs a new projection change veto exception with the specified
detail message.
|
ProjectionChangeVetoException(java.lang.String message,
java.lang.Class<? extends Proj> projectionType,
java.awt.geom.Point2D center,
java.lang.Number scale)
Constructs a new projection change veto exception with the specified
detail message and common parameter objects for OpenMap projections that
can be cause for veto.
|
ProjectionChangeVetoException(java.lang.String message,
java.util.Properties suggestedChanges)
Constructs a new projection change veto exception with the specified
detail message and a Properties object containing parameter objects
representing new settings for the rejected projection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getSuggested(java.lang.String parameter) |
void |
removeSuggested(java.lang.String parameter)
Remove a suggested parameter from the event.
|
java.lang.String |
toString() |
void |
updateWithParameters(MapBean mapBean)
A helper function for the MapBean.
|
protected java.util.Properties parameters
public static final java.lang.String CENTER
public static final java.lang.String SCALE
public static final java.lang.String PROJECTION_TYPE
public ProjectionChangeVetoException()
null
as its detail message and no suggested changes. The cause is not
initialized, and may subsequently be initialized by a call to
Throwable.initCause(java.lang.Throwable)
.public ProjectionChangeVetoException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message, with no suggested changes.public ProjectionChangeVetoException(java.lang.String message, java.lang.Class<? extends Proj> projectionType, java.awt.geom.Point2D center, java.lang.Number scale)
Throwable.initCause(java.lang.Throwable)
. The
objects provided as arguments will be added to a Properties object set in
the exception.message
- the detail message.projectionType
- set to null if the new projection class type is OK,
otherwise set the projection class that should be used.center
- set to null of the new projection center is OK, otherwise
set to the new center point of the projection.scale
- set to null if the new projection scale is OK, otherwise
provide a new scale value.public ProjectionChangeVetoException(java.lang.String message, java.util.Properties suggestedChanges)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message.suggestedChanges
- A Properties object holding CENTER, SCALE,
PROJECTION_TYPE changes, or any other parameters that can be used
by the event in the updateWithParameters method.public java.lang.Object getSuggested(java.lang.String parameter)
parameter
- the key for the projection parameter.public void removeSuggested(java.lang.String parameter)
parameter
- public void updateWithParameters(MapBean mapBean)
mapBean
- public java.lang.String toString()
toString
in class java.lang.Throwable
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details