Package com.anylogic.engine.presentation
- java.lang.Object
- java.lang.Enum<ShapeDrawMode>
- com.anylogic.engine.presentation.ShapeDrawMode
- All Implemented Interfaces:
Serializable
,Comparable<ShapeDrawMode>
,Constable
public enum ShapeDrawMode extends Enum<ShapeDrawMode>
Enum.EnumDesc<E extends Enum<E>>
Modifier and Type | Method | Description |
---|---|---|
String | getSVGString() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
boolean | has2D() | |
boolean | has3D() | |
abstract ShapeDrawMode | intersection | |
boolean | intersects |
Tests if a given draw mode has any intersection with this one, i.e.
|
ShapeDrawMode | limitBy | |
static ShapeDrawMode | valueOf |
Returns the enum constant of this class with the specified name.
|
static ShapeDrawMode[] | values() |
Returns an array containing the constants of this enum class, in
the order they are declared.
|
public static ShapeDrawMode[] values()
Returns an array containing the constants of this enum class, in
the order they are declared.
- Returns:
- an array containing the constants of this enum class, in the order they are declared
public static ShapeDrawMode valueOf(String name)
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
public boolean has2D()
public boolean has3D()
@AnyLogicInternalAPI public String getSVGString()
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 abstract ShapeDrawMode intersection(ShapeDrawMode drawMode)
@AnyLogicInternalAPI public ShapeDrawMode limitBy(ShapeDrawMode drawMode)
@AnyLogicLegacyAPI public boolean intersects(ShapeDrawMode drawMode)
Tests if a given draw mode has any intersection with this one, i.e.
both have 2D or 3D or both
- Parameters:
drawMode
- another draw mode- Returns:
- true if this draw mode intersects with another one, false otherwise