Package org.openstreetmap.josm.tools
Class RotationAngle.StaticRotationAngle
- java.lang.Object
-
- org.openstreetmap.josm.tools.RotationAngle.StaticRotationAngle
-
- All Implemented Interfaces:
RotationAngle
- Enclosing interface:
- RotationAngle
public static final class RotationAngle.StaticRotationAngle extends Object implements RotationAngle
A static rotation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.tools.RotationAngle
RotationAngle.StaticRotationAngle, RotationAngle.WayDirectionRotationAngle
-
-
Field Summary
Fields Modifier and Type Field Description private double
angle
-
Fields inherited from interface org.openstreetmap.josm.tools.RotationAngle
NO_ROTATION
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StaticRotationAngle(double angle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
double
getRotationAngle(IPrimitive p)
Calculates the rotation angle depending on the primitive to be displayed.int
hashCode()
String
toString()
-
-
-
Field Detail
-
angle
private final double angle
-
-
Constructor Detail
-
StaticRotationAngle
private StaticRotationAngle(double angle)
-
-
Method Detail
-
getRotationAngle
public double getRotationAngle(IPrimitive p)
Description copied from interface:RotationAngle
Calculates the rotation angle depending on the primitive to be displayed.- Specified by:
getRotationAngle
in interfaceRotationAngle
- Parameters:
p
- primitive- Returns:
- rotation angle
-
-