Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.AbstractLevelMarkup
- 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.AggregatableAnimationElement
- 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
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractLevelMarkup
- com.anylogic.engine.markup.LevelGate
- All Implemented Interfaces:
AbstractPositionalMarkup,AggregatableAnimationElement,HasBoundingRectangle,HasLevel,LevelElement,LevelMarkup,MarkupPort,SVGElement,UsdElement,Serializable
public class LevelGate extends AbstractLevelMarkup implements MarkupPort, HasBoundingRectangle, AbstractPositionalMarkup
- See Also:
- Serialized Form
| Constructor | Description |
|---|---|
LevelGate() | |
LevelGate | |
LevelGate |
| 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.
|
boolean | contains |
Returns true if the gate contains the point with the given coordinates using the given distance tolerance;
returns false otherwise.
|
boolean | containsSq |
Returns true if the gate contains the point with the given coordinates using the given square distance tolerance;
returns false otherwise.
|
BoundingRectangle | getBoundingRectangle() | |
Point | getCentroid() | |
Color | getColor() |
Returns the color of the level gate, or null if the level gate has no color.
|
double | getDx() |
Returns the end x coordinate of the gate.
|
double | getDy() |
Returns the end y coordinate of the gate.
|
Point | getLeft() | |
MarkupPort | getPairedPort() |
Returns the paired port for this markup port.
|
Point | getRight() | |
double | getX() |
Returns the start x coordinate of the gate.
|
Point | getXYZ() | |
double | getY() |
Returns the start y coordinate of the gate.
|
double | getZ() |
This method shouldn't be called by user
(is public due to technical reasons) |
void | setColor |
Sets the color of the level gate
|
void | setDx |
Sets the end x coordinate of the gate.
|
void | setDy |
Sets the end y coordinate of the gate.
|
void | setPairedPort |
Sets the paired port for this markup port.
|
void | setX |
Sets the start x coordinate of the gate.
|
void | setY |
Sets the start y coordinate of the gate.
|
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isOnly3D, isPublic, onClick, remove, setDrawMode, setOwnerdiscardOwner, executeUserAction, findSVGElement, getGroupOrOwner, getInspect, getInspectionWindowString, getName, getOrGenerateUSDId, getSVGComponent, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setInspect, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGPropertiesexecuteUserAction, findSVGElement, getGroupOrOwner, getPresentable, getSVGComponent, getSVGId, isOnly3D, removeSVGFromOwner, resetSVGState, updateSVGPropertiespublic LevelGate()
public LevelGate(double x, double y, double dx, double dy)
@AnyLogicInternalCodegenAPI public LevelGate(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double dx, double dy)
public double getX()
Returns the start x coordinate of the gate.
- Specified by:
getXin interfaceAbstractPositionalMarkup- Returns:
- the start x coordinate of the gate
@AnyLogicInternalAPI public double getZ()
This method shouldn't be called by user
(is public due to technical reasons)
(is public due to technical reasons)
- Specified by:
getZin interfaceAbstractPositionalMarkup- Returns:
- Always 0
public void setX(double x)
Sets the start x coordinate of the gate. The gate should be uninitialized
- Parameters:
x- coordinate value
public double getY()
Returns the start y coordinate of the gate.
- Specified by:
getYin interfaceAbstractPositionalMarkup- Returns:
- the start y coordinate of the gate
public void setY(double y)
Sets the start y coordinate of the gate. The gate should be uninitialized
- Parameters:
y- coordinate value
public double getDx()
Returns the end x coordinate of the gate.
- Returns:
- the end x coordinate of the gate
public void setDx(double dx)
Sets the end x coordinate of the gate. The gate should be uninitialized
- Parameters:
x- coordinate value
public double getDy()
Returns the end y coordinate of the gate.
- Returns:
- the end y coordinate of the gate
public void setDy(double dy)
Sets the end y coordinate of the gate. The gate should be uninitialized
- Parameters:
y- coordinate value
public Color getColor()
Returns the color of the level gate, or null if the level gate has no color.
- Returns:
- gate color
public void setColor(Color color)
Sets the color of the level gate
- Parameters:
color- new color
public Point getXYZ()
- Specified by:
getXYZin interfaceMarkupPort
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 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
public boolean contains(double px, double py, double distance)
Returns true if the gate contains the point with the given coordinates using the given distance tolerance;
returns false otherwise.
- Parameters:
px- point x coordinatepy- point y coordinatedistance- the distance tolerance to determine whether the given point lies within the gate proximity.
public boolean containsSq(double px, double py, double squareDistance)
Returns true if the gate contains the point with the given coordinates using the given square distance tolerance;
returns false otherwise.
- Parameters:
px- point x coordinatepy- point y coordinatedistance- the square of distance tolerance to determine whether the given point lies within the gate proximity.
@AnyLogicInternalAPI public Point getLeft()
@AnyLogicInternalAPI public Point getRight()
@AnyLogicInternalAPI public Point getCentroid()
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
- Specified by:
getBoundingRectanglein interfaceHasBoundingRectangle