public class CircularWall extends AbstractShapedWall
Constructor and Description |
---|
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,
java.awt.Paint color)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double px,
double py)
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)
|
BoundingRectangle |
getBoundingRectangle() |
double |
getRadiusX()
Returns the "horizontal" radius of the oval wall.
|
double |
getRadiusY()
Returns the "vertical" radius of the oval wall.
|
void |
setRadius(double radius)
Sets both radiuses of the oval wall to the same given value,
i.e. makes it a circle.
|
void |
setRadius(double radiusX,
double radiusY)
Sets radiuses of the oval wall to the given values
|
void |
setRadiusX(double radiusX)
Sets the "horizontal" radius of the oval wall.
|
void |
setRadiusY(double radiusY)
Sets the "vertical" radius of the oval wall.
|
getRotation, getX, getY, getZ, setPos, setRotation
getColor, getFillingType, getLineWidth, getTexture, getZHeight, setColor, setColor, setFillingType, setLineWidth, setZHeight
getDrawMode, getLevel, setLevel
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, onAggregatorVisibilityChanged, postInitialize
public 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, java.awt.Paint color)
owner
- drawMode
- isPublic
- x
- y
- z
- radiusX
- radiusY
- rotation
- lineWidth
- zHeight
- fillingType
- color
- public void setRadiusX(double radiusX)
radiusX
- the "horizontal" radius of the oval wallpublic double getRadiusX()
public void setRadiusY(double radiusY)
radiusY
- the "vertical" radius of the oval wallpublic double getRadiusY()
public void setRadius(double radius)
radius
- the circle radiuspublic void setRadius(double radiusX, double radiusY)
radiusX
- the "horizontal" radius of the oval wallradiusY
- the "vertical" radius of the oval wallpublic boolean contains(double px, double py)
MarkupShape
contains
in class AbstractWall
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containertrue
if the shape contains the point with the given
coordinates@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
Copyright © AnyLogic North America, LLC. All Rights Reserved.