Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- 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
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractLevelMarkup
- com.anylogic.engine.markup.AbstractWall
- 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
Constructor | Description |
---|---|
AbstractWall() | |
AbstractWall |
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.
|
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 |
Sets the color of the shape.
|
void | setColor |
Sets the color (or
Texture ) of the shape. |
void | setFillingType |
Sets the animation property - filling type of the wall
|
void | setLineWidth |
Sets the width of the wall, 0 means 'don't draw'
|
void | setZHeight |
Set wall height
|
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
public AbstractWall()
public AbstractWall(Agent owner, ShapeDrawMode drawMode, boolean isPublic, WallFillingType fillingType, Paint color, double lineWidth, double zHeight)
public void setLineWidth(double lineWidth)
Sets the width of the wall, 0 means 'don't draw'
- Parameters:
lineWidth
- the new width of the wall
public double getLineWidth()
Returns the width of the wall.
- Returns:
- the width of the wall
public double getZHeight()
Returns wall height
- Returns:
- wall height
public void setZHeight(double zHeight)
Set wall height
- Parameters:
zHeight
- wall height
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 classMarkupShape
- 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
public void setFillingType(WallFillingType fillingType)
Sets the animation property - filling type of the wall
- Parameters:
fillingType
- the filling type of the wall
public WallFillingType getFillingType()
Returns the animation property - filling type of the wall
- Returns:
- the filling type of the wall
public void setColor(Color color)
Sets the color of the shape.
- Parameters:
color
- the new color, null = do not draw the shape
public void setColor(Paint color)
Sets the color (or
Texture
) of the shape.- Parameters:
color
- the new color, null = do not draw the shape
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
public Texture getTexture()
Returns the texture of the shape, if the shape has texture
- Returns:
- the texture of the shape