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

public class RectangularWall
extends AbstractShapedWall
See Also:
Serialized Form

Field Summary

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

ID_NOT_SET

Constructor Summary

ConstructorDescription
RectangularWall() 
RectangularWall(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double width, double height, 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() 
doublegetHeight()
Returns the height of the rectangular wall.
doublegetWidth()
Returns the width of the rectangular wall.
voidsetSize(double width, double height)
Sets the width and height of the rectangular 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.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

RectangularWall

public RectangularWall()

RectangularWall

@Deprecated
public RectangularWall(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double width,
 double height,
 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 -
width -
height -
rotation -
lineWidth -
zHeight -
fillingType -
color -

Method Details

getWidth

public double getWidth()
Returns the width of the rectangular wall.
Returns:
the width of the rectangular wall

getHeight

public double getHeight()
Returns the height of the rectangular wall.
Returns:
the height of the rectangular wall

setSize

public void setSize(double width,
 double height)
Sets the width and height of the rectangular wall.
Parameters:
width - the new width of the rectangular wall
height - the new height of the rectangular 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()