Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.AbstractFluidMarkup
- 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.presentation.SVGElement
- Methods inherited from interface com.anylogic.engine.presentation.UsdElement
- Constructor Details
- Method Details
- All Implemented Interfaces:
AbstractPositionalMarkup
,AggregatableAnimationElement
,HasLevel
,LevelElement
,LevelMarkup
,SVGElement
,UsdElement
,Serializable
public class StorageTank extends AbstractFluidMarkup<StorageTankDataSource> implements AbstractPositionalMarkup
- See Also:
- Serialized Form
Constructor | Description |
---|---|
StorageTank() | |
StorageTank |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
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.
|
double | getDiameter() |
Returns the diameter of the tank
|
double | getHeight() |
Returns the height of the tank
|
double | getX() |
Returns the x coordinate of the tank
|
double | getY() |
Returns the y coordinate of the tank
|
double | getZ() |
Returns the z coordinate of the tank
|
void | setDiameter |
Sets the diameter of the tank
|
void | setHeight |
Sets the height of the tank
|
void | setX |
Sets x coordinate of the tank
|
void | setY |
Sets y coordinate of the tank
|
void | setZ |
Sets z coordinate of the tank
|
void | updateDynamicProperties() |
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
Method should be overridden for shapes with dynamic properties. |
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicPropertiesStructural, updateSVGProperties
public StorageTank()
@Deprecated public StorageTank(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double diameter, double height, Paint color)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-x
-y
-z
-diameter
-height
-color
-
public double getX()
Returns the x coordinate of the tank
- Specified by:
getX
in interfaceAbstractPositionalMarkup
- Returns:
- x coordinate of the tank
public void setX(double x)
Sets x coordinate of the tank
- Parameters:
x
- the new x coordinate
public double getY()
Returns the y coordinate of the tank
- Specified by:
getY
in interfaceAbstractPositionalMarkup
- Returns:
- y coordinate of the tank
public void setY(double y)
Sets y coordinate of the tank
- Parameters:
y
- the new y coordinate
public double getZ()
Returns the z coordinate of the tank
- Specified by:
getZ
in interfaceAbstractPositionalMarkup
- Returns:
- z coordinate of the tank
public void setZ(double z)
Sets z coordinate of the tank
- Parameters:
z
- the new z coordinate
public double getDiameter()
Returns the diameter of the tank
- Returns:
- diameter of the tank, in pixels
public void setDiameter(double diameter)
Sets the diameter of the tank
- Parameters:
diameter
- the new diameter
public double getHeight()
Returns the height of the tank
- Returns:
- height of the tank, in pixels
public void setHeight(double height)
Sets the height of the tank
- Parameters:
height
- the new height
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
@AnyLogicInternalCodegenAPI public void updateDynamicProperties()
Description copied from class:
AbstractMarkup
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
Method should be overridden for shapes with dynamic properties. Note that you should call super.updateDynamicProperties() at the end of overridden method
Method should be overridden for shapes with dynamic properties. Note that you should call super.updateDynamicProperties() at the end of overridden method
- Overrides:
updateDynamicProperties
in classAbstractMarkup