Package com.anylogic.engine.markup
- Field Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AbstractPositionalMarkup
- Methods inherited from interface com.anylogic.engine.markup.MarkupPort
- Methods inherited from interface com.anylogic.engine.presentation.SVGElement
- Methods inherited from interface com.anylogic.engine.presentation.UsdElement
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.LiftPortImpl
- All Implemented Interfaces:
AbstractPositionalMarkup,AggregatableAnimationElement,HasLevel,MarkupPort,NetworkPort,SVGElement,UsdElement,Serializable
@AnyLogicInternalAPI public class LiftPortImpl extends MarkupShape implements NetworkPort, AbstractPositionalMarkup
- 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
|
double | getX() | |
Point | getXYZ() | |
double | getY() | |
double | getZ() | |
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, isOnly3D, isPublic, onClick, remove, setDrawMode, setOwnerdiscardOwner, executeUserAction, findSVGElement, getGroupOrOwner, getInspect, getInspectionWindowString, getOrGenerateUSDId, getSVGComponent, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setInspect, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGPropertiesexecuteUserAction, findSVGElement, getGroupOrOwner, getPresentable, getSVGComponent, getSVGId, isOnly3D, removeSVGFromOwner, resetSVGState, updateSVGPropertiespublic Lift<?> getLift()
public Point getXYZ()
- Specified by:
getXYZin interfaceMarkupPort
public double getX()
- Specified by:
getXin interfaceAbstractPositionalMarkup
public double getY()
- Specified by:
getYin interfaceAbstractPositionalMarkup
public double getZ()
- Specified by:
getZin interfaceAbstractPositionalMarkup
public INetwork<?,?> getNetwork()
Description copied from interface:
NetworkPortReturns the network this network port belongs to.
- Specified by:
getNetworkin interfaceNetworkPort- Returns:
- the network this network port belongs to
public void setPairedPort(MarkupPort pairedPort)
Description copied from interface:
MarkupPortSets the paired port for this markup port.
- Specified by:
setPairedPortin interfaceMarkupPort- Parameters:
pairedPort- - a markup port from another
public MarkupPort getPairedPort()
Description copied from interface:
MarkupPortReturns the paired port for this markup port.
- Specified by:
getPairedPortin interfaceMarkupPort- Returns:
- the paired port for this markup port
public String getName()
Description copied from class:
AbstractMarkupIf 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:
getNamein interfaceMarkupPort- Overrides:
getNamein classAbstractMarkup- Returns:
- the name of the corresponding field or
#UNKNOWN_NAME
public Agent getSpace()
Description copied from class:
AbstractMarkupReturns the agent where the markup element is defined
- Specified by:
getSpacein interfaceAbstractPositionalMarkup- Overrides:
getSpacein classMarkupShape- Returns:
- the agent associated with this element
public void postInitialize()
Description copied from interface:
AggregatableAnimationElementThis 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:
postInitializein interfaceAggregatableAnimationElement
public Level getLevel()
Description copied from interface:
HasLevelReturns level associated with this space markup element or
null
if this element has no level- Specified by:
getLevelin interfaceHasLevel- Specified by:
getLevelin interfaceMarkupPort- Specified by:
getLevelin classMarkupShape- Returns:
- the level associated with this space markup element
public boolean contains(double px, double py)
Description copied from class:
MarkupShapeTest 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:
containsin classMarkupShape- Parameters:
px- the x coordinate relative to this shape's containerpy- the y coordinate relative to this shape's container- Returns:
trueif the shape contains the point with the given coordinates