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 java.lang.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 doubleangle-
Fields inherited from interface org.openstreetmap.josm.tools.RotationAngle
NO_ROTATION
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStaticRotationAngle(double angle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)doublegetRotationAngle(IPrimitive p)Calculates the rotation angle depending on the primitive to be displayed.inthashCode()java.lang.StringtoString()
-
-
-
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:RotationAngleCalculates the rotation angle depending on the primitive to be displayed.- Specified by:
getRotationAnglein interfaceRotationAngle- Parameters:
p- primitive- Returns:
- rotation angle in radians, clockwise starting from up/north
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-