public class Angle extends Object implements AttributeValue
| Modifier and Type | Class and Description |
|---|---|
static class |
Angle.Unit
The unit
|
| Modifier and Type | Field and Description |
|---|---|
static Angle |
NO_ROTATING
No rotation
|
static Angle |
ROTATE_180
West
|
static Angle |
ROTATE_270
South
|
static Angle |
ROTATE_90
North
|
| Constructor and Description |
|---|
Angle(double value,
Angle.Unit unit) |
| Modifier and Type | Method and Description |
|---|---|
static Angle |
deg(double degs) |
String |
getValue() |
static Angle |
grad(double grads) |
static Angle |
rad(double rads) |
String |
toString() |
public static final Angle NO_ROTATING
public static final Angle ROTATE_90
public static final Angle ROTATE_180
public static final Angle ROTATE_270
public Angle(double value,
Angle.Unit unit)
value - the value of the angleunit - the unit
TODO: should be a double, but LO doesn't handle double for text rotatingpublic static Angle deg(double degs)
degs - the number of degreespublic static Angle grad(double grads)
grads - the number of gradientspublic static Angle rad(double rads)
rads - the number of radianspublic String getValue()
getValue in interface AttributeValueCopyright © 2016–2021. All rights reserved.