Package com.anylogic.engine.presentation
- java.lang.Object
-
- com.anylogic.engine.presentation.SVGUtils
@AnyLogicInternalAPI public class SVGUtils extends java.lang.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
static 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
|
static double |
angleBetween(double astart,
double aend,
boolean clockwise) |
returns a positive angle between the start and end angles
|
static java.lang.String |
svgColor(java.awt.Color c) |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
static java.lang.String |
svgNumberFormat(double value) |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
static java.lang.String |
svgNumberFormatPrecise(double value) |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
static java.lang.String |
svgNumberFormatWithOptions(double value,
boolean precise) |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
Modifier and Type | Method | Description |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@AnyLogicInternalAPI public static final java.lang.String svgColor(java.awt.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 java.lang.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 java.lang.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 java.lang.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