AnyLogic
Expand
Font size
All Implemented Interfaces:
AbstractPositionalMarkup, AggregatableAnimationElement, HasLevel, LevelElement, LevelMarkup, SVGElement, UsdElement, Serializable
Direct Known Subclasses:
CircularWall, RectangularWall

public abstract class AbstractShapedWall
extends AbstractWall
implements AbstractPositionalMarkup
See Also:
Serialized Form

Field Summary

Fields inherited from interface com.anylogic.engine.presentation.UsdElement

ID_NOT_SET

Constructor Summary

ConstructorDescription
AbstractShapedWall() 
AbstractShapedWall(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double rotation, double lineWidth, double zHeight, WallFillingType fillingType, Paint color) 

Method Summary

Modifier and TypeMethodDescription
doublegetRotation()
Returns the rotation of the shape.
doublegetX()
Returns the x coordinate of the shape.
doublegetY()
Returns the y coordinate of the shape.
doublegetZ()
Returns the z coordinate of the shape.
voidsetPos(double x, double y, double z)
Sets coordinates of the shape
voidsetRotation(double rotation)
Sets the rotation of the shape.

Methods inherited from class com.anylogic.engine.markup.AbstractWall

contains, getColor, getFillingType, getLineWidth, getTexture, getZHeight, setColor, setColor, setFillingType, setLineWidth, setZHeight

Methods inherited from class com.anylogic.engine.markup.AbstractLevelMarkup

getDrawMode, getLevel, setLevel

Methods inherited from class com.anylogic.engine.markup.MarkupShape

error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.AbstractPositionalMarkup

getSpace, isVisible

Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement

initializeInternal, onAggregatorVisibilityChanged, postInitialize

Methods inherited from interface com.anylogic.engine.presentation.SVGElement

executeUserAction, findSVGElement, getSVGId, removeSVGFromOwner, resetSVGState, updateSVGProperties

Methods inherited from interface com.anylogic.engine.presentation.UsdElement

getOrGenerateUSDId

Constructor Details

AbstractShapedWall

public AbstractShapedWall()

AbstractShapedWall

public AbstractShapedWall(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double rotation,
 double lineWidth,
 double zHeight,
 WallFillingType fillingType,
 Paint color)

Method Details

getX

public double getX()
Returns the x coordinate of the shape.
Specified by:
getX in interface AbstractPositionalMarkup
Returns:
the x coordinate of the shape

getY

public double getY()
Returns the y coordinate of the shape.
Specified by:
getY in interface AbstractPositionalMarkup
Returns:
the y coordinate of the shape

getZ

public double getZ()
Returns the z coordinate of the shape.
Specified by:
getZ in interface AbstractPositionalMarkup
Returns:
the z coordinate of the shape

setPos

public void setPos(double x,
 double y,
 double z)
Sets coordinates of the shape
Parameters:
x - the new value of x coordinate
y - the new value of y coordinate
z - the new value of z coordinate

setRotation

public void setRotation(double rotation)
Sets the rotation of the shape.
Parameters:
r - the new value of rotation in radians

getRotation

public double getRotation()
Returns the rotation of the shape.
Specified by:
getRotation in interface AbstractPositionalMarkup
Returns:
the rotation of the shape in radians, clockwise