AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, RailMarkup, SVGElement, java.io.Serializable
Direct Known Subclasses:
PositionOnTrack, RailwaySwitch, RailwayTrack

public abstract class AbstractRailwayMarkup
extends MarkupShape
implements RailMarkup
See Also:
Serialized Form

Constructor Summary

Constructors 
AbstractRailwayMarkup()  
AbstractRailwayMarkup​(Agent owner, ShapeDrawMode drawMode, boolean isPublic)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
ShapeDrawMode getDrawMode()
Returns the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
If the shape has been created with no-argument constructor, and has no specific limitations (like 2D-only), and drawing mode hasn't yet been set, then it is initialized to default (2D + 3D).
Level getLevel()
Returns level associated with this space markup element or null if this element has no level
double getOutsideLevelZ()  
RailwayNetwork getRailYard()
Returns rail yard associated with this space markup element or null if this element has no rail yard
Modifier and Type Method Description

Methods inherited from class com.anylogic.engine.markup.MarkupShape

contains, error, getFullName, 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

postInitialize

Constructor Detail

AbstractRailwayMarkup

public AbstractRailwayMarkup()

AbstractRailwayMarkup

public AbstractRailwayMarkup​(Agent owner,
                             ShapeDrawMode drawMode,
                             boolean isPublic)

Method Detail

getDrawMode

public ShapeDrawMode getDrawMode()
Description copied from class: MarkupShape
Returns the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
If the shape has been created with no-argument constructor, and has no specific limitations (like 2D-only), and drawing mode hasn't yet been set, then it is initialized to default (2D + 3D).
Overrides:
getDrawMode in class MarkupShape
Returns:
the draw mode for this shape

getLevel

public Level getLevel()
Description copied from interface: HasLevel
Returns level associated with this space markup element or null if this element has no level
Specified by:
getLevel in interface HasLevel
Specified by:
getLevel in class MarkupShape
Returns:
the level associated with this space markup element

getOutsideLevelZ

@AnyLogicInternalAPI
public double getOutsideLevelZ()
Overrides:
getOutsideLevelZ in class MarkupShape

getRailYard

public RailwayNetwork getRailYard()
Description copied from interface: RailMarkup
Returns rail yard associated with this space markup element or null if this element has no rail yard
Specified by:
getRailYard in interface RailMarkup
Returns:
the rail yard associated with this space markup element
How can we improve this article?