AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, LevelElement, LevelMarkup, SVGElement, Serializable

public class CircularWall
extends AbstractShapedWall
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
CircularWall() 
CircularWall(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double radiusX, double radiusY, double rotation, double lineWidth, double zHeight, WallFillingType fillingType, Paint color)
Deprecated.
deprecated in version 8.4, will be removed in the future releases

Method Summary

Modifier and TypeMethodDescription
booleancontains(double px, double py)
Test if the shape contains the point with the given coordinates (relative to this shape's container, i.e.
BoundingRectanglegetBoundingRectangle() 
doublegetRadiusX()
Returns the "horizontal" radius of the oval wall.
doublegetRadiusY()
Returns the "vertical" radius of the oval wall.
voidsetRadius(double radius)
Sets both radiuses of the oval wall to the same given value, i.e.
voidsetRadius(double radiusX, double radiusY)
Sets radiuses of the oval wall to the given values
voidsetRadiusX(double radiusX)
Sets the "horizontal" radius of the oval wall.
voidsetRadiusY(double radiusY)
Sets the "vertical" radius of the oval wall.

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

getRotation, getX, getY, getZ, setPos, setRotation

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

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.AggregatableAnimationElement

initializeInternal, onAggregatorVisibilityChanged, postInitialize

Constructor Details

CircularWall

public CircularWall()

CircularWall

@Deprecated
public CircularWall(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double radiusX,
 double radiusY,
 double rotation,
 double lineWidth,
 double zHeight,
 WallFillingType fillingType,
 Paint color)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
owner -
drawMode -
isPublic -
x -
y -
z -
radiusX -
radiusY -
rotation -
lineWidth -
zHeight -
fillingType -
color -

Method Details

setRadiusX

public void setRadiusX(double radiusX)
Sets the "horizontal" radius of the oval wall.
Parameters:
radiusX - the "horizontal" radius of the oval wall

getRadiusX

public double getRadiusX()
Returns the "horizontal" radius of the oval wall.
Returns:
the "horizontal" radius of the oval wall

setRadiusY

public void setRadiusY(double radiusY)
Sets the "vertical" radius of the oval wall.
Parameters:
radiusY - the "vertical" radius of the oval wall

getRadiusY

public double getRadiusY()
Returns the "vertical" radius of the oval wall.
Returns:
the "vertical" radius of the oval wall

setRadius

public void setRadius(double radius)
Sets both radiuses of the oval wall to the same given value, i.e. makes it a circle.
Parameters:
radius - the circle radius

setRadius

public void setRadius(double radiusX,
 double radiusY)
Sets radiuses of the oval wall to the given values
Parameters:
radiusX - the "horizontal" radius of the oval wall
radiusY - the "vertical" radius of the oval wall

contains

public boolean contains(double px,
 double py)
Description copied from class: MarkupShape
Test if the shape contains the point with the given coordinates (relative to this shape's container, i.e. in the same system with the coordinates of this shape, x and y)
Overrides:
contains in class AbstractWall
Parameters:
px - the x coordinate relative to this shape's container
py - the y coordinate relative to this shape's container
Returns:
true if the shape contains the point with the given coordinates

getBoundingRectangle

@AnyLogicInternalAPI
public BoundingRectangle getBoundingRectangle()