@AnyLogicInternalAPI public class ShapeEmbeddedObjectIcon extends Shape
UNKNOWN_NAME
Constructor and Description |
---|
ShapeEmbeddedObjectIcon(Agent agent,
boolean ispublic,
double x,
double y,
Agent embeddedObject)
Constructs an embedded object presentation with specific attributes
|
ShapeEmbeddedObjectIcon(Agent agent,
boolean ispublic,
double x,
double y,
AgentList<?> population)
Constructs an embedded object presentation with specific attributes
|
Modifier and Type | Method and Description |
---|---|
Shape |
clone()
This method is not supported and throws exception:
Embedded object icon cannot be cloned |
boolean |
contains(double px,
double py)
|
void |
deactivate()
This method is internal and shouldn't be called by user.
|
SVGElement |
findSVGElement(long svgId)
This method is internal and shouldn't be called by user.
|
Agent |
getEmbeddedObject()
Returns the embedded object drawn by this shape
|
AgentList<?> |
getPopulation() |
Agent |
getPresentable()
Returns the presentable (
Agent ) where this shape belongs to. |
void |
resetSVGState()
This method is internal and shouldn't be called by user.
|
void |
restoreOwner(java.lang.Object owner)
Deprecated.
|
boolean |
updateDynamicPropertiesStructural(boolean publicOnly) |
SVGElement |
updateSVGProperties(java.util.List<SVGCommand> output,
ShapeDrawMode drawMode,
boolean publicOnly,
SVGElement owner,
SVGElement elbehind)
This method is internal and shouldn't be called by user.
|
canHandleClick, executeUserAction, getDrawMode, getGroup, getLevel, getName, getRotation, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, onAggregatorVisibilityChanged, onClick, postSVGShapeSpecificAttributes, randomPointInside, randomPointInside, removeSVGFromOwner, removeSVGImage, setLevel, setPos, setPos, setPublic_xjal, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, postInitialize
public ShapeEmbeddedObjectIcon(Agent agent, boolean ispublic, double x, double y, AgentList<?> population)
agent
- the agent owning this shapeispublic
- if true
, the shape is visible on container's
presentationx
- the x coordinate of embedded presentationy
- the y coordinate of embedded presentationembeddedObject
- the embedded objectpublic ShapeEmbeddedObjectIcon(Agent agent, boolean ispublic, double x, double y, Agent embeddedObject)
agent
- the agent owning this shapeispublic
- if true
, the shape is visible on container's
presentationx
- the x coordinate of embedded presentationy
- the y coordinate of embedded presentationembeddedObject
- the embedded objectpublic Agent getPresentable()
Agent
) where this shape belongs to.getPresentable
in class Shape
public AgentList<?> getPopulation()
public Agent getEmbeddedObject()
@AnyLogicInternalAPI public void deactivate()
@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
@AnyLogicInternalAPI public boolean updateDynamicPropertiesStructural(boolean publicOnly)
updateDynamicPropertiesStructural
in class Shape
true
if:public boolean contains(double px, double py)
Shape
public final Shape clone()
@AnyLogicInternalAPI public SVGElement updateSVGProperties(java.util.List<SVGCommand> output, ShapeDrawMode drawMode, boolean publicOnly, SVGElement owner, SVGElement elbehind)
SVGElement
updateSVGProperties
in interface SVGElement
updateSVGProperties
in class Shape
output
- the list of commands to add todrawMode
- TODOpublicOnly
- drawing context: if true, only shapes that are marked as public only are updatedowner
- the SVG element that serves as a container for this elementelbehind
- the SVG element behind this one, or null if none or if order is irrelevantnull
if element
is not drawn (e.g. drawing of this element is not needed because of public only settings,
permanently not needed or not supported - hence SVG id is not set). The actual owner may differ
from the given owner
when the svg element is added to a different place (e.g. GIS map).@AnyLogicInternalAPI public void resetSVGState()
SVGElement
resetSVGState
in interface SVGElement
resetSVGState
in class Shape
@AnyLogicInternalAPI public SVGElement findSVGElement(long svgId)
SVGElement
findSVGElement
in interface SVGElement
findSVGElement
in class Shape
Copyright © AnyLogic North America, LLC. All Rights Reserved.