Package com.anylogic.engine.markup
- 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.Pathway
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,LevelElement
,LevelMarkup
,SVGElement
,Serializable
public class Pathway extends AbstractLevelMarkup
- See Also:
- Serialized Form
Constructor | Description |
---|---|
Pathway() | |
Pathway |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method | Description |
---|---|---|
void | addSegment |
Adds segment to this markup element
|
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
BoundingRectangle | getBoundingRectangle() | |
Color | getLineColor() |
Returns the color of the markup shape
|
MarkupSegment | getSegment |
Returns the segment by its index in the path
|
int | getSegmentCount() |
Returns the number of segments in the path
|
List<MarkupSegmentLine> | getSegments() |
Returns the list of segments in this element.
|
void | setLineColor |
Sets the color of the markup shape.
|
error, 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
public Pathway()
@Deprecated public Pathway(Agent owner, ShapeDrawMode drawMode, boolean isPublic, Color lineColor, MarkupSegmentLine... segments)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-lineColor
-segments
-
public void addSegment(MarkupSegmentLine segment)
Adds segment to this markup element
- Parameters:
segment
- the segment, should be initialized if was created using no-argument constructor
public List<MarkupSegmentLine> getSegments()
Returns the list of segments in this element. The element should be initialized
public int getSegmentCount()
Returns the number of segments in the path
- Returns:
- the number of segments in the path
public MarkupSegment getSegment(int index)
Returns the segment by its index in the path
- Parameters:
index
- the segment index, [0 ..getSegmentCount()
- 1]- Returns:
- the path segment
public Color getLineColor()
Returns the color of the markup shape
- Returns:
- the color of the markup shape
public void setLineColor(Color color)
Sets the color of the markup shape.
- Parameters:
color
- the new color, null = do not draw the markup shape
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
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()