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

public abstract class AbstractWall
extends AbstractLevelMarkup
See Also:
Serialized Form

Constructor Summary

Constructors 
AbstractWall()  
AbstractWall​(Agent owner, ShapeDrawMode drawMode, boolean isPublic, WallFillingType fillingType, java.awt.Paint color, double lineWidth, double zHeight)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
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.
java.awt.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)
WallFillingType getFillingType()
Returns the animation property - filling type of the wall
double getLineWidth()
Returns the width of the wall.
Texture getTexture()
Returns the texture of the shape, if the shape has texture
double getZHeight()
Returns wall height
void setColor​(java.awt.Color color)
Sets the color of the shape.
void setColor​(java.awt.Paint color)
Sets the color (or Texture) of the shape.
void setFillingType​(WallFillingType fillingType)
Sets the animation property - filling type of the wall
void setLineWidth​(double lineWidth)
Sets the width of the wall, 0 means 'don't draw'
void setZHeight​(double zHeight)
Set wall height
Modifier and Type Method Description

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 com.anylogic.engine.markup.AbstractMarkup

discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

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 Detail

AbstractWall

public AbstractWall()

AbstractWall

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

Method Detail

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​(java.awt.Color color)
Sets the color of the shape.
Parameters:
color - the new color, null = do not draw the shape

setColor

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

getColor

public java.awt.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
How can we improve this article?