public class ShapeScale extends Shape
Scale
of the agent on its animationUNKNOWN_NAME
Constructor and Description |
---|
ShapeScale(Agent owner,
boolean ispublic,
double x,
double y,
double rotation,
double length,
LengthUnits displayedUnits)
Constructs a text shape with specific attributes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double px,
double py)
|
LengthUnits |
getDisplayedUnits() |
double |
getLength() |
Agent |
getOwner() |
Presentable |
getPresentable()
Returns the Presentable object (
Agent or Experiment ) where
this shape belongs to, or null. |
void |
postSVGShapeSpecificAttributes(java.util.List<java.lang.String> att,
java.util.List<java.lang.String> val,
boolean publicOnly)
Posts general properties specific to a particular shape class.
|
void |
restoreOwner(java.lang.Object owner)
Deprecated.
|
void |
setDisplayedUnits(LengthUnits displayedUnits) |
void |
setLength(double length) |
canHandleClick, clone, executeUserAction, findSVGElement, getDrawMode, getGroup, getLevel, getName, getRotation, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, onAggregatorVisibilityChanged, onClick, randomPointInside, randomPointInside, removeSVGFromOwner, removeSVGImage, resetSVGState, setLevel, setPos, setPos, setPublic_xjal, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, postInitialize
public ShapeScale(Agent owner, boolean ispublic, double x, double y, double rotation, double length, LengthUnits displayedUnits)
ispublic
- if true
, the shape is visible on container's presentationx
- the x coordinate of the beginning of the first line of the texty
- the y coordinate of the beginning of the first line of the textrotation
- the rotation of the text in radianscolor
- color of the texttext
- the text displayed by the text shapefont
- the font used by the text shapealignment
- the alignment of the text shapepublic 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)
Shape
public Presentable getPresentable()
Shape
Agent
or Experiment
) where
this shape belongs to, or null.getPresentable
in class Shape
@AnyLogicInternalCodegenAPI @Deprecated public void restoreOwner(java.lang.Object owner)
Shape
restoreOwner
in interface com.anylogic.engine.internal.Child
restoreOwner
in class Shape
owner
- owner of this object, usually Agent
,
Experiment
or
ShapeGroup
public void postSVGShapeSpecificAttributes(java.util.List<java.lang.String> att, java.util.List<java.lang.String> val, boolean publicOnly)
Shape
postSVGShapeSpecificAttributes
in class Shape
att
- attribute namesval
- attribute valuespublicOnly
- TODOCopyright © AnyLogic North America, LLC. All Rights Reserved.