Package com.anylogic.engine.markup
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.AbstractShapedWall
- Methods inherited from class com.anylogic.engine.markup.AbstractWall
- Methods inherited from class com.anylogic.engine.markup.AbstractLevelMarkup
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Constructor Details
- Method Details
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,LevelElement
,LevelMarkup
,SVGElement
,Serializable
public class RectangularWall extends AbstractShapedWall
- See Also:
- Serialized Form
Constructor | Description |
---|---|
RectangularWall() | |
RectangularWall |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method | Description |
---|---|---|
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
BoundingRectangle | getBoundingRectangle() | |
double | getHeight() |
Returns the height of the rectangular wall.
|
double | getWidth() |
Returns the width of the rectangular wall.
|
void | setSize |
Sets the width and height of the rectangular wall.
|
getRotation, getX, getY, getZ, setPos, setRotation
getColor, getFillingType, getLineWidth, getTexture, getZHeight, setColor, setColor, setFillingType, setLineWidth, setZHeight
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
public 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
-
public double getWidth()
Returns the width of the rectangular wall.
- Returns:
- the width of the rectangular wall
public double getHeight()
Returns the height of the rectangular wall.
- Returns:
- the height of the rectangular wall
public void setSize(double width, double height)
Sets the width and height of the rectangular wall.
- Parameters:
width
- the new width of the rectangular wallheight
- the new height of the rectangular wall
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 classAbstractWall
- Parameters:
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's container- Returns:
true
if the shape contains the point with the given coordinates
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()