AnyLogic AnyLogic
Expand
Font size
  • 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>

Enum Constant Summary

Enum Constants 
SHAPE_DRAW_2D  
SHAPE_DRAW_2D3D  
SHAPE_DRAW_3D  
Enum Constant Description

Method Summary

All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
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

Methods inherited from class java.lang.Enum

compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

SHAPE_DRAW_2D3D

public static final ShapeDrawMode SHAPE_DRAW_2D3D

SHAPE_DRAW_2D

public static final ShapeDrawMode SHAPE_DRAW_2D

SHAPE_DRAW_3D

public static final ShapeDrawMode SHAPE_DRAW_3D

Method Detail

values

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

valueOf

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 name
java.lang.NullPointerException - if the argument is null

has2D

public boolean has2D()

has3D

public boolean has3D()

getSVGString

@AnyLogicInternalAPI
public java.lang.String getSVGString()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

intersection

@AnyLogicInternalAPI
public abstract ShapeDrawMode intersection​(ShapeDrawMode drawMode)

limitBy

@AnyLogicInternalAPI
public ShapeDrawMode limitBy​(ShapeDrawMode drawMode)

intersects

@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?