- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.LiftPortImpl
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,MarkupPort
,NetworkPort
,SVGElement
,Serializable
@AnyLogicInternalAPI public class LiftPortImpl extends MarkupShape implements NetworkPort
- See Also:
- Serialized Form
Modifier and Type | Method | Description |
---|---|---|
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
Level | getLevel() |
Returns level associated with this space markup element or
null
if this element has no level |
Lift<?> | getLift() | |
String | getName() |
If the markup shape is declared as field in an agent class, e.g.
|
INetwork<?, | getNetwork() |
Returns the network this network port belongs to.
|
MarkupPort | getPairedPort() |
Returns the paired port for this markup port.
|
Agent | getSpace() |
Returns the agent where the markup element is defined
|
Point | getXYZ() | |
void | postInitialize() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
void | setPairedPort |
Sets the paired port for this markup port.
|
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
public Lift<?> getLift()
public Point getXYZ()
- Specified by:
getXYZ
in interfaceMarkupPort
public INetwork<?,?> getNetwork()
Description copied from interface:
NetworkPort
Returns the network this network port belongs to.
- Specified by:
getNetwork
in interfaceNetworkPort
- Returns:
- the network this network port belongs to
public void setPairedPort(MarkupPort pairedPort)
Description copied from interface:
MarkupPort
Sets the paired port for this markup port.
- Specified by:
setPairedPort
in interfaceMarkupPort
- Parameters:
pairedPort
- - a markup port from another
public MarkupPort getPairedPort()
Description copied from interface:
MarkupPort
Returns the paired port for this markup port.
- Specified by:
getPairedPort
in interfaceMarkupPort
- Returns:
- the paired port for this markup port
public String getName()
Description copied from class:
AbstractMarkup
If the markup shape is declared as field in an agent class, e.g. if it was drawn
in the graphical editor, returns the name of the field, otherwise returns the
string
This method is designed to be used for debug/development purposes only. It has a very inefficient implementation
#UNKNOWN_NAME
.
For replicated shapes returns the name of the field with the index of the shape
in square brackets.This method is designed to be used for debug/development purposes only. It has a very inefficient implementation
- Specified by:
getName
in interfaceMarkupPort
- Overrides:
getName
in classAbstractMarkup
- Returns:
- the name of the corresponding field or
#UNKNOWN_NAME
public Agent getSpace()
Description copied from class:
AbstractMarkup
Returns the agent where the markup element is defined
- Overrides:
getSpace
in classMarkupShape
- Returns:
- the agent associated with this element
public void postInitialize()
Description copied from interface:
AggregatableAnimationElement
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:
postInitialize
in interfaceAggregatableAnimationElement
public Level getLevel()
Description copied from interface:
HasLevel
Returns level associated with this space markup element or
null
if this element has no level- Specified by:
getLevel
in interfaceHasLevel
- Specified by:
getLevel
in interfaceMarkupPort
- Specified by:
getLevel
in classMarkupShape
- Returns:
- the level associated with this space markup element
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