Package com.anylogic.engine.presentation
          
          
- java.lang.Object
- com.anylogic.engine.presentation.Shape
- com.anylogic.engine.presentation.ShapeScale
- All Implemented Interfaces:
- com.anylogic.engine.internal.Child,- Locatable2D,- AggregatableAnimationElement,- HasLevel,- LevelElement,- SVGElement,- UsdElement,- Serializable,- Cloneable
public class ShapeScale extends Shape
This shape draws 
Scale of the agent on its animation- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
| Constructor | Description | 
|---|---|
| ShapeScale | Constructs a text shape with specific attributes. | 
| 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. | 
| LengthUnits | getDisplayedUnits() | |
| double | getLength() | |
| Agent | getOwner() | |
| Presentable | getPresentable() | Returns the Presentable object ( AgentorExperiment) where 
 this shape belongs to, or null. | 
| void | postSVGShapeSpecificAttributes | Posts general properties specific to a particular shape class. | 
| void | restoreOwner | Deprecated. | 
| void | setDisplayedUnits | |
| void | setLength | 
canHandleClick, clone, executeUserAction, findSVGElement, getDrawMode, getGroup, getGroupOrOwner, getInspect, getLevel, getName, getOrGenerateUSDId, getRotation, getScaleX, getScaleY, getSVGId, getUsdVersion, getX, getY, isJava2DSwingPresentation, isOnly3D, isPublic_xjal, isSVGPresentation, isVisible, isVisibleCurrently, onAggregatorVisibilityChanged, onClick, randomPointInside, randomPointInside, removeSVGFromOwner, removeSVGImage, resetSVGState, setChangedUsdVersion, setInspect, setLevel, setNextChangedUsdVersion, setPos, setPos, setPublic_xjal, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGPropertiespublic ShapeScale(Agent owner, boolean ispublic, double x, double y, double rotation, double length, LengthUnits displayedUnits) 
Constructs a text shape with specific attributes.
- Parameters:
- ispublic- if- true, the shape is visible on container's presentation
- x- the x coordinate of the beginning of the first line of the text
- y- the y coordinate of the beginning of the first line of the text
- rotation- the rotation of the text in radians
- color- color of the text
- text- the text displayed by the text shape
- font- the font used by the text shape
- alignment- the alignment of the text shape
public double getLength()
public void setLength(double length) 
public LengthUnits getDisplayedUnits()
public void setDisplayedUnits(LengthUnits displayedUnits) 
public Agent getOwner()
public boolean contains(double px, double py) 
Description copied from class: 
Shapepublic Presentable getPresentable()
Description copied from class: 
ShapeReturns the Presentable object (
Agent or Experiment) where 
 this shape belongs to, or null.- Specified by:
- getPresentablein interface- SVGElement
- Overrides:
- getPresentablein class- Shape
- Returns:
- the Presentable that owns this shape, or null
@AnyLogicInternalCodegenAPI @Deprecated public void restoreOwner(Object owner) 
Deprecated.
Description copied from class: 
ShapeThis method normally should not be called by user
This method restores owner of this object
The method is used in snapshot saving/loading
This method restores owner of this object
The method is used in snapshot saving/loading
- Specified by:
- restoreOwnerin interface- com.anylogic.engine.internal.Child
- Overrides:
- restoreOwnerin class- Shape
- Parameters:
- owner- owner of this object, usually- Agent,- Experimentor- ShapeGroup
public void postSVGShapeSpecificAttributes(List<String> att, List<String> val, boolean publicOnly) 
Description copied from class: 
ShapePosts general properties specific to a particular shape class. 
 Is triggered by SVG_DIRTY_SHAPE flag. 
 Made public for occasional posting of additional SVG properties from outside engine
 (e.g. from libraries)
- Overrides:
- postSVGShapeSpecificAttributesin class- Shape
- Parameters:
- att- attribute names
- val- attribute values
- publicOnly- TODO