Package com.anylogic.engine.markup
- 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 Detail
- 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
,java.io.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
void |
addConnection(GISRoute path,
PathEndType type) |
|
java.lang.Class<? extends ExtAgentWithSpatialMetrics> |
getCompatibleAgentExtensionClass() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
GISRoute |
getConnection(int index) |
Returns connection of this node with another node by index.
|
int |
getConnectionsCount() |
Amount of the node's connections to other nodes.
|
java.awt.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
|
java.lang.String |
getTitle() |
Returns the title of this geographic place
|
double |
getTransferDistance(GISRoute path1,
GISRoute path2) |
|
Position |
getTransferPositionByPercent(GISRoute path1,
GISRoute path2,
double percent,
Position out) |
|
void |
setFillColor(java.awt.Paint color) |
Sets the fill color (or
Texture ) of the shape. |
void |
setTitle(java.lang.String title) |
Sets the title of this geographic place
|
Modifier and Type | Method | Description |
---|
createOMGraphicObject, discardOwner, error, getFromOMGraphic, getLineColor, getLineStyle, getLineTexture, getLineWidth, getNetwork, getOmGraphic, getSpace, initialize, onAggregatorVisibilityChanged, remove, setLineColor, setLineStyle, setLineWidth, setOwner, setVisible
executeUserAction, findSVGElement, getDrawMode, getName, getSVGId, initializeInternal, isPublic, isVisible, onAggregatorInitialized, removeSVGFromOwner, resetSVGState, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postInitialize
getPosition, getSpace
contains, getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside
getLineColor, getLineTexture, getName, setLineColor
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 java.awt.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(java.awt.Paint color)
Description copied from interface:
INode
Sets the fill color (or
Texture
) of the shape.- Specified by:
setFillColor
in interfaceINode<GISNode,GISRoute>
public java.lang.String getTitle()
Returns the title of this geographic place
- Specified by:
getTitle
in interfaceIGeographicSearchEntry
- Returns:
- information about this geographic place.
public void setTitle(java.lang.String title)
Sets the title of this geographic place
- Parameters:
title
- information about this geographic place
@AnyLogicInternalAPI public final java.lang.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>
-
How can we improve this article?
-