Package com.anylogic.engine.presentation
- java.lang.Object
-
- java.lang.Enum<ShapeDrawMode>
-
- com.anylogic.engine.presentation.ShapeDrawMode
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShapeDrawMode>
public enum ShapeDrawMode extends java.lang.Enum<ShapeDrawMode>
SHAPE_DRAW_2D |
|
SHAPE_DRAW_2D3D |
|
SHAPE_DRAW_3D |
|
Enum Constant | Description |
---|
java.lang.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(ShapeDrawMode drawMode) |
|
boolean |
intersects(ShapeDrawMode drawMode) |
Tests if a given draw mode has any intersection with this one, i.e.
|
ShapeDrawMode |
limitBy(ShapeDrawMode drawMode) |
|
static ShapeDrawMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ShapeDrawMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final ShapeDrawMode SHAPE_DRAW_2D3D
public static final ShapeDrawMode SHAPE_DRAW_2D
public static final ShapeDrawMode SHAPE_DRAW_3D
public static ShapeDrawMode[] values()
Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ShapeDrawMode c : ShapeDrawMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
public static ShapeDrawMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
public boolean has2D()
public boolean has3D()
@AnyLogicInternalAPI public java.lang.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
-
How can we improve this article?
-