public interface INode<N extends INode<N,P>,P extends IPath<N>> extends INetworkMarkupElement, AnimationStaticLocationProvider
Modifier and Type | Method and Description |
---|---|
void |
addConnection(P path,
PathEndType type) |
java.lang.Class<? extends ExtAgentWithSpatialMetrics> |
getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
|
P |
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 getFillTexture() should be used instead) |
Texture |
getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
|
java.awt.Color |
getLineColor()
Returns the line color of the markup element, or
null if markup element has no line color or
has textured line (in this case getLineTexture() should be used instead) |
Texture |
getLineTexture()
Returns the line texture of the markup element, if the markup element has line texture
|
java.lang.String |
getName() |
double |
getTransferDistance(P path1,
P path2) |
Position |
getTransferPositionByPercent(P path1,
P path2,
double percent,
Position out) |
void |
setFillColor(java.awt.Paint color)
Sets the fill color (or
Texture ) of the shape. |
void |
setLineColor(java.awt.Paint lineColor)
Sets the line color (or
Texture ) of the markup element. |
contains, getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside
getPosition, getSpace
int getConnectionsCount()
P getConnection(int index)
index
- the index of required connection in range (0
, this.getConnectionsCount() - 1
)com.anylogic.engine.markup.IPath
interfacevoid addConnection(P path, PathEndType type)
@AnyLogicInternalAPI double getTransferDistance(P path1, P path2)
@AnyLogicInternalAPI Position getTransferPositionByPercent(P path1, P path2, double percent, Position out)
java.lang.String getName()
void setLineColor(java.awt.Paint lineColor)
Texture
) of the markup element.lineColor
- the new line color, null = do not draw the markup element linejava.awt.Color getLineColor()
null
if markup element has no line color or
has textured line (in this case getLineTexture()
should be used instead)Texture getLineTexture()
java.awt.Color getFillColor()
null
if shape has no fill color or
has textured fill (in this case getFillTexture()
should be used instead)Texture getFillTexture()
void setFillColor(java.awt.Paint color)
Texture
) of the shape.fillColor
- the new fill color, null = do not fill the shape@AnyLogicInternalAPI java.lang.Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
Copyright © AnyLogic North America, LLC. All Rights Reserved.