Package com.anylogic.engine.presentation
- java.lang.Object
- com.anylogic.engine.presentation.SVGUtils
@AnyLogicInternalAPI public class SVGUtils extends Object
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Author:
- AnyLogic North America, LLC https://anylogic.com
Modifier and Type | Method | Description |
---|---|---|
static final double | adjustArcAngle |
Moves an end point of the arc (namely, its angle) to get a certain offset from the initial point
|
static final double | angleBetween |
returns a positive angle between the start and end angles
|
static final String | svgColor |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
static final String | svgNumberFormat |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
static final String | svgNumberFormatPrecise |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
static final String | svgNumberFormatWithOptions |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
@AnyLogicInternalAPI public static final String svgColor(Color c)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public static final String svgNumberFormat(double value)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public static final String svgNumberFormatPrecise(double value)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public static final String svgNumberFormatWithOptions(double value, boolean precise)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
public static final double angleBetween(double astart, double aend, boolean clockwise)
returns a positive angle between the start and end angles
- Parameters:
astart
- the start angle, possibly negativeaend
- the end angle, possibly negativeclockwise
- direction of the arc- Returns:
- the positive angle between the two given angles
public static final double adjustArcAngle(double x, double y, double offx, double offy, boolean cw, double alimit, double cx, double cy)
Moves an end point of the arc (namely, its angle) to get a certain offset from the initial point
- Parameters:
x
- the x of the initial point of the arc endy
- the y of the initial point of the arc endoffx
- the minimum distance along the x axis from x, or (if offy = 0) minimum distance in all directionsoffy
- the minimum distance along the y axis from y, or 0cw
- if true, arc goes clockwise from (x,y) to the other end, otherwise - counterclockwisealimit
- the end angle of the arc; we should stop to leave a certain arc length in any casecx
- the x of the arc centercy
- the y of the arc center- Returns:
- the new angle of the adjusted arc end