Package com.anylogic.engine.markup
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.AbstractRoadMarkup
- 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 Detail
- Method Detail
- java.lang.Object
-
- com.anylogic.engine.markup.AbstractMarkup
-
- com.anylogic.engine.markup.MarkupShape
-
- com.anylogic.engine.markup.AbstractRoadMarkup
-
- com.anylogic.engine.markup.AbstractRoadPart
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,SVGElement
,java.io.Serializable
- Direct Known Subclasses:
AbstractRoadSidePart
@AnyLogicInternalAPI public abstract class AbstractRoadPart extends AbstractRoadMarkup
- See Also:
- Serialized Form
AbstractRoadPart() |
|
AbstractRoadPart(Road road,
ShapeDrawMode drawMode,
boolean isPublic,
double offset) |
|
Constructor | Description |
---|
double |
getOffset() |
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
|
double |
getOffset(LengthUnits units) |
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
|
Road |
getRoad() |
Returns road segment on which the road part is located.
|
void |
setOffset(double offset) |
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
|
void |
setOffset(double offset,
LengthUnits units) |
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
|
void |
setRoad(Road road) |
Sets road segment on which the road part is located.
|
Modifier and Type | Method | Description |
---|
contains, getLevel, getRoadNetwork, setDebugInfoVisible, setRoadNetwork
error, getDrawMode, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postInitialize
public AbstractRoadPart()
public AbstractRoadPart(Road road, ShapeDrawMode drawMode, boolean isPublic, double offset)
public Road getRoad()
Returns road segment on which the road part is located.
- Returns:
- Road segment on which the road part is located.
public void setRoad(Road road)
Sets road segment on which the road part is located.
- Parameters:
road
- segment on which the road part is located.
public double getOffset()
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
- Returns:
- Offset from beginning of lane guideline to beginning of road part in XY-projection, in pixels.
public double getOffset(LengthUnits units)
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
- Returns:
- Offset from beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
public void setOffset(double offset)
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
- Parameters:
offset
- offset from beginning of lane guideline to beginning of road part, in pixels
public void setOffset(double offset, LengthUnits units)
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
- Parameters:
offset
- offset from beginning of lane guideline to beginning of road part, measured in the given units
-
How can we improve this article?
-