Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkupSegment
- com.anylogic.engine.markup.GISMarkupSegment
- All Implemented Interfaces:
IMarkupSegment
,Serializable
- Direct Known Subclasses:
GISMarkupSegmentLine
public abstract class GISMarkupSegment extends AbstractMarkupSegment
Markup segment for GIS space.
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Modifier and Type | Method | Description |
---|---|---|
double | length() |
Returns the length of the path segment
|
final void | setEnd |
Sets the end point of this GIS segment.
|
void | setEnd |
Sets end point of this segment.
|
final void | setStart |
Sets the starting point of this GIS segment.
|
void | setStart |
Sets start point of this segment.
|
final void | setStartNextTo |
Sets coordinates of the end of the specified segment as start coordinates of this segment.
|
public final void setStartNextTo(IMarkupSegment previousSegment)
Description copied from interface:
IMarkupSegment
Sets coordinates of the end of the specified segment as start coordinates of this segment.
- Parameters:
previousSegment
- implementation ofIMarkupSegment
public final void setStart(double lat, double lon)
Sets the starting point of this GIS segment. The segment should be uninitialized
- Parameters:
lat
- latitudelon
- longitude
public final void setEnd(double lat, double lon)
Sets the end point of this GIS segment. The segment should be uninitialized
- Parameters:
lat
- latitudelon
- longitude
public void setStart(Point startPoint)
Description copied from interface:
IMarkupSegment
Sets start point of this segment.
- Parameters:
startPoint
- the point to set as start point of this segment
public void setEnd(Point endPoint)
Description copied from interface:
IMarkupSegment
Sets end point of this segment.
- Parameters:
endPoint
- the point to set as end point of this segment
public double length()
Description copied from class:
AbstractMarkupSegment
Returns the length of the path segment
- Specified by:
length
in interfaceIMarkupSegment
- Overrides:
length
in classAbstractMarkupSegment
- Returns:
- the length of the path segment, a positive number