Package org.apache.sis.portrayal
Enum TransformChangeEvent.Reason
- All Implemented Interfaces:
Serializable
,Comparable<TransformChangeEvent.Reason>
,java.lang.constant.Constable
- Enclosing class:
TransformChangeEvent
The reason why the "objective to display" transform changed.
It may be because of canvas initialization, or an adjustment for a change of CRS
without change in the viewing area, or a navigation for viewing a different area.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA new value has been assigned, overwriting the previous values.A new value has been automatically computed for preserving the viewing area after a change of CRS.A relative change has been applied in units of display device (typically pixel units).A new value has been assigned as part of a wider set of changes.A relative interim change has been applied but is not yet reflected in the "objective to display" transform.A relative change has been applied in units of the objective CRS (for example in metres). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final boolean
Returnstrue
if the "objective to display" transform changed because of a change in viewing area, without change in the data themselves or in the map projection.static TransformChangeEvent.Reason
Returns the enum constant of this type with the specified name.static TransformChangeEvent.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GRID_GEOMETRY_CHANGE
A new value has been assigned as part of a wider set of changes. It typically happens when the canvas is initialized.- See Also:
-
CRS_CHANGE
A new value has been automatically computed for preserving the viewing area after a change of CRS. It typically happens when the user changes the map projection without moving to a different region.- See Also:
-
ASSIGNMENT
A new value has been assigned, overwriting the previous values. The objective CRS has not changed. It can be considered as a kind of navigation, moving to absolute coordinates and zoom levels.- See Also:
-
OBJECTIVE_NAVIGATION
A relative change has been applied in units of the objective CRS (for example in metres).- See Also:
-
DISPLAY_NAVIGATION
A relative change has been applied in units of display device (typically pixel units).- See Also:
-
INTERIM
A relative interim change has been applied but is not yet reflected in the "objective to display" transform. This kind of change is not fired byPlanarCanvas
but may be fired by subclasses such asinvalid reference
org.apache.sis.gui.map.MapCanvas
-
-
Constructor Details
-
Reason
private Reason()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-