AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, LevelElement, LevelMarkup, SVGElement, UsdElement, Serializable
Direct Known Subclasses:
AbstractShapedWall, Wall

public abstract class AbstractWall
extends AbstractLevelMarkup
See Also:
Serialized Form

Field Summary

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

ID_NOT_SET

Constructor Summary

ConstructorDescription
AbstractWall() 
AbstractWall(Agent owner, ShapeDrawMode drawMode, boolean isPublic, WallFillingType fillingType, Paint color, double lineWidth, double zHeight) 

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.
ColorgetColor()
Returns the color of the shape, or null if shape has no color or has textured (in this case #getFillTexture() should be used instead)
WallFillingTypegetFillingType()
Returns the animation property - filling type of the wall
doublegetLineWidth()
Returns the width of the wall.
TexturegetTexture()
Returns the texture of the shape, if the shape has texture
doublegetZHeight()
Returns wall height
voidsetColor(Color color)
Sets the color of the shape.
voidsetColor(Paint color)
Sets the color (or Texture) of the shape.
voidsetFillingType(WallFillingType fillingType)
Sets the animation property - filling type of the wall
voidsetLineWidth(double lineWidth)
Sets the width of the wall, 0 means 'don't draw'
voidsetZHeight(double zHeight)
Set wall height

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

AbstractWall

public AbstractWall()

AbstractWall

public AbstractWall(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 WallFillingType fillingType,
 Paint color,
 double lineWidth,
 double zHeight)

Method Details

setLineWidth

public void setLineWidth(double lineWidth)
Sets the width of the wall, 0 means 'don't draw'
Parameters:
lineWidth - the new width of the wall

getLineWidth

public double getLineWidth()
Returns the width of the wall.
Returns:
the width of the wall

getZHeight

public double getZHeight()
Returns wall height
Returns:
wall height

setZHeight

public void setZHeight(double zHeight)
Set wall height
Parameters:
zHeight - wall height

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)
Specified by:
contains in class MarkupShape
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

setFillingType

public void setFillingType(WallFillingType fillingType)
Sets the animation property - filling type of the wall
Parameters:
fillingType - the filling type of the wall

getFillingType

public WallFillingType getFillingType()
Returns the animation property - filling type of the wall
Returns:
the filling type of the wall

setColor

public void setColor(Color color)
Sets the color of the shape.
Parameters:
color - the new color, null = do not draw the shape

setColor

public void setColor(Paint color)
Sets the color (or Texture) of the shape.
Parameters:
color - the new color, null = do not draw the shape

getColor

public Color getColor()
Returns the color of the shape, or null if shape has no color or has textured (in this case #getFillTexture() should be used instead)
Returns:
the color of the shape

getTexture

public Texture getTexture()
Returns the texture of the shape, if the shape has texture
Returns:
the texture of the shape