public class ShapeTopLevelPresentationGroup extends ShapeGroup
UNKNOWN_NAME
Constructor and Description |
---|
ShapeTopLevelPresentationGroup(Presentable presentable,
boolean ispublic,
double x,
double y,
double z,
double rotationXY,
java.lang.Object... contents)
Constructs a top-level presentation group with specific attributes
and possibly with some content
|
Modifier and Type | Method and Description |
---|---|
void |
add(Level level)
This is a helper method to add all the markups and shapes contained in this level
to this group
|
void |
add(MarkupShape shape)
Adds a space markup shape to the group.
|
Configuration3D |
getConfiguration3D()
Returns 3D configuration of agent.
|
ShapeEmbeddedObjectPresentation |
getOriginalOwner()
This method is internal and shouldn't be called by user.
|
ShapeEmbeddedObjectPresentation |
getOwner()
Returns the owner of this presentation if this is an agent
presentation and it is embedded to another agent
This method returns null in case the agent
is not embedded anywhere or if this is an experiment presentation |
java.util.List<java.lang.Object> |
getShapes()
Returns the collection of shapes in the group (not a copy).
|
void |
insert(int index,
MarkupShape shape)
Adds a space markup to the group at the specified index (which
defines z-order of shape in 2D animation).
|
boolean |
remove(MarkupShape shape)
Tries to remove a space markup shape from the group,
returns
false if the shape was not contained. |
void |
removeSVGFromOwner(Shape oldOwner)
This method is internal and shouldn't be called by user.
|
void |
setOwner_xjal(ShapeEmbeddedObjectPresentation owner)
This method shouldn't be called by user.
|
void |
setPos(double x,
double y)
This method is not supported for top-level 'presentation' group.
|
void |
setPos(double x,
double y,
double z)
This method is not supported for top-level 'presentation' group.
|
void |
setPos(Point p)
This method is not supported for top-level 'presentation' group.
|
void |
setRotation(double rotation)
This method is not supported for top-level 'presentation' group.
|
void |
setRotationX(double rotationX)
This method is not supported for top-level 'presentation' group.
|
void |
setRotationY(double rotationY)
This method is not supported for top-level 'presentation' group.
|
void |
setRotationZ(double rotationZ)
This method is not supported for top-level 'presentation' group.
|
void |
setScale(double s)
This method is not supported for top-level 'presentation' group.
|
void |
setScale(double sx,
double sy)
This method is not supported for top-level 'presentation' group.
|
void |
setScale(double sx,
double sy,
double sz)
This method is not supported for top-level 'presentation' group.
|
void |
setScaleX(double sx)
This method is not supported for top-level 'presentation' group.
|
void |
setScaleY(double sy)
This method is not supported for top-level 'presentation' group.
|
void |
setScaleZ(double sz)
This method is not supported for top-level 'presentation' group.
|
void |
setVisible(boolean v)
This method is not supported for top-level 'presentation' group.
|
void |
setX(double x)
This method is not supported for top-level 'presentation' group.
|
void |
setY(double y)
This method is not supported for top-level 'presentation' group.
|
void |
setZ(double z)
This method is not supported for top-level 'presentation' group.
|
add, add, add, add, clear, clone, contains, findSVGElement, get, getPresentable, getRotation, getRotationX, getRotationY, getRotationZ, indexOf, initialize_xjal, insert, insert, onDraw, postSVGShapeSpecificAttributes, remove, remove, remove, remove, resetSVGState, restoreOwner, size, updateDynamicPropertiesStructural
canHandleClick, getDrawMode, getScaleZ, getZ, getZOffset, setDrawMode
executeUserAction, getGroup, getLevel, getName, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, onAggregatorVisibilityChanged, onClick, randomPointInside, randomPointInside, removeSVGImage, setLevel, setPublic_xjal, updateDynamicProperties, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getX, getY
initializeInternal, postInitialize
public ShapeTopLevelPresentationGroup(Presentable presentable, boolean ispublic, double x, double y, double z, double rotationXY, java.lang.Object... contents)
presentable
- the presentable object owning this shapeispublic
- if true
, the shape is visible on container's presentationx
- the x coordinate of groupy
- the y coordinate of groupz
- the z coordinate of grouprotationXY
- the rotation of the group in radianscontents
- the (possibly, empty) initial set of shapes (Shape objects, int ids, ReplicatedShape or Light3D objects)public void add(MarkupShape shape)
shape
- the space markup shape to addpublic void add(Level level)
level
- public void insert(int index, MarkupShape shape)
index
- index at which the specified markup is to be inserted
(from 0
to size()
, inclusive)shape
- the space markup shape to addpublic boolean remove(MarkupShape shape)
false
if the shape was not contained.shape
- the space markup shape to removetrue
if the group contained the shape, false
otherwisepublic java.util.List<java.lang.Object> getShapes()
getShapes
in class ShapeGroup
public ShapeEmbeddedObjectPresentation getOwner()
null
in case the agent
is not embedded anywhere or if this is an experiment presentation@AnyLogicInternalAPI public ShapeEmbeddedObjectPresentation getOriginalOwner()
public Configuration3D getConfiguration3D()
null
for experiments.@AnyLogicInternalAPI public void setOwner_xjal(ShapeEmbeddedObjectPresentation owner)
@AnyLogicInternalAPI public void removeSVGFromOwner(Shape oldOwner)
SVGElement
removeSVGFromOwner
in interface SVGElement
removeSVGFromOwner
in class Shape
oldOwner
- may be null
@AnyLogicInternalAPI public void setVisible(boolean v)
setVisible
in class ShapeGroup
v
- visibility: true
- visible, false
- not@AnyLogicInternalAPI public void setRotation(double rotation)
setRotation
in class ShapeGroup
rotation
- the new value of horizontal rotation in radiansShapeGroup.setRotationZ(double)
@AnyLogicInternalAPI public void setRotationZ(double rotationZ)
setRotationZ
in class ShapeGroup
rotationZ
- the new value of rotation around Z-axis in radians@AnyLogicInternalAPI public void setRotationY(double rotationY)
setRotationY
in class ShapeGroup
rotationY
- the new value of rotation around Y axis (CW from +Z to +X),
in radians@AnyLogicInternalAPI public void setRotationX(double rotationX)
setRotationX
in class ShapeGroup
rotationX
- the new value of rotation around X axis (CW from +Y to +Z),
in radians@AnyLogicInternalAPI public void setZ(double z)
@AnyLogicInternalAPI public void setPos(double x, double y)
@AnyLogicInternalAPI public void setPos(double x, double y, double z)
@AnyLogicInternalAPI public void setPos(Point p)
@AnyLogicInternalAPI public void setScaleZ(double sz)
@AnyLogicInternalAPI public void setScale(double sx, double sy, double sz)
@AnyLogicInternalAPI public void setScale(double s)
@AnyLogicInternalAPI public void setX(double x)
@AnyLogicInternalAPI public void setY(double y)
@AnyLogicInternalAPI public void setScaleX(double sx)
@AnyLogicInternalAPI public void setScaleY(double sy)
@AnyLogicInternalAPI public void setScale(double sx, double sy)
Copyright © AnyLogic North America, LLC. All Rights Reserved.