public class ShapeAgentPopulationGroup extends ShapeGroup
UNKNOWN_NAME
Constructor and Description |
---|
ShapeAgentPopulationGroup(Agent presentable,
ShapeDrawMode drawMode,
boolean ispublic,
AgentList<?> population) |
Modifier and Type | Method and Description |
---|---|
void |
add(Camera3D camera)
Deprecated.
|
void |
add(int shape)
Deprecated.
This function is deprecated and will be removed in the next release
|
void |
add(Light3D light)
Deprecated.
|
void |
add(ReplicatedShape<?> rshape)
Deprecated.
|
void |
add(Shape shape)
Deprecated.
|
void |
clear()
Deprecated.
|
void |
createShapes()
Creates missing and removes redundant shapes so that current number of
shapes in this replicated shape equals value returned by
#getReplication() |
ShapeEmbeddedObjectPresentation |
createShapeWithStaticProperties_xjal(Agent agent,
int index)
Creates a new shape with static properties already set.
|
SVGElement |
findSVGElement(long svgId)
This method is internal and shouldn't be called by user.
|
S |
get(Agent a)
Returns the embedded presentation shape shape of the given agent.
|
java.lang.Object |
get(int i)
Deprecated.
|
java.util.Collection<Agent> |
getAgents_xjal()
This method is internal and shouldn't be called by user.
|
int |
indexOf(java.lang.Object shape)
Deprecated.
|
void |
initialize_xjal(java.lang.Object... contents)
Deprecated.
|
void |
insert(int index,
int shape)
Deprecated.
This function is deprecated and will be removed in the next release
|
void |
insert(int index,
ReplicatedShape<?> rshape)
Deprecated.
|
void |
insert(int index,
Shape shape)
Deprecated.
|
boolean |
remove(Camera3D camera)
Deprecated.
|
boolean |
remove(int shape)
Deprecated.
This function is deprecated and will be removed in the next release
|
boolean |
remove(Light3D light)
Deprecated.
|
boolean |
remove(ReplicatedShape<?> rshape)
Deprecated.
|
boolean |
remove(Shape shape)
Deprecated.
|
void |
resetSVGState()
This method is internal and shouldn't be called by user.
|
void |
setShapeDynamicProperties_xjal(ShapeEmbeddedObjectPresentation shape,
int index)
Sets the dynamic properties of a shape with the given index.
|
int |
size()
Returns the number of shapes in the group.
|
boolean |
updateDynamicPropertiesStructural(boolean publicOnly) |
clone, contains, getPresentable, getRotation, getRotationX, getRotationY, getRotationZ, getShapes, initialize_xjal, onDraw, postSVGShapeSpecificAttributes, restoreOwner, setRotation, setRotationX, setRotationY, setRotationZ, setVisible
canHandleClick, getDrawMode, getScaleZ, getZ, getZOffset, setDrawMode, setPos, setPos, setPos, setScale, setScale, setScaleZ, setZ
executeUserAction, getGroup, getLevel, getName, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, onAggregatorVisibilityChanged, onClick, randomPointInside, randomPointInside, removeSVGFromOwner, removeSVGImage, setLevel, setPublic_xjal, setScale, setScaleX, setScaleY, setX, setY, updateDynamicProperties, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getX, getY
initializeInternal, postInitialize
public ShapeAgentPopulationGroup(Agent presentable, ShapeDrawMode drawMode, boolean ispublic, AgentList<?> population)
@AnyLogicInternalAPI public boolean updateDynamicPropertiesStructural(boolean publicOnly)
updateDynamicPropertiesStructural
in class ShapeGroup
true
if:public void createShapes()
#getReplication()
@AnyLogicInternalCodegenAPI public ShapeEmbeddedObjectPresentation createShapeWithStaticProperties_xjal(Agent agent, int index)
index
- the desired shape index@AnyLogicInternalCodegenAPI public void setShapeDynamicProperties_xjal(ShapeEmbeddedObjectPresentation shape, int index)
shape
- the shapeindex
- the shape indexpublic int size()
size
in class ShapeGroup
public S get(Agent a)
null
if the given agent isn't contained in this shape.a
- the agent@AnyLogicInternalAPI public java.util.Collection<Agent> getAgents_xjal()
@AnyLogicInternalAPI public void resetSVGState()
SVGElement
resetSVGState
in interface SVGElement
resetSVGState
in class ShapeGroup
@AnyLogicInternalAPI public SVGElement findSVGElement(long svgId)
SVGElement
findSVGElement
in interface SVGElement
findSVGElement
in class ShapeGroup
@Deprecated public void clear()
ShapeGroup
clear
in class ShapeGroup
@Deprecated public void initialize_xjal(java.lang.Object... contents)
@Deprecated public java.lang.Object get(int i)
ShapeGroup
get
in class ShapeGroup
i
- the index of the shape@Deprecated public int indexOf(java.lang.Object shape)
ShapeGroup
-1
if this group does not
contain the shape.i
such that
get( i ) == shape
, or -1
if
there is no such index.indexOf
in class ShapeGroup
shape
- the shape to find index of-1
@Deprecated public void add(Shape shape)
ShapeGroup
add
in class ShapeGroup
shape
- the shape to add@Deprecated public void add(int shape)
@Deprecated public void add(ReplicatedShape<?> rshape)
ShapeGroup
add
in class ShapeGroup
rshape
- the replicated shape to add@Deprecated public void insert(int index, Shape shape)
ShapeGroup
insert
in class ShapeGroup
index
- index at which the specified shape is to be inserted
(from 0
to size()
, inclusive)shape
- the shape to add@Deprecated public void insert(int index, int shape)
@Deprecated public void insert(int index, ReplicatedShape<?> rshape)
ShapeGroup
insert
in class ShapeGroup
index
- index at which the specified shape is to be inserted
(from 0
to size()
, inclusive)rshape
- the replicated shape to add@Deprecated public boolean remove(Shape shape)
ShapeGroup
false
if the shape was not contained.remove
in class ShapeGroup
shape
- the shape to removetrue
if the group contained the shape, false
otherwise@Deprecated public boolean remove(int shape)
@Deprecated public boolean remove(ReplicatedShape<?> rshape)
ShapeGroup
false
if the shape was not contained.remove
in class ShapeGroup
rshape
- the replicated shape to removetrue
if the group contained the shape, false
otherwise@Deprecated public void add(Light3D light)
ShapeGroup
add
in class ShapeGroup
light
- the light to add@Deprecated public boolean remove(Light3D light)
ShapeGroup
false
if the light was not contained.remove
in class ShapeGroup
light
- the light to removetrue
if the group contained the light,
false
otherwise@Deprecated public void add(Camera3D camera)
ShapeGroup
add
in class ShapeGroup
camera
- the camera to add@Deprecated public boolean remove(Camera3D camera)
ShapeGroup
false
if the camera was not contained.remove
in class ShapeGroup
camera
- the camera to removetrue
if the group contained the camera,
false
otherwiseCopyright © AnyLogic North America, LLC. All Rights Reserved.