Package com.anylogic.engine.markup
- Field Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.GISMarkupElement
- 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
- Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider
- Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement
- Methods inherited from interface com.anylogic.engine.markup.INode
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.GISMarkupElement
- com.anylogic.engine.markup.GISNode
- All Implemented Interfaces:
IGeographicSearchEntry
,AggregatableAnimationElement
,AnimationStaticLocationProvider
,INetworkMarkupElement
,INode<GISNode,
,GISRoute> SVGElement
,UsdElement
,Serializable
public abstract class GISNode extends GISMarkupElement implements INode<GISNode,GISRoute>, IGeographicSearchEntry
Implementation of
INode
for network in GIS space.- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Modifier and Type | Method | Description |
---|---|---|
void | addConnection | |
final Class<? extends ExtAgentWithSpatialMetrics> | getCompatibleAgentExtensionClass() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
final GISRoute | getConnection |
Returns connection of this node with another node by index.
|
final int | getConnectionsCount() |
Amount of the node's connections to other nodes.
|
Color | getFillColor() |
Returns the fill color of the shape, or
null if shape has no fill color or
has textured fill (in this case INode.getFillTexture() should be used instead) |
Texture | getFillTexture() |
Returns the fill texture of the shape, if the shape has fill texture
|
String | getTitle() |
Returns the title of this geographic place
|
final double | getTransferDistance | |
Position | getTransferPositionByPercent | |
void | setFillColor |
Sets the fill color (or
Texture ) of the shape. |
void | setTitle |
Sets the title of this geographic place
|
createOMGraphicObject, discardOwner, error, getFromOMGraphic, getLineColor, getLineStyle, getLineTexture, getLineWidth, getNetwork, getOmGraphic, getSpace, initialize, onAggregatorVisibilityChanged, remove, setLineColor, setLineStyle, setLineWidth, setOwner, setVisible
executeUserAction, findSVGElement, getDrawMode, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isPublic, isVisible, onAggregatorInitialized, removeSVGFromOwner, resetSVGState, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
contains, getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside
public void addConnection(GISRoute path, PathEndType type)
- Specified by:
addConnection
in interfaceINode<GISNode,
GISRoute>
public final int getConnectionsCount()
Description copied from interface:
INode
Amount of the node's connections to other nodes.
- Specified by:
getConnectionsCount
in interfaceINode<GISNode,
GISRoute> - Returns:
- number of connections
public final GISRoute getConnection(int index)
Description copied from interface:
INode
Returns connection of this node with another node by index.
- Specified by:
getConnection
in interfaceINode<GISNode,
GISRoute> - Parameters:
index
- the index of required connection in range (0
,this.getConnectionsCount() - 1
)- Returns:
- instance of
com.anylogic.engine.markup.IPath
interface
public final double getTransferDistance(GISRoute path1, GISRoute path2)
- Specified by:
getTransferDistance
in interfaceINode<GISNode,
GISRoute>
public Position getTransferPositionByPercent(GISRoute path1, GISRoute path2, double percent, Position out)
- Specified by:
getTransferPositionByPercent
in interfaceINode<GISNode,
GISRoute>
public Color getFillColor()
Description copied from interface:
INode
Returns the fill color of the shape, or
null
if shape has no fill color or
has textured fill (in this case INode.getFillTexture()
should be used instead)- Specified by:
getFillColor
in interfaceINode<GISNode,
GISRoute> - Returns:
- the fill color of the shape
public Texture getFillTexture()
Description copied from interface:
INode
Returns the fill texture of the shape, if the shape has fill texture
- Specified by:
getFillTexture
in interfaceINode<GISNode,
GISRoute> - Returns:
- the fill texture of the shape
public void setFillColor(Paint color)
Description copied from interface:
INode
Sets the fill color (or
Texture
) of the shape.- Specified by:
setFillColor
in interfaceINode<GISNode,
GISRoute>
public String getTitle()
Returns the title of this geographic place
- Specified by:
getTitle
in interfaceIGeographicSearchEntry
- Returns:
- information about this geographic place.
public void setTitle(String title)
Sets the title of this geographic place
- Parameters:
title
- information about this geographic place
@AnyLogicInternalAPI public final Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
Description copied from interface:
INode
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Specified by:
getCompatibleAgentExtensionClass
in interfaceINode<GISNode,
GISRoute>