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 Detail
- Method Detail
- 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
,java.io.Serializable
public class Pathway extends AbstractLevelMarkup
- See Also:
- Serialized Form
Pathway() |
|
Pathway(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
java.awt.Color lineColor,
MarkupSegmentLine... segments) |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Constructor | Description |
---|
void |
addSegment(MarkupSegmentLine segment) |
Adds segment to this markup element
|
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.
|
BoundingRectangle |
getBoundingRectangle() |
|
java.awt.Color |
getLineColor() |
Returns the color of the markup shape
|
MarkupSegment |
getSegment(int index) |
Returns the segment by its index in the path
|
int |
getSegmentCount() |
Returns the number of segments in the path
|
java.util.List<MarkupSegmentLine> |
getSegments() |
Returns the list of segments in this element.
|
void |
setLineColor(java.awt.Color color) |
Sets the color of the markup shape.
|
Modifier and Type | Method | Description |
---|
getDrawMode, getLevel, setLevel
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, onAggregatorVisibilityChanged, postInitialize
public Pathway()
@Deprecated public Pathway(Agent owner, ShapeDrawMode drawMode, boolean isPublic, java.awt.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 java.util.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 java.awt.Color getLineColor()
Returns the color of the markup shape
- Returns:
- the color of the markup shape
public void setLineColor(java.awt.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()
-
How can we improve this article?
-